Steven Moreland | f3ae55a | 2017-05-09 15:49:36 -0700 | [diff] [blame] | 1 | subdirs = [ |
Tom Cherry | 600e806 | 2017-05-12 17:08:20 -0700 | [diff] [blame] | 2 | "bootloader_message", |
Steven Moreland | f3ae55a | 2017-05-09 15:49:36 -0700 | [diff] [blame] | 3 | ] |
Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 4 | |
| 5 | cc_defaults { |
| 6 | name: "recovery_defaults", |
Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 7 | cflags: [ |
Tao Bao | 818f938 | 2018-08-06 15:52:24 -0700 | [diff] [blame] | 8 | "-D_FILE_OFFSET_BITS=64", |
Tao Bao | 818f938 | 2018-08-06 15:52:24 -0700 | [diff] [blame] | 9 | // Must be the same as RECOVERY_API_VERSION. |
| 10 | "-DRECOVERY_API_VERSION=3", |
Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 11 | "-Wall", |
| 12 | "-Werror", |
| 13 | ], |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 14 | cpp_std: "c++17", |
Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 15 | } |
| 16 | |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 17 | bootstrap_go_package { |
| 18 | name: "soong-libaosprecovery_defaults", |
| 19 | pkgPath: "bootable/recovery/libaosprecovery", |
| 20 | deps: [ |
| 21 | "soong", |
| 22 | "soong-android", |
| 23 | "soong-cc" |
Hridya Valsaraju | 20c81b3 | 2018-07-27 22:09:12 -0700 | [diff] [blame] | 24 | ], |
Hridya Valsaraju | 20c81b3 | 2018-07-27 22:09:12 -0700 | [diff] [blame] | 25 | srcs: [ |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 26 | "libaosprecovery_defaults.go" |
Hridya Valsaraju | 20c81b3 | 2018-07-27 22:09:12 -0700 | [diff] [blame] | 27 | ], |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 28 | pluginFor: ["soong_build"] |
Hridya Valsaraju | 20c81b3 | 2018-07-27 22:09:12 -0700 | [diff] [blame] | 29 | } |
| 30 | |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 31 | libaosprecovery_defaults { |
| 32 | name: "libaosprecovery_defaults" |
| 33 | } |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 34 | |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 35 | cc_library_shared { |
| 36 | name: "libaosprecovery", |
| 37 | defaults: ["libaosprecovery_defaults"], |
| 38 | cflags: [ |
| 39 | "-std=gnu++2a", |
| 40 | "-DRECOVERY_API_VERSION=3" |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 41 | ], |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 42 | 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 Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 64 | shared_libs: [ |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 65 | "libbase", |
| 66 | "libbootloader_message", |
| 67 | "libcrypto", |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 68 | "libext4_utils", |
| 69 | "libfs_mgr", |
| 70 | "libfusesideload", |
| 71 | "libhidl-gen-utils", |
| 72 | "libhidlbase", |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 73 | "liblog", |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 74 | "libselinux", |
| 75 | "libtinyxml2", |
| 76 | "libutils", |
| 77 | "libz", |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 78 | "libziparchive", |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 79 | "libcutils", |
| 80 | "libc++" |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 81 | ], |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 82 | static_libs: [ |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 83 | "libotautil", |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 84 | "libvintf", |
| 85 | "libhidl-gen-utils", |
Tao Bao | e3f09a7 | 2019-10-01 11:55:36 -0700 | [diff] [blame] | 86 | "librecovery_utils", |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 87 | "libc++fs" |
bigbiff | 91bd7a7 | 2021-01-03 17:33:01 -0500 | [diff] [blame] | 88 | ], |
| 89 | required: [ |
| 90 | "init_recovery.rc", |
Mohd Faraz | dc2cf79 | 2021-04-17 21:09:22 +0200 | [diff] [blame] | 91 | "ueventd.rc.recovery", |
bigbiff | 91bd7a7 | 2021-01-03 17:33:01 -0500 | [diff] [blame] | 92 | "libdl_android.bootstrap", |
bigbiff | eaac762 | 2021-02-21 14:21:50 -0500 | [diff] [blame] | 93 | "ziptool.recovery" |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 94 | ] |
Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 95 | } |
| 96 | |
bigbiff | 91bd7a7 | 2021-01-03 17:33:01 -0500 | [diff] [blame] | 97 | prebuilt_etc { |
| 98 | name: "init_recovery.rc", |
| 99 | filename: "init.rc", |
| 100 | src: "etc/init.rc", |
| 101 | sub_dir: "init/hw", |
| 102 | recovery: true, |
| 103 | } |