forked from omnirom/android_bootable_recovery
-
Notifications
You must be signed in to change notification settings - Fork 420
/
Android.bp
executable file
·142 lines (135 loc) · 3.76 KB
/
Android.bp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
subdirs = [
"bootloader_message",
]
// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
// CONSULT THE OWNERS AND [email protected] BEFORE
// DEPENDING ON IT IN YOUR PROJECT. ***
package {
default_applicable_licenses: ["bootable_recovery_license"],
}
// Added automatically by a large-scale-change that took the approach of
// 'apply every license found to every target'. While this makes sure we respect
// every license restriction, it may not be entirely correct.
//
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
//
// Please consider splitting the single license below into multiple licenses,
// taking care not to lose any license_kind information, and overriding the
// default license using the 'licenses: [...]' property on targets as needed.
//
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
// to attach the license to, and including a comment whether the files may be
// used in the current project.
// See: http://go/android-license-faq
license {
name: "bootable_recovery_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-MIT",
"SPDX-license-identifier-OFL", // by exception only
],
license_text: [
"NOTICE",
],
}
cc_defaults {
name: "recovery_defaults",
cflags: [
"-D_FILE_OFFSET_BITS=64",
// Must be the same as RECOVERY_API_VERSION.
"-DRECOVERY_API_VERSION=3",
"-Wall",
"-Werror",
],
cpp_std: "c++17",
}
bootstrap_go_package {
name: "soong-libaosprecovery_defaults",
pkgPath: "bootable/recovery/libaosprecovery",
deps: [
"soong",
"soong-android",
"soong-cc"
],
srcs: [
"libaosprecovery_defaults.go",
"soong/makevars.go"
],
pluginFor: ["soong_build"]
}
libaosprecovery_defaults {
name: "libaosprecovery_defaults"
}
cc_library_shared {
name: "libaosprecovery",
defaults: ["libaosprecovery_defaults"],
cflags: [
"-std=gnu++2a",
"-DRECOVERY_API_VERSION=3"
],
include_dirs: [
"bootable/recovery/install/include",
"bootable/recovery/recovery_ui/include",
"bootable/recovery/recovery_utils/include",
"bootable/recovery/otautil/include",
"bootable/recovery/minadbd",
"bootable/recovery/minadbd/include",
"bootable/recovery/minzip",
"bootable/recovery/twrpinstall/include",
"system/libvintf/include"
],
srcs: [
"install/adb_install.cpp",
"install/asn1_decoder.cpp",
"install/get_args.cpp",
"install/install.cpp",
"install/package.cpp",
"install/spl_check.cpp",
"install/verifier.cpp",
"install/wipe_data.cpp",
"install/set_metadata.cpp",
"install/ZipUtil.cpp"
],
shared_libs: [
"libbase",
"libbootloader_message",
"libcrypto",
"libext4_utils",
"libfs_mgr",
"libfusesideload",
"libhidl-gen-utils",
"libhidlbase",
"liblog",
"libselinux",
"libtinyxml2",
"libutils",
"libz",
"libziparchive",
"libcutils",
"libc++"
],
static_libs: [
"libotautil",
"libvintf",
"libhidl-gen-utils",
"librecovery_utils",
"libc++fs",
"libprotobuf-cpp-lite",
"ota_metadata_proto_cc",
"update_metadata-protos"
],
required: [
"init_recovery.rc",
"ueventd.rc.recovery",
"libdl_android.bootstrap",
"ziptool.recovery"
]
}
prebuilt_etc {
name: "init_recovery.rc",
filename: "init.rc",
src: "etc/init.rc",
sub_dir: "init/hw",
recovery: true,
}