blob: ffb4f1a9215f279a35ca76a49917640e392fa093 [file] [log] [blame]
Steven Morelandf3ae55a2017-05-09 15:49:36 -07001subdirs = [
Tom Cherry600e8062017-05-12 17:08:20 -07002 "bootloader_message",
Steven Morelandf3ae55a2017-05-09 15:49:36 -07003]
Tao Baod2f2ad62018-03-23 23:24:25 -07004
5cc_defaults {
6 name: "recovery_defaults",
Tao Baod2f2ad62018-03-23 23:24:25 -07007 cflags: [
Tao Bao818f9382018-08-06 15:52:24 -07008 "-D_FILE_OFFSET_BITS=64",
Tao Bao818f9382018-08-06 15:52:24 -07009 // Must be the same as RECOVERY_API_VERSION.
10 "-DRECOVERY_API_VERSION=3",
Tao Baod2f2ad62018-03-23 23:24:25 -070011 "-Wall",
12 "-Werror",
13 ],
bigbiffd58ba182020-03-23 10:02:29 -040014 cpp_std: "c++17",
Tao Baod2f2ad62018-03-23 23:24:25 -070015}
16
bigbiff673c7ae2020-12-02 19:44:56 -050017bootstrap_go_package {
18 name: "soong-libaosprecovery_defaults",
19 pkgPath: "bootable/recovery/libaosprecovery",
20 deps: [
21 "soong",
22 "soong-android",
23 "soong-cc"
Hridya Valsaraju20c81b32018-07-27 22:09:12 -070024 ],
Hridya Valsaraju20c81b32018-07-27 22:09:12 -070025 srcs: [
bigbiff6e0ca7d2021-02-06 19:15:16 -050026 "libaosprecovery_defaults.go",
27 "soong/makevars.go"
Hridya Valsaraju20c81b32018-07-27 22:09:12 -070028 ],
bigbiff673c7ae2020-12-02 19:44:56 -050029 pluginFor: ["soong_build"]
Hridya Valsaraju20c81b32018-07-27 22:09:12 -070030}
31
bigbiff673c7ae2020-12-02 19:44:56 -050032libaosprecovery_defaults {
33 name: "libaosprecovery_defaults"
34}
Tao Bao5fc72a12018-08-07 14:38:51 -070035
bigbiff673c7ae2020-12-02 19:44:56 -050036cc_library_shared {
37 name: "libaosprecovery",
38 defaults: ["libaosprecovery_defaults"],
39 cflags: [
40 "-std=gnu++2a",
41 "-DRECOVERY_API_VERSION=3"
Tao Bao5fc72a12018-08-07 14:38:51 -070042 ],
bigbiff673c7ae2020-12-02 19:44:56 -050043 include_dirs: [
44 "bootable/recovery/install/include",
45 "bootable/recovery/recovery_ui/include",
46 "bootable/recovery/recovery_utils/include",
47 "bootable/recovery/otautil/include",
48 "bootable/recovery/minadbd",
49 "bootable/recovery/minadbd/include",
50 "bootable/recovery/minzip",
51 "bootable/recovery/twrpinstall/include",
52 "system/libvintf/include"
53 ],
54 srcs: [
55 "install/adb_install.cpp",
56 "install/asn1_decoder.cpp",
57 "install/get_args.cpp",
58 "install/install.cpp",
59 "install/package.cpp",
60 "install/verifier.cpp",
61 "install/wipe_data.cpp",
62 "install/set_metadata.cpp",
63 "install/ZipUtil.cpp"
64 ],
Tao Bao5fc72a12018-08-07 14:38:51 -070065 shared_libs: [
Tao Bao5fc72a12018-08-07 14:38:51 -070066 "libbase",
67 "libbootloader_message",
68 "libcrypto",
bigbiff673c7ae2020-12-02 19:44:56 -050069 "libext4_utils",
70 "libfs_mgr",
71 "libfusesideload",
72 "libhidl-gen-utils",
73 "libhidlbase",
Tao Bao5fc72a12018-08-07 14:38:51 -070074 "liblog",
bigbiff673c7ae2020-12-02 19:44:56 -050075 "libselinux",
76 "libtinyxml2",
77 "libutils",
78 "libz",
Tao Bao5fc72a12018-08-07 14:38:51 -070079 "libziparchive",
bigbiff673c7ae2020-12-02 19:44:56 -050080 "libcutils",
81 "libc++"
Tao Bao5fc72a12018-08-07 14:38:51 -070082 ],
Tao Bao5fc72a12018-08-07 14:38:51 -070083 static_libs: [
Tao Bao5fc72a12018-08-07 14:38:51 -070084 "libotautil",
bigbiff673c7ae2020-12-02 19:44:56 -050085 "libvintf",
86 "libhidl-gen-utils",
Tao Baoe3f09a72019-10-01 11:55:36 -070087 "librecovery_utils",
bigbiff673c7ae2020-12-02 19:44:56 -050088 "libc++fs"
bigbiff91bd7a72021-01-03 17:33:01 -050089 ],
90 required: [
91 "init_recovery.rc",
Mohd Farazdc2cf792021-04-17 21:09:22 +020092 "ueventd.rc.recovery",
bigbiff91bd7a72021-01-03 17:33:01 -050093 "libdl_android.bootstrap",
bigbiffeaac7622021-02-21 14:21:50 -050094 "ziptool.recovery"
bigbiff673c7ae2020-12-02 19:44:56 -050095 ]
Tao Baod2f2ad62018-03-23 23:24:25 -070096}
97
bigbiff91bd7a72021-01-03 17:33:01 -050098prebuilt_etc {
99 name: "init_recovery.rc",
100 filename: "init.rc",
101 src: "etc/init.rc",
102 sub_dir: "init/hw",
103 recovery: true,
104}