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