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 | 6e0ca7d | 2021-02-06 19:15:16 -0500 | [diff] [blame^] | 26 | "libaosprecovery_defaults.go", |
| 27 | "soong/makevars.go" |
Hridya Valsaraju | 20c81b3 | 2018-07-27 22:09:12 -0700 | [diff] [blame] | 28 | ], |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 29 | pluginFor: ["soong_build"] |
Hridya Valsaraju | 20c81b3 | 2018-07-27 22:09:12 -0700 | [diff] [blame] | 30 | } |
| 31 | |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 32 | libaosprecovery_defaults { |
| 33 | name: "libaosprecovery_defaults" |
| 34 | } |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 35 | |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 36 | cc_library_shared { |
| 37 | name: "libaosprecovery", |
| 38 | defaults: ["libaosprecovery_defaults"], |
| 39 | cflags: [ |
| 40 | "-std=gnu++2a", |
| 41 | "-DRECOVERY_API_VERSION=3" |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 42 | ], |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 43 | 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 Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 65 | shared_libs: [ |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 66 | "libbase", |
| 67 | "libbootloader_message", |
| 68 | "libcrypto", |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 69 | "libext4_utils", |
| 70 | "libfs_mgr", |
| 71 | "libfusesideload", |
| 72 | "libhidl-gen-utils", |
| 73 | "libhidlbase", |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 74 | "liblog", |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 75 | "libselinux", |
| 76 | "libtinyxml2", |
| 77 | "libutils", |
| 78 | "libz", |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 79 | "libziparchive", |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 80 | "libcutils", |
| 81 | "libc++" |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 82 | ], |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 83 | static_libs: [ |
Tao Bao | 5fc72a1 | 2018-08-07 14:38:51 -0700 | [diff] [blame] | 84 | "libotautil", |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 85 | "libvintf", |
| 86 | "libhidl-gen-utils", |
Tao Bao | e3f09a7 | 2019-10-01 11:55:36 -0700 | [diff] [blame] | 87 | "librecovery_utils", |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 88 | "libc++fs" |
bigbiff | 91bd7a7 | 2021-01-03 17:33:01 -0500 | [diff] [blame] | 89 | ], |
| 90 | required: [ |
| 91 | "init_recovery.rc", |
Mohd Faraz | dc2cf79 | 2021-04-17 21:09:22 +0200 | [diff] [blame] | 92 | "ueventd.rc.recovery", |
bigbiff | 91bd7a7 | 2021-01-03 17:33:01 -0500 | [diff] [blame] | 93 | "libdl_android.bootstrap", |
bigbiff | eaac762 | 2021-02-21 14:21:50 -0500 | [diff] [blame] | 94 | "ziptool.recovery" |
bigbiff | 673c7ae | 2020-12-02 19:44:56 -0500 | [diff] [blame] | 95 | ] |
Tao Bao | d2f2ad6 | 2018-03-23 23:24:25 -0700 | [diff] [blame] | 96 | } |
| 97 | |
bigbiff | 91bd7a7 | 2021-01-03 17:33:01 -0500 | [diff] [blame] | 98 | prebuilt_etc { |
| 99 | name: "init_recovery.rc", |
| 100 | filename: "init.rc", |
| 101 | src: "etc/init.rc", |
| 102 | sub_dir: "init/hw", |
| 103 | recovery: true, |
| 104 | } |