blob: a31ec867b2c0702513ccc2ecdfaefed21e8a5001 [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: [
bigbiff673c7ae2020-12-02 19:44:56 -050026 "libaosprecovery_defaults.go"
Hridya Valsaraju20c81b32018-07-27 22:09:12 -070027 ],
bigbiff673c7ae2020-12-02 19:44:56 -050028 pluginFor: ["soong_build"]
Hridya Valsaraju20c81b32018-07-27 22:09:12 -070029}
30
bigbiff673c7ae2020-12-02 19:44:56 -050031libaosprecovery_defaults {
32 name: "libaosprecovery_defaults"
33}
Tao Bao5fc72a12018-08-07 14:38:51 -070034
bigbiff673c7ae2020-12-02 19:44:56 -050035cc_library_shared {
36 name: "libaosprecovery",
37 defaults: ["libaosprecovery_defaults"],
38 cflags: [
39 "-std=gnu++2a",
40 "-DRECOVERY_API_VERSION=3"
Tao Bao5fc72a12018-08-07 14:38:51 -070041 ],
bigbiff673c7ae2020-12-02 19:44:56 -050042 include_dirs: [
43 "bootable/recovery/install/include",
44 "bootable/recovery/recovery_ui/include",
45 "bootable/recovery/recovery_utils/include",
46 "bootable/recovery/otautil/include",
47 "bootable/recovery/minadbd",
48 "bootable/recovery/minadbd/include",
49 "bootable/recovery/minzip",
50 "bootable/recovery/twrpinstall/include",
51 "system/libvintf/include"
52 ],
53 srcs: [
54 "install/adb_install.cpp",
55 "install/asn1_decoder.cpp",
56 "install/get_args.cpp",
57 "install/install.cpp",
58 "install/package.cpp",
59 "install/verifier.cpp",
60 "install/wipe_data.cpp",
61 "install/set_metadata.cpp",
62 "install/ZipUtil.cpp"
63 ],
Tao Bao5fc72a12018-08-07 14:38:51 -070064 shared_libs: [
Tao Bao5fc72a12018-08-07 14:38:51 -070065 "libbase",
66 "libbootloader_message",
67 "libcrypto",
bigbiff673c7ae2020-12-02 19:44:56 -050068 "libext4_utils",
69 "libfs_mgr",
70 "libfusesideload",
71 "libhidl-gen-utils",
72 "libhidlbase",
Tao Bao5fc72a12018-08-07 14:38:51 -070073 "liblog",
bigbiff673c7ae2020-12-02 19:44:56 -050074 "libselinux",
75 "libtinyxml2",
76 "libutils",
77 "libz",
Tao Bao5fc72a12018-08-07 14:38:51 -070078 "libziparchive",
bigbiff673c7ae2020-12-02 19:44:56 -050079 "libcutils",
80 "libc++"
Tao Bao5fc72a12018-08-07 14:38:51 -070081 ],
Tao Bao5fc72a12018-08-07 14:38:51 -070082 static_libs: [
Tao Bao5fc72a12018-08-07 14:38:51 -070083 "libotautil",
bigbiff673c7ae2020-12-02 19:44:56 -050084 "libvintf",
85 "libhidl-gen-utils",
Tao Baoe3f09a72019-10-01 11:55:36 -070086 "librecovery_utils",
bigbiff673c7ae2020-12-02 19:44:56 -050087 "libc++fs"
bigbiff91bd7a72021-01-03 17:33:01 -050088 ],
89 required: [
90 "init_recovery.rc",
91 "libdl_android.bootstrap",
bigbiff673c7ae2020-12-02 19:44:56 -050092 ]
Tao Baod2f2ad62018-03-23 23:24:25 -070093}
94
bigbiff91bd7a72021-01-03 17:33:01 -050095prebuilt_etc {
96 name: "init_recovery.rc",
97 filename: "init.rc",
98 src: "etc/init.rc",
99 sub_dir: "init/hw",
100 recovery: true,
101}