forked from TeamWin/android_bootable_recovery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.bp
executable file
·104 lines (99 loc) · 2.35 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
subdirs = [
"bootloader_message",
]
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/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"
],
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,
}