Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 1 | // Android Runtime APEX module. |
| 2 | |
| 3 | // Modules listed in LOCAL_REQUIRED_MODULES for module art-runtime in art/Android.mk. |
| 4 | // - Base requirements (binaries for which both 32- and 64-bit versions are built, if relevant). |
| 5 | art_runtime_base_binaries_both = [ |
| 6 | "dalvikvm", |
| 7 | ] |
| 8 | // - Base requirements (binaries for which a 32-bit version is preferred). |
| 9 | art_runtime_base_binaries_prefer32 = [ |
| 10 | "dex2oat", |
| 11 | "dexoptanalyzer", |
| 12 | "profman", |
| 13 | ] |
| 14 | // - Base requirements (libraries). |
Roland Levillain | 1617f8c | 2019-03-26 17:52:30 +0000 | [diff] [blame] | 15 | // |
| 16 | // Note: ART on-device chroot-based testing and benchmarking is not yet using |
| 17 | // the Runtime APEX, meaning that copies of some of these libraries have to be |
| 18 | // installed in `/system` for the ART Buildbot set-up to work properly. This is |
| 19 | // done by the `standalone-apex-files` Make phony target, used by the ART |
| 20 | // Buildbot and Golem (see `art/Android.mk`). If you add libraries to this list, |
| 21 | // you may have to also add them to `PRIVATE_RUNTIME_DEPENDENCY_LIBS` in |
| 22 | // `art/Android.mk`. |
| 23 | // TODO(b/121117762): Remove this note when both the ART Buildbot and Golem use |
| 24 | // the Runtime APEX. |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 25 | art_runtime_base_native_shared_libs = [ |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame^] | 26 | // External API (having APEX stubs). |
Martin Stjernholm | 84bf698 | 2019-02-05 15:07:57 +0000 | [diff] [blame] | 27 | "libdexfile_external", |
Martin Stjernholm | c2f8b50 | 2019-01-17 14:51:35 +0000 | [diff] [blame] | 28 | "libnativebridge", |
| 29 | "libnativehelper", |
| 30 | "libnativeloader", |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame^] | 31 | // libadbconnection is internal and loaded with dlopen(), but it cannot use |
| 32 | // "required" because of cyclic dependency (b/124505714). |
| 33 | "libadbconnection", |
| 34 | // TODO(b/124476339): Clean up the following libraries once "required" |
Martin Stjernholm | 0c15b82 | 2019-02-14 17:24:19 +0000 | [diff] [blame] | 35 | // dependencies work with APEX libraries. |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame^] | 36 | "libart", |
| 37 | "libart-compiler", |
Martin Stjernholm | 0c15b82 | 2019-02-14 17:24:19 +0000 | [diff] [blame] | 38 | "libdt_fd_forward", |
| 39 | "libdt_socket", |
| 40 | "libjdwp", |
| 41 | "libnpt", |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame^] | 42 | "libopenjdkjvm", |
| 43 | "libopenjdkjvmti", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 44 | ] |
Jiyong Park | 3296fb1 | 2018-12-13 18:32:21 +0900 | [diff] [blame] | 45 | bionic_native_shared_libs = [ |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame^] | 46 | // External API (having APEX stubs). |
Jiyong Park | 3296fb1 | 2018-12-13 18:32:21 +0900 | [diff] [blame] | 47 | "libc", |
| 48 | "libm", |
| 49 | "libdl", |
| 50 | ] |
Jiyong Park | e2bc9fe | 2018-12-26 11:36:39 +0900 | [diff] [blame] | 51 | bionic_binaries_both = [ |
| 52 | "linker", |
| 53 | ] |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 54 | // - Debug variants (binaries for which a 32-bit version is preferred). |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 55 | art_runtime_debug_binaries_prefer32 = [ |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 56 | "dexoptanalyzerd", |
| 57 | "profmand", |
| 58 | ] |
Alex Light | 572a096 | 2019-01-18 14:48:37 -0800 | [diff] [blame] | 59 | art_runtime_debug_binaries_prefer32_device = [ |
| 60 | "dex2oatd", |
| 61 | ] |
| 62 | art_runtime_debug_binaries_both_host = [ |
| 63 | "dex2oatd", |
| 64 | ] |
| 65 | |
Roland Levillain | cb82d09 | 2018-11-02 18:50:15 +0000 | [diff] [blame] | 66 | // - Debug variants (libraries). |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 67 | art_runtime_debug_native_shared_libs = [ |
Martin Stjernholm | c2f8b50 | 2019-01-17 14:51:35 +0000 | [diff] [blame] | 68 | "libadbconnectiond", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 69 | "libartd", |
| 70 | "libartd-compiler", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 71 | "libopenjdkjvmd", |
| 72 | "libopenjdkjvmtid", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 73 | ] |
| 74 | |
Neil Fuller | 5ab4a56 | 2018-12-11 20:33:46 +0000 | [diff] [blame] | 75 | // Data files associated with bionic / managed core library APIs. |
| 76 | art_runtime_data_file_prebuilts = [ |
Neil Fuller | a886dab | 2018-12-06 15:12:52 +0000 | [diff] [blame] | 77 | "apex_tz_version", |
| 78 | "apex_tzdata", |
| 79 | "apex_tzlookup.xml", |
Neil Fuller | 5ab4a56 | 2018-12-11 20:33:46 +0000 | [diff] [blame] | 80 | "apex_icu.dat", |
Neil Fuller | a886dab | 2018-12-06 15:12:52 +0000 | [diff] [blame] | 81 | ] |
| 82 | |
Orion Hodson | 5cb98a9 | 2019-03-25 15:07:16 +0000 | [diff] [blame] | 83 | // Tools common to both device APEX and host APEX. Derived from art-tools in art/Android.mk. |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 84 | art_tools_common_binaries = [ |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 85 | "dexdiag", |
| 86 | "dexdump", |
| 87 | "dexlist", |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 88 | ] |
| 89 | |
Orion Hodson | 5cb98a9 | 2019-03-25 15:07:16 +0000 | [diff] [blame] | 90 | // Tools exclusively for the device APEX derived from art-tools in art/Android.mk. |
Roland Levillain | e9f0ccc | 2019-01-07 16:45:58 +0000 | [diff] [blame] | 91 | art_tools_device_only_binaries = [ |
| 92 | // oatdump cannot link with host linux_bionic due to not using clang lld; |
| 93 | // TODO: Make it work with clang lld. |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 94 | "oatdump", |
| 95 | ] |
Roland Levillain | 02998cf | 2019-03-21 14:27:02 +0000 | [diff] [blame] | 96 | // Same, but for only for debug packages. |
| 97 | art_tools_debug_device_only_binaries = [ |
| 98 | // oatdumpd cannot link with host linux_bionic due to not using clang lld; |
| 99 | // TODO: Make it work with clang lld. |
| 100 | "oatdumpd", |
| 101 | ] |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 102 | |
Orion Hodson | 5cb98a9 | 2019-03-25 15:07:16 +0000 | [diff] [blame] | 103 | // Tools exclusively for the host APEX derived from art-tools in art/Android.mk. |
Roland Levillain | e9f0ccc | 2019-01-07 16:45:58 +0000 | [diff] [blame] | 104 | art_tools_host_only_binaries = [ |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 105 | // FIXME: Does not work as-is, because `ahat` is defined in tools/ahat/Android.mk |
| 106 | // (same issue as for `libart_fake` above). |
| 107 | //"ahat", |
| 108 | "hprof-conv", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 109 | ] |
| 110 | |
Roland Levillain | e9f0ccc | 2019-01-07 16:45:58 +0000 | [diff] [blame] | 111 | art_tools_device_binaries = art_tools_common_binaries + art_tools_device_only_binaries |
| 112 | art_tools_host_binaries = art_tools_common_binaries + art_tools_host_only_binaries |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 113 | |
Alex Light | 6585ecb | 2019-02-08 14:13:22 -0800 | [diff] [blame] | 114 | // Libraries needed to use com.android.runtime.host for zipapex run-tests |
| 115 | art_runtime_host_run_test_libs = [ |
| 116 | "libartd-disassembler" |
| 117 | ] |
| 118 | |
Roland Levillain | a0b1903 | 2019-02-08 15:59:56 +0000 | [diff] [blame] | 119 | // Core Java libraries. |
| 120 | libcore_java_libs = [ |
| 121 | "core-oj", |
| 122 | "core-libart", |
| 123 | "okhttp", |
| 124 | "bouncycastle", |
| 125 | "apache-xml", |
| 126 | ] |
| 127 | |
| 128 | // Native libraries that support the core Java libraries. |
Roland Levillain | 1617f8c | 2019-03-26 17:52:30 +0000 | [diff] [blame] | 129 | // |
| 130 | // Note: ART on-device chroot-based testing and benchmarking is not yet using |
| 131 | // the Runtime APEX, meaning that copies of some of these libraries have to be |
| 132 | // installed in `/system` for the ART Buildbot set-up to work properly. This is |
| 133 | // done by the `standalone-apex-files` Make phony target, used by the ART |
| 134 | // Buildbot and Golem (see `art/Android.mk`). If you add libraries to this list, |
| 135 | // you may have to also add them to `PRIVATE_RUNTIME_DEPENDENCY_LIBS` in |
| 136 | // `art/Android.mk`. |
| 137 | // TODO(b/121117762): Remove this note when both the ART Buildbot and Golem use |
| 138 | // the Runtime APEX. |
Roland Levillain | cb82d09 | 2018-11-02 18:50:15 +0000 | [diff] [blame] | 139 | libcore_native_shared_libs = [ |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame^] | 140 | // External API (having APEX stubs). |
Victor Chang | 2f0008a | 2019-01-15 14:10:34 +0000 | [diff] [blame] | 141 | "libandroidicu", |
Pete Bentley | 79f5662 | 2019-03-21 17:09:56 +0000 | [diff] [blame] | 142 | "libandroidio", |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame^] | 143 | // TODO(b/124476339): Clean up the following libraries once "required" |
| 144 | // dependencies work with APEX libraries. |
Victor Chang | 2f0008a | 2019-01-15 14:10:34 +0000 | [diff] [blame] | 145 | "libexpat", |
| 146 | "libicui18n", |
| 147 | "libicuuc", |
Pete Bentley | 51ffdbe | 2019-01-11 15:25:40 +0000 | [diff] [blame] | 148 | "libjavacore", |
Roland Levillain | cb82d09 | 2018-11-02 18:50:15 +0000 | [diff] [blame] | 149 | "libopenjdk", |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame^] | 150 | ] |
| 151 | libcore_debug_native_shared_libs = [ |
| 152 | "libopenjdkd", |
Victor Chang | 2f0008a | 2019-01-15 14:10:34 +0000 | [diff] [blame] | 153 | ] |
| 154 | |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame^] | 155 | libcore_native_device_only_shared_libs = [ |
Victor Chang | 2f0008a | 2019-01-15 14:10:34 +0000 | [diff] [blame] | 156 | // TODO(b/122876336): Remove libpac.so once it's migrated to Webview. |
| 157 | // libpac is used by frameworks, not by ART host. |
| 158 | "libpac", |
Roland Levillain | cb82d09 | 2018-11-02 18:50:15 +0000 | [diff] [blame] | 159 | ] |
| 160 | |
Alex Light | f7f3152 | 2019-02-01 11:14:41 -0800 | [diff] [blame] | 161 | // Temporary library includes for b/123591866 as all libraries are moved into the main art-apex. |
| 162 | art_runtime_libraries_zipapex = [ |
| 163 | "libnativebridge", |
| 164 | "libnativeloader", |
| 165 | "libnativehelper", |
| 166 | "libcutils", |
| 167 | ] |
| 168 | |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 169 | apex_key { |
| 170 | name: "com.android.runtime.key", |
Jiyong Park | 11a2df3 | 2018-11-22 16:25:08 +0900 | [diff] [blame] | 171 | public_key: "com.android.runtime.avbpubkey", |
| 172 | private_key: "com.android.runtime.pem", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 173 | } |
| 174 | |
Jiyong Park | e961855 | 2019-02-11 10:54:36 +0900 | [diff] [blame] | 175 | android_app_certificate { |
| 176 | name: "com.android.runtime.debug.certificate", |
| 177 | certificate: "com.android.runtime.debug", |
| 178 | } |
| 179 | |
| 180 | android_app_certificate { |
| 181 | name: "com.android.runtime.release.certificate", |
| 182 | certificate: "com.android.runtime.release", |
| 183 | } |
| 184 | |
Roland Levillain | 3be7afe | 2018-12-04 19:35:03 +0000 | [diff] [blame] | 185 | prebuilt_etc { |
| 186 | name: "com.android.runtime.ld.config.txt", |
| 187 | src: "ld.config.txt", |
| 188 | filename: "ld.config.txt", |
| 189 | installable: false, |
| 190 | } |
| 191 | |
Andreas Gampe | e55ea98 | 2019-02-26 09:11:20 -0800 | [diff] [blame] | 192 | apex_defaults { |
| 193 | name: "com.android.runtime-defaults", |
Roland Levillain | 5305880 | 2018-11-14 17:32:18 +0000 | [diff] [blame] | 194 | compile_multilib: "both", |
| 195 | manifest: "manifest.json", |
Roland Levillain | a0b1903 | 2019-02-08 15:59:56 +0000 | [diff] [blame] | 196 | java_libs: libcore_java_libs, |
Roland Levillain | 5305880 | 2018-11-14 17:32:18 +0000 | [diff] [blame] | 197 | native_shared_libs: art_runtime_base_native_shared_libs |
Roland Levillain | cb82d09 | 2018-11-02 18:50:15 +0000 | [diff] [blame] | 198 | + bionic_native_shared_libs |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame^] | 199 | + libcore_native_device_only_shared_libs |
| 200 | + libcore_native_shared_libs, |
Roland Levillain | 5305880 | 2018-11-14 17:32:18 +0000 | [diff] [blame] | 201 | multilib: { |
| 202 | both: { |
Jiyong Park | e2bc9fe | 2018-12-26 11:36:39 +0900 | [diff] [blame] | 203 | binaries: art_runtime_base_binaries_both |
| 204 | + bionic_binaries_both, |
Roland Levillain | 5305880 | 2018-11-14 17:32:18 +0000 | [diff] [blame] | 205 | }, |
| 206 | prefer32: { |
| 207 | binaries: art_runtime_base_binaries_prefer32, |
| 208 | }, |
| 209 | first: { |
Roland Levillain | 02998cf | 2019-03-21 14:27:02 +0000 | [diff] [blame] | 210 | binaries: art_tools_device_binaries, |
Roland Levillain | 5305880 | 2018-11-14 17:32:18 +0000 | [diff] [blame] | 211 | } |
| 212 | }, |
Andreas Gampe | 31782c1 | 2019-02-06 09:47:25 -0800 | [diff] [blame] | 213 | binaries: [ |
Andreas Gampe | 5bb525a | 2019-02-19 12:26:35 -0800 | [diff] [blame] | 214 | "art_postinstall_hook", |
Andreas Gampe | 31782c1 | 2019-02-06 09:47:25 -0800 | [diff] [blame] | 215 | "art_preinstall_hook", |
| 216 | "art_preinstall_hook_boot", |
Andreas Gampe | 29c111e | 2019-02-28 13:58:07 -0800 | [diff] [blame] | 217 | "art_preinstall_hook_system_server", |
Andreas Gampe | 31782c1 | 2019-02-06 09:47:25 -0800 | [diff] [blame] | 218 | "art_prepostinstall_utils", |
| 219 | ], |
Neil Fuller | 5ab4a56 | 2018-12-11 20:33:46 +0000 | [diff] [blame] | 220 | prebuilts: art_runtime_data_file_prebuilts |
Neil Fuller | a886dab | 2018-12-06 15:12:52 +0000 | [diff] [blame] | 221 | + ["com.android.runtime.ld.config.txt"], |
Roland Levillain | 5305880 | 2018-11-14 17:32:18 +0000 | [diff] [blame] | 222 | key: "com.android.runtime.key", |
Andreas Gampe | 5797568 | 2019-03-04 09:27:11 -0800 | [diff] [blame] | 223 | required: ["art_apex_boot_integrity"], |
Andreas Gampe | e55ea98 | 2019-02-26 09:11:20 -0800 | [diff] [blame] | 224 | } |
| 225 | |
| 226 | // Release version of the Runtime APEX module (not containing debug |
| 227 | // variants nor tools), included in user builds. Also used for |
| 228 | // storage-constrained devices in userdebug and eng builds. |
| 229 | apex { |
| 230 | name: "com.android.runtime.release", |
| 231 | defaults: ["com.android.runtime-defaults"], |
Jiyong Park | e961855 | 2019-02-11 10:54:36 +0900 | [diff] [blame] | 232 | certificate: ":com.android.runtime.release.certificate", |
Roland Levillain | 5305880 | 2018-11-14 17:32:18 +0000 | [diff] [blame] | 233 | } |
| 234 | |
| 235 | // "Debug" version of the Runtime APEX module (containing both release and |
| 236 | // debug variants, as well as additional tools), included in userdebug and |
| 237 | // eng build. |
| 238 | apex { |
| 239 | name: "com.android.runtime.debug", |
Andreas Gampe | e55ea98 | 2019-02-26 09:11:20 -0800 | [diff] [blame] | 240 | defaults: ["com.android.runtime-defaults"], |
| 241 | native_shared_libs: art_runtime_debug_native_shared_libs |
Roland Levillain | cb82d09 | 2018-11-02 18:50:15 +0000 | [diff] [blame] | 242 | + libcore_debug_native_shared_libs, |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 243 | multilib: { |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 244 | prefer32: { |
Andreas Gampe | e55ea98 | 2019-02-26 09:11:20 -0800 | [diff] [blame] | 245 | binaries: art_runtime_debug_binaries_prefer32 |
Alex Light | 572a096 | 2019-01-18 14:48:37 -0800 | [diff] [blame] | 246 | + art_runtime_debug_binaries_prefer32_device, |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 247 | }, |
| 248 | first: { |
Roland Levillain | 02998cf | 2019-03-21 14:27:02 +0000 | [diff] [blame] | 249 | binaries: art_tools_debug_device_only_binaries, |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 250 | } |
| 251 | }, |
Jiyong Park | e961855 | 2019-02-11 10:54:36 +0900 | [diff] [blame] | 252 | certificate: ":com.android.runtime.debug.certificate", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 253 | } |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 254 | |
| 255 | // TODO: Do this better. art_apex will disable host builds when |
| 256 | // HOST_PREFER_32_BIT is set. We cannot simply use com.android.runtime.debug |
| 257 | // because binaries have different multilib classes and 'multilib: {}' isn't |
| 258 | // supported by target: { ... }. |
| 259 | // See b/120617876 for more information. |
Alex Light | 0239f2f | 2019-02-07 13:38:50 -0800 | [diff] [blame] | 260 | art_apex_test { |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 261 | name: "com.android.runtime.host", |
| 262 | compile_multilib: "both", |
| 263 | payload_type: "zip", |
| 264 | host_supported: true, |
| 265 | device_supported: false, |
| 266 | manifest: "manifest.json", |
Roland Levillain | a0b1903 | 2019-02-08 15:59:56 +0000 | [diff] [blame] | 267 | java_libs: libcore_java_libs, |
Alex Light | 55a9bad | 2019-01-29 18:34:09 -0800 | [diff] [blame] | 268 | ignore_system_library_special_case: true, |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 269 | native_shared_libs: art_runtime_base_native_shared_libs |
Roland Levillain | cb82d09 | 2018-11-02 18:50:15 +0000 | [diff] [blame] | 270 | + art_runtime_debug_native_shared_libs |
| 271 | + libcore_native_shared_libs |
Alex Light | f7f3152 | 2019-02-01 11:14:41 -0800 | [diff] [blame] | 272 | + libcore_debug_native_shared_libs |
Alex Light | 6585ecb | 2019-02-08 14:13:22 -0800 | [diff] [blame] | 273 | + art_runtime_libraries_zipapex |
| 274 | + art_runtime_host_run_test_libs, |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 275 | multilib: { |
| 276 | both: { |
Alex Light | 572a096 | 2019-01-18 14:48:37 -0800 | [diff] [blame] | 277 | binaries: art_runtime_base_binaries_both |
| 278 | + art_runtime_debug_binaries_both_host, |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 279 | }, |
| 280 | first: { |
Roland Levillain | e9f0ccc | 2019-01-07 16:45:58 +0000 | [diff] [blame] | 281 | binaries: art_tools_host_binaries |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 282 | + art_runtime_base_binaries_prefer32 |
| 283 | + art_runtime_debug_binaries_prefer32, |
| 284 | } |
| 285 | }, |
| 286 | key: "com.android.runtime.key", |
Alex Light | e352152 | 2018-12-06 22:51:18 -0800 | [diff] [blame] | 287 | target: { |
| 288 | darwin: { |
| 289 | enabled: false, |
| 290 | }, |
Alex Light | 55a9bad | 2019-01-29 18:34:09 -0800 | [diff] [blame] | 291 | linux_bionic: { |
| 292 | enabled: true, |
| 293 | multilib: { |
| 294 | both: { |
| 295 | native_shared_libs: bionic_native_shared_libs, |
| 296 | binaries: bionic_binaries_both, |
| 297 | } |
| 298 | } |
| 299 | }, |
Alex Light | e352152 | 2018-12-06 22:51:18 -0800 | [diff] [blame] | 300 | }, |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 301 | } |
Jiyong Park | 1410e9f | 2019-02-02 04:18:23 +0000 | [diff] [blame] | 302 | |
| 303 | python_binary_host { |
| 304 | name: "art-apex-tester", |
| 305 | srcs: ["art_apex_test.py"], |
| 306 | main: "art_apex_test.py", |
| 307 | version: { |
| 308 | py2: { |
| 309 | enabled: false, |
| 310 | }, |
| 311 | py3: { |
| 312 | enabled: true, |
| 313 | }, |
| 314 | }, |
| 315 | } |
| 316 | |
| 317 | // Genrules so we can run the checker, and empty Java library so that it gets executed. |
| 318 | |
| 319 | genrule { |
| 320 | name: "art-check-release-apex-gen", |
| 321 | srcs: [":com.android.runtime.release"], |
| 322 | tools: [ |
| 323 | "art-apex-tester", |
| 324 | "debugfs", |
| 325 | ], |
| 326 | cmd: "$(location art-apex-tester)" |
| 327 | + " --debugfs $(location debugfs)" |
| 328 | + " --tmpdir $(genDir)" |
| 329 | + " $(in)" |
| 330 | + " && touch $(out)", |
| 331 | out: ["art-check-release-apex-gen.dummy"], |
| 332 | } |
| 333 | cc_prebuilt_binary { |
| 334 | name: "art-check-release-apex-gen-fakebin", |
| 335 | srcs: [":art-check-release-apex-gen"], |
| 336 | host_supported: true, |
| 337 | device_supported: false, |
| 338 | target: { |
| 339 | darwin: { |
| 340 | enabled: false, // No python3. |
| 341 | }, |
| 342 | }, |
| 343 | } |
| 344 | |
| 345 | genrule { |
| 346 | name: "art-check-debug-apex-gen", |
| 347 | srcs: [":com.android.runtime.debug"], |
| 348 | tools: [ |
| 349 | "art-apex-tester", |
| 350 | "debugfs", |
| 351 | ], |
| 352 | cmd: "$(location art-apex-tester)" |
| 353 | + " --debugfs $(location debugfs)" |
| 354 | + " --tmpdir $(genDir)" |
| 355 | + " --debug" |
| 356 | + " $(in)" |
| 357 | + " && touch $(out)", |
| 358 | out: ["art-check-debug-apex-gen.dummy"], |
| 359 | } |
| 360 | cc_prebuilt_binary { |
| 361 | name: "art-check-debug-apex-gen-fakebin", |
| 362 | srcs: [":art-check-debug-apex-gen"], |
| 363 | host_supported: true, |
| 364 | device_supported: false, |
| 365 | target: { |
| 366 | darwin: { |
| 367 | enabled: false, // No python3. |
| 368 | }, |
| 369 | }, |
| 370 | } |
Andreas Gampe | 31782c1 | 2019-02-06 09:47:25 -0800 | [diff] [blame] | 371 | |
| 372 | // Pre-install scripts. |
| 373 | |
| 374 | sh_binary { |
| 375 | name: "art_preinstall_hook", |
| 376 | src: "art_preinstall_hook.sh", |
| 377 | } |
| 378 | sh_binary { |
| 379 | name: "art_preinstall_hook_boot", |
| 380 | src: "art_preinstall_hook_boot.sh", |
| 381 | } |
| 382 | sh_binary { |
Andreas Gampe | 29c111e | 2019-02-28 13:58:07 -0800 | [diff] [blame] | 383 | name: "art_preinstall_hook_system_server", |
| 384 | src: "art_preinstall_hook_system_server.sh", |
| 385 | } |
| 386 | sh_binary { |
Andreas Gampe | 31782c1 | 2019-02-06 09:47:25 -0800 | [diff] [blame] | 387 | name: "art_prepostinstall_utils", |
| 388 | src: "art_prepostinstall_utils.sh", |
| 389 | } |
Andreas Gampe | 5bb525a | 2019-02-19 12:26:35 -0800 | [diff] [blame] | 390 | sh_binary { |
| 391 | name: "art_postinstall_hook", |
| 392 | src: "art_postinstall_hook.sh", |
| 393 | } |
Andreas Gampe | 5797568 | 2019-03-04 09:27:11 -0800 | [diff] [blame] | 394 | |
| 395 | sh_binary { |
| 396 | name: "art_apex_boot_integrity", |
| 397 | src: "art_apex_boot_integrity.sh", |
| 398 | init_rc: ["art_apex_boot_integrity.rc"], |
| 399 | } |