Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 1 | // Modules listed in LOCAL_REQUIRED_MODULES for module art-runtime in art/Android.mk. |
| 2 | // - Base requirements (binaries for which both 32- and 64-bit versions are built, if relevant). |
| 3 | art_runtime_base_binaries_both = [ |
| 4 | "dalvikvm", |
| 5 | ] |
| 6 | // - Base requirements (binaries for which a 32-bit version is preferred). |
| 7 | art_runtime_base_binaries_prefer32 = [ |
| 8 | "dex2oat", |
| 9 | "dexoptanalyzer", |
| 10 | "profman", |
| 11 | ] |
| 12 | // - Base requirements (libraries). |
Roland Levillain | 1617f8c | 2019-03-26 17:52:30 +0000 | [diff] [blame] | 13 | // |
| 14 | // Note: ART on-device chroot-based testing and benchmarking is not yet using |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 15 | // the ART APEX, meaning that copies of some of these libraries have to be |
Roland Levillain | 1617f8c | 2019-03-26 17:52:30 +0000 | [diff] [blame] | 16 | // installed in `/system` for the ART Buildbot set-up to work properly. This is |
| 17 | // done by the `standalone-apex-files` Make phony target, used by the ART |
| 18 | // Buildbot and Golem (see `art/Android.mk`). If you add libraries to this list, |
Martin Stjernholm | 84e5bb9 | 2019-09-05 19:56:46 +0100 | [diff] [blame] | 19 | // you may have to also add them to `PRIVATE_ART_APEX_DEPENDENCY_LIBS` in |
Roland Levillain | 1617f8c | 2019-03-26 17:52:30 +0000 | [diff] [blame] | 20 | // `art/Android.mk`. |
| 21 | // TODO(b/121117762): Remove this note when both the ART Buildbot and Golem use |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 22 | // the ART APEX. |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 23 | art_runtime_base_native_shared_libs = [ |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame] | 24 | // External API (having APEX stubs). |
Martin Stjernholm | 84bf698 | 2019-02-05 15:07:57 +0000 | [diff] [blame] | 25 | "libdexfile_external", |
Martin Stjernholm | c2f8b50 | 2019-01-17 14:51:35 +0000 | [diff] [blame] | 26 | "libnativebridge", |
| 27 | "libnativehelper", |
| 28 | "libnativeloader", |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame] | 29 | // libadbconnection is internal and loaded with dlopen(), but it cannot use |
| 30 | // "required" because of cyclic dependency (b/124505714). |
| 31 | "libadbconnection", |
| 32 | // TODO(b/124476339): Clean up the following libraries once "required" |
Martin Stjernholm | 0c15b82 | 2019-02-14 17:24:19 +0000 | [diff] [blame] | 33 | // dependencies work with APEX libraries. |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame] | 34 | "libart", |
| 35 | "libart-compiler", |
Martin Stjernholm | 0c15b82 | 2019-02-14 17:24:19 +0000 | [diff] [blame] | 36 | "libdt_fd_forward", |
| 37 | "libdt_socket", |
| 38 | "libjdwp", |
| 39 | "libnpt", |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame] | 40 | "libopenjdkjvm", |
| 41 | "libopenjdkjvmti", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 42 | ] |
Florian Mayer | 07710c5 | 2019-09-16 15:53:38 +0000 | [diff] [blame] | 43 | |
| 44 | art_runtime_base_native_device_only_shared_libs = [ |
| 45 | "libperfetto_hprof", |
| 46 | ] |
| 47 | |
Jiyong Park | 3296fb1 | 2018-12-13 18:32:21 +0900 | [diff] [blame] | 48 | bionic_native_shared_libs = [ |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame] | 49 | // External API (having APEX stubs). |
Jiyong Park | 3296fb1 | 2018-12-13 18:32:21 +0900 | [diff] [blame] | 50 | "libc", |
| 51 | "libm", |
| 52 | "libdl", |
| 53 | ] |
Jiyong Park | 408f7d0 | 2019-04-02 23:04:42 +0900 | [diff] [blame] | 54 | |
Roland Levillain | 89867bf | 2019-06-24 15:09:01 +0100 | [diff] [blame] | 55 | bionic_native_device_only_shared_libs = [ |
Jiyong Park | 408f7d0 | 2019-04-02 23:04:42 +0900 | [diff] [blame] | 56 | // ... and their internal dependencies |
| 57 | // These are available only on device |
| 58 | "libc_malloc_debug", |
| 59 | "libc_malloc_hooks", |
| 60 | ] |
| 61 | |
Jiyong Park | e2bc9fe | 2018-12-26 11:36:39 +0900 | [diff] [blame] | 62 | bionic_binaries_both = [ |
| 63 | "linker", |
| 64 | ] |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 65 | |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 66 | // - Debug variants (binaries for which a 32-bit version is preferred). |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 67 | art_runtime_debug_binaries_prefer32 = [ |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 68 | "dexoptanalyzerd", |
| 69 | "profmand", |
| 70 | ] |
Alex Light | 572a096 | 2019-01-18 14:48:37 -0800 | [diff] [blame] | 71 | art_runtime_debug_binaries_prefer32_device = [ |
| 72 | "dex2oatd", |
| 73 | ] |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 74 | |
Alex Light | 572a096 | 2019-01-18 14:48:37 -0800 | [diff] [blame] | 75 | art_runtime_debug_binaries_both_host = [ |
| 76 | "dex2oatd", |
| 77 | ] |
| 78 | |
Roland Levillain | cb82d09 | 2018-11-02 18:50:15 +0000 | [diff] [blame] | 79 | // - Debug variants (libraries). |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 80 | art_runtime_debug_native_shared_libs = [ |
Martin Stjernholm | c2f8b50 | 2019-01-17 14:51:35 +0000 | [diff] [blame] | 81 | "libadbconnectiond", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 82 | "libartd", |
| 83 | "libartd-compiler", |
Martin Stjernholm | 356864a | 2019-04-30 16:22:17 +0100 | [diff] [blame] | 84 | "libdexfiled_external", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 85 | "libopenjdkjvmd", |
| 86 | "libopenjdkjvmtid", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 87 | ] |
| 88 | |
Florian Mayer | 07710c5 | 2019-09-16 15:53:38 +0000 | [diff] [blame] | 89 | art_runtime_base_native_device_only_debug_shared_libs = [ |
| 90 | "libperfetto_hprofd", |
| 91 | ] |
| 92 | |
Orion Hodson | 5cb98a9 | 2019-03-25 15:07:16 +0000 | [diff] [blame] | 93 | // 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] | 94 | art_tools_common_binaries = [ |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 95 | "dexdump", |
| 96 | "dexlist", |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 97 | ] |
| 98 | |
Martin Stjernholm | 77f1766 | 2019-04-03 17:08:21 +0100 | [diff] [blame] | 99 | // Tools common to both device and host debug APEXes. |
| 100 | art_tools_debug_binaries = [ |
Roland Levillain | 6dd6212 | 2019-06-18 19:10:21 +0100 | [diff] [blame] | 101 | "dexanalyze", |
Martin Stjernholm | 77f1766 | 2019-04-03 17:08:21 +0100 | [diff] [blame] | 102 | "dexdiag", |
Roland Levillain | 6dd6212 | 2019-06-18 19:10:21 +0100 | [diff] [blame] | 103 | "dexlayout", |
| 104 | "dexlayoutd", |
| 105 | ] |
| 106 | |
| 107 | art_tools_debug_binaries_both = [ |
| 108 | "imgdiag", |
| 109 | "imgdiagd", |
Martin Stjernholm | 77f1766 | 2019-04-03 17:08:21 +0100 | [diff] [blame] | 110 | ] |
| 111 | |
Orion Hodson | 5cb98a9 | 2019-03-25 15:07:16 +0000 | [diff] [blame] | 112 | // 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] | 113 | art_tools_device_only_binaries = [ |
| 114 | // oatdump cannot link with host linux_bionic due to not using clang lld; |
| 115 | // TODO: Make it work with clang lld. |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 116 | "oatdump", |
| 117 | ] |
Roland Levillain | 02998cf | 2019-03-21 14:27:02 +0000 | [diff] [blame] | 118 | // Same, but for only for debug packages. |
| 119 | art_tools_debug_device_only_binaries = [ |
| 120 | // oatdumpd cannot link with host linux_bionic due to not using clang lld; |
| 121 | // TODO: Make it work with clang lld. |
| 122 | "oatdumpd", |
| 123 | ] |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 124 | |
Orion Hodson | 5cb98a9 | 2019-03-25 15:07:16 +0000 | [diff] [blame] | 125 | // 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] | 126 | art_tools_host_only_binaries = [ |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 127 | // FIXME: Does not work as-is, because `ahat` is defined in tools/ahat/Android.mk |
| 128 | // (same issue as for `libart_fake` above). |
| 129 | //"ahat", |
| 130 | "hprof-conv", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 131 | ] |
| 132 | |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 133 | // Libraries needed to use com.android.art.host for zipapex run-tests |
Alex Light | 6585ecb | 2019-02-08 14:13:22 -0800 | [diff] [blame] | 134 | art_runtime_host_run_test_libs = [ |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 135 | "libartd-disassembler", |
Alex Light | 6585ecb | 2019-02-08 14:13:22 -0800 | [diff] [blame] | 136 | ] |
| 137 | |
Roland Levillain | a0b1903 | 2019-02-08 15:59:56 +0000 | [diff] [blame] | 138 | // Core Java libraries. |
| 139 | libcore_java_libs = [ |
| 140 | "core-oj", |
| 141 | "core-libart", |
Victor Chang | 759845f | 2019-08-06 16:04:36 +0100 | [diff] [blame] | 142 | "core-icu4j", |
Roland Levillain | a0b1903 | 2019-02-08 15:59:56 +0000 | [diff] [blame] | 143 | "okhttp", |
| 144 | "bouncycastle", |
| 145 | "apache-xml", |
| 146 | ] |
| 147 | |
| 148 | // Native libraries that support the core Java libraries. |
Roland Levillain | 1617f8c | 2019-03-26 17:52:30 +0000 | [diff] [blame] | 149 | // |
| 150 | // Note: ART on-device chroot-based testing and benchmarking is not yet using |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 151 | // the ART APEX, meaning that copies of some of these libraries have to be |
Roland Levillain | 1617f8c | 2019-03-26 17:52:30 +0000 | [diff] [blame] | 152 | // installed in `/system` for the ART Buildbot set-up to work properly. This is |
| 153 | // done by the `standalone-apex-files` Make phony target, used by the ART |
| 154 | // Buildbot and Golem (see `art/Android.mk`). If you add libraries to this list, |
Martin Stjernholm | 84e5bb9 | 2019-09-05 19:56:46 +0100 | [diff] [blame] | 155 | // you may have to also add them to `PRIVATE_ART_APEX_DEPENDENCY_LIBS` in |
Roland Levillain | 1617f8c | 2019-03-26 17:52:30 +0000 | [diff] [blame] | 156 | // `art/Android.mk`. |
| 157 | // TODO(b/121117762): Remove this note when both the ART Buildbot and Golem use |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 158 | // the ART APEX. |
Roland Levillain | cb82d09 | 2018-11-02 18:50:15 +0000 | [diff] [blame] | 159 | libcore_native_shared_libs = [ |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame] | 160 | // External API (having APEX stubs). |
Victor Chang | 2f0008a | 2019-01-15 14:10:34 +0000 | [diff] [blame] | 161 | "libandroidicu", |
Pete Bentley | 79f5662 | 2019-03-21 17:09:56 +0000 | [diff] [blame] | 162 | "libandroidio", |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame] | 163 | // TODO(b/124476339): Clean up the following libraries once "required" |
| 164 | // dependencies work with APEX libraries. |
Victor Chang | 2f0008a | 2019-01-15 14:10:34 +0000 | [diff] [blame] | 165 | "libexpat", |
| 166 | "libicui18n", |
| 167 | "libicuuc", |
Pete Bentley | 51ffdbe | 2019-01-11 15:25:40 +0000 | [diff] [blame] | 168 | "libjavacore", |
Roland Levillain | cb82d09 | 2018-11-02 18:50:15 +0000 | [diff] [blame] | 169 | "libopenjdk", |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame] | 170 | ] |
| 171 | libcore_debug_native_shared_libs = [ |
| 172 | "libopenjdkd", |
Victor Chang | 2f0008a | 2019-01-15 14:10:34 +0000 | [diff] [blame] | 173 | ] |
| 174 | |
Martin Stjernholm | 023c218 | 2019-03-28 15:52:32 +0000 | [diff] [blame] | 175 | libcore_native_device_only_shared_libs = [ |
Victor Chang | 2f0008a | 2019-01-15 14:10:34 +0000 | [diff] [blame] | 176 | // TODO(b/122876336): Remove libpac.so once it's migrated to Webview. |
| 177 | // libpac is used by frameworks, not by ART host. |
| 178 | "libpac", |
Roland Levillain | cb82d09 | 2018-11-02 18:50:15 +0000 | [diff] [blame] | 179 | ] |
| 180 | |
Alex Light | f7f3152 | 2019-02-01 11:14:41 -0800 | [diff] [blame] | 181 | // Temporary library includes for b/123591866 as all libraries are moved into the main art-apex. |
| 182 | art_runtime_libraries_zipapex = [ |
| 183 | "libnativebridge", |
| 184 | "libnativeloader", |
| 185 | "libnativehelper", |
| 186 | "libcutils", |
| 187 | ] |
| 188 | |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 189 | // Runtime (Bionic) APEX module |
| 190 | // |
| 191 | // This used to consist of Bionic, ART and Libcore. Now it contains Bionic only, |
| 192 | // but keeps /apex/com.android.runtime for app compat reasons. |
| 193 | // |
| 194 | // TODO(b/139176024): Move this to the Bionic tree. |
| 195 | |
| 196 | android_app_certificate { |
| 197 | name: "com.android.runtime.certificate", |
| 198 | certificate: "com.android.runtime", |
| 199 | } |
| 200 | |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 201 | apex_key { |
| 202 | name: "com.android.runtime.key", |
Jiyong Park | 11a2df3 | 2018-11-22 16:25:08 +0900 | [diff] [blame] | 203 | public_key: "com.android.runtime.avbpubkey", |
| 204 | private_key: "com.android.runtime.pem", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 205 | } |
| 206 | |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 207 | prebuilt_etc { |
| 208 | name: "com.android.runtime.ld.config.txt", |
| 209 | src: "runtime-ld.config.txt", |
| 210 | filename: "ld.config.txt", |
| 211 | installable: false, |
| 212 | } |
| 213 | |
| 214 | apex { |
| 215 | name: "com.android.runtime", |
| 216 | compile_multilib: "both", |
| 217 | manifest: "manifest-runtime.json", |
| 218 | native_shared_libs: bionic_native_shared_libs + |
| 219 | bionic_native_device_only_shared_libs, |
| 220 | multilib: { |
| 221 | both: { |
| 222 | binaries: bionic_binaries_both, |
| 223 | }, |
| 224 | }, |
| 225 | prebuilts: ["com.android.runtime.ld.config.txt"], |
| 226 | key: "com.android.runtime.key", |
| 227 | certificate: ":com.android.runtime.certificate", |
| 228 | } |
| 229 | |
| 230 | // ART APEX module |
| 231 | // |
| 232 | // Contains both the Android Managed Runtime (ART) and the Android Core Library |
| 233 | // (Libcore). |
| 234 | |
Jiyong Park | e961855 | 2019-02-11 10:54:36 +0900 | [diff] [blame] | 235 | android_app_certificate { |
Martin Stjernholm | 6da4569 | 2019-08-15 15:18:53 +0100 | [diff] [blame] | 236 | name: "com.android.art.certificate", |
| 237 | certificate: "com.android.art", |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 238 | } |
| 239 | |
| 240 | apex_key { |
| 241 | name: "com.android.art.key", |
| 242 | public_key: "com.android.art.avbpubkey", |
| 243 | private_key: "com.android.art.pem", |
Jiyong Park | e961855 | 2019-02-11 10:54:36 +0900 | [diff] [blame] | 244 | } |
| 245 | |
Roland Levillain | 3be7afe | 2018-12-04 19:35:03 +0000 | [diff] [blame] | 246 | prebuilt_etc { |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 247 | name: "com.android.art.ld.config.txt", |
Roland Levillain | 3be7afe | 2018-12-04 19:35:03 +0000 | [diff] [blame] | 248 | src: "ld.config.txt", |
| 249 | filename: "ld.config.txt", |
| 250 | installable: false, |
| 251 | } |
| 252 | |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 253 | // Default values shared by device ART APEXes. |
Andreas Gampe | e55ea98 | 2019-02-26 09:11:20 -0800 | [diff] [blame] | 254 | apex_defaults { |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 255 | name: "com.android.art-defaults", |
Roland Levillain | 5305880 | 2018-11-14 17:32:18 +0000 | [diff] [blame] | 256 | compile_multilib: "both", |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 257 | manifest: "manifest-art.json", |
Roland Levillain | a0b1903 | 2019-02-08 15:59:56 +0000 | [diff] [blame] | 258 | java_libs: libcore_java_libs, |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 259 | native_shared_libs: art_runtime_base_native_shared_libs + |
Florian Mayer | 07710c5 | 2019-09-16 15:53:38 +0000 | [diff] [blame] | 260 | art_runtime_base_native_device_only_shared_libs + |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 261 | libcore_native_device_only_shared_libs + |
| 262 | libcore_native_shared_libs, |
Roland Levillain | 5305880 | 2018-11-14 17:32:18 +0000 | [diff] [blame] | 263 | multilib: { |
| 264 | both: { |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 265 | binaries: art_runtime_base_binaries_both, |
Roland Levillain | 5305880 | 2018-11-14 17:32:18 +0000 | [diff] [blame] | 266 | }, |
| 267 | prefer32: { |
| 268 | binaries: art_runtime_base_binaries_prefer32, |
| 269 | }, |
| 270 | first: { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 271 | binaries: art_tools_common_binaries + |
| 272 | art_tools_device_only_binaries, |
| 273 | }, |
Roland Levillain | 5305880 | 2018-11-14 17:32:18 +0000 | [diff] [blame] | 274 | }, |
Andreas Gampe | 31782c1 | 2019-02-06 09:47:25 -0800 | [diff] [blame] | 275 | binaries: [ |
Andreas Gampe | 5bb525a | 2019-02-19 12:26:35 -0800 | [diff] [blame] | 276 | "art_postinstall_hook", |
Andreas Gampe | 31782c1 | 2019-02-06 09:47:25 -0800 | [diff] [blame] | 277 | "art_preinstall_hook", |
| 278 | "art_preinstall_hook_boot", |
Andreas Gampe | 29c111e | 2019-02-28 13:58:07 -0800 | [diff] [blame] | 279 | "art_preinstall_hook_system_server", |
Andreas Gampe | 31782c1 | 2019-02-06 09:47:25 -0800 | [diff] [blame] | 280 | "art_prepostinstall_utils", |
| 281 | ], |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 282 | prebuilts: ["com.android.art.ld.config.txt"], |
| 283 | key: "com.android.art.key", |
Victor Chang | 6461124 | 2019-07-05 16:32:41 +0100 | [diff] [blame] | 284 | required: [ |
| 285 | "art_apex_boot_integrity", |
| 286 | "com.android.i18n", |
| 287 | ], |
Andreas Gampe | e55ea98 | 2019-02-26 09:11:20 -0800 | [diff] [blame] | 288 | } |
| 289 | |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 290 | // Default values shared by (device) Debug and Testing ART APEXes. |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 291 | apex_defaults { |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 292 | name: "com.android.art-dev-defaults", |
| 293 | defaults: ["com.android.art-defaults"], |
Florian Mayer | 07710c5 | 2019-09-16 15:53:38 +0000 | [diff] [blame] | 294 | native_shared_libs: art_runtime_base_native_device_only_debug_shared_libs + |
| 295 | art_runtime_debug_native_shared_libs + |
Roland Levillain | 89867bf | 2019-06-24 15:09:01 +0100 | [diff] [blame] | 296 | libcore_debug_native_shared_libs, |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 297 | multilib: { |
Roland Levillain | 6dd6212 | 2019-06-18 19:10:21 +0100 | [diff] [blame] | 298 | both: { |
| 299 | binaries: art_tools_debug_binaries_both, |
| 300 | }, |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 301 | prefer32: { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 302 | binaries: art_runtime_debug_binaries_prefer32 + |
| 303 | art_runtime_debug_binaries_prefer32_device, |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 304 | }, |
| 305 | first: { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 306 | binaries: art_tools_debug_binaries + |
| 307 | art_tools_debug_device_only_binaries, |
| 308 | }, |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 309 | }, |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 310 | } |
| 311 | |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 312 | // Release version of the ART APEX module (not containing debug |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 313 | // variants nor tools), included in user builds. Also used for |
| 314 | // storage-constrained devices in userdebug and eng builds. |
| 315 | apex { |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 316 | name: "com.android.art.release", |
| 317 | defaults: ["com.android.art-defaults"], |
Martin Stjernholm | 6da4569 | 2019-08-15 15:18:53 +0100 | [diff] [blame] | 318 | certificate: ":com.android.art.certificate", |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 319 | } |
| 320 | |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 321 | // "Debug" version of the ART APEX module (containing both release and |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 322 | // debug variants, as well as additional tools), included in userdebug and |
| 323 | // eng build. |
| 324 | apex { |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 325 | name: "com.android.art.debug", |
| 326 | defaults: ["com.android.art-dev-defaults"], |
Martin Stjernholm | 6da4569 | 2019-08-15 15:18:53 +0100 | [diff] [blame] | 327 | certificate: ":com.android.art.certificate", |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 328 | } |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 329 | |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 330 | // ART gtests with dependencies on internal ART APEX libraries. |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 331 | art_gtests = [ |
| 332 | "art_cmdline_tests", |
| 333 | "art_compiler_tests", |
| 334 | "art_dex2oat_tests", |
| 335 | "art_dexanalyze_tests", |
| 336 | "art_dexdiag_tests", |
| 337 | "art_dexdump_tests", |
| 338 | "art_dexlayout_tests", |
| 339 | "art_dexlist_tests", |
| 340 | "art_dexoptanalyzer_tests", |
| 341 | "art_imgdiag_tests", |
| 342 | "art_libartbase_tests", |
| 343 | "art_libartpalette_tests", |
| 344 | "art_libdexfile_tests", |
| 345 | "art_libdexfile_support_tests", |
| 346 | "art_libprofile_tests", |
| 347 | "art_oatdump_tests", |
| 348 | "art_profman_tests", |
| 349 | "art_runtime_compiler_tests", |
| 350 | "art_runtime_tests", |
| 351 | "art_sigchain_tests", |
| 352 | ] |
| 353 | |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 354 | // "Testing" version of the ART APEX module (containing both release |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 355 | // and debug variants, additional tools, and ART gtests), for testing |
| 356 | // purposes only. |
| 357 | apex_test { |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 358 | name: "com.android.art.testing", |
| 359 | defaults: ["com.android.art-dev-defaults"], |
| 360 | file_contexts: "com.android.art.debug", |
Martin Stjernholm | 6da4569 | 2019-08-15 15:18:53 +0100 | [diff] [blame] | 361 | certificate: ":com.android.art.certificate", |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 362 | tests: art_gtests, |
Andreas Gampe | 816a552 | 2019-09-11 11:29:49 -0700 | [diff] [blame] | 363 | binaries: ["signal_dumper"], // Need signal_dumper for run-tests. |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 364 | } |
| 365 | |
| 366 | // TODO: Do this better. art_apex_test_host will disable host builds when |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 367 | // HOST_PREFER_32_BIT is set. We cannot simply use com.android.art.debug |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 368 | // because binaries have different multilib classes and 'multilib: {}' isn't |
| 369 | // supported by target: { ... }. |
| 370 | // See b/120617876 for more information. |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 371 | art_apex_test_host { |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 372 | name: "com.android.art.host", |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 373 | compile_multilib: "both", |
| 374 | payload_type: "zip", |
| 375 | host_supported: true, |
| 376 | device_supported: false, |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 377 | manifest: "manifest-art.json", |
Roland Levillain | a0b1903 | 2019-02-08 15:59:56 +0000 | [diff] [blame] | 378 | java_libs: libcore_java_libs, |
Alex Light | 55a9bad | 2019-01-29 18:34:09 -0800 | [diff] [blame] | 379 | ignore_system_library_special_case: true, |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 380 | native_shared_libs: art_runtime_base_native_shared_libs + |
| 381 | art_runtime_debug_native_shared_libs + |
| 382 | libcore_native_shared_libs + |
| 383 | libcore_debug_native_shared_libs + |
| 384 | art_runtime_libraries_zipapex + |
| 385 | art_runtime_host_run_test_libs, |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 386 | multilib: { |
| 387 | both: { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 388 | binaries: art_runtime_base_binaries_both + |
Roland Levillain | 6dd6212 | 2019-06-18 19:10:21 +0100 | [diff] [blame] | 389 | art_runtime_debug_binaries_both_host + |
| 390 | art_tools_debug_binaries_both, |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 391 | }, |
| 392 | first: { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 393 | binaries: art_tools_common_binaries + // Host APEX is always debug. |
| 394 | art_tools_debug_binaries + |
| 395 | art_tools_host_only_binaries + |
| 396 | art_runtime_base_binaries_prefer32 + |
| 397 | art_runtime_debug_binaries_prefer32, |
| 398 | }, |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 399 | }, |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 400 | key: "com.android.art.key", |
Alex Light | e352152 | 2018-12-06 22:51:18 -0800 | [diff] [blame] | 401 | target: { |
| 402 | darwin: { |
| 403 | enabled: false, |
| 404 | }, |
Alex Light | 55a9bad | 2019-01-29 18:34:09 -0800 | [diff] [blame] | 405 | linux_bionic: { |
| 406 | enabled: true, |
| 407 | multilib: { |
| 408 | both: { |
| 409 | native_shared_libs: bionic_native_shared_libs, |
| 410 | binaries: bionic_binaries_both, |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 411 | }, |
| 412 | }, |
Alex Light | 55a9bad | 2019-01-29 18:34:09 -0800 | [diff] [blame] | 413 | }, |
Alex Light | e352152 | 2018-12-06 22:51:18 -0800 | [diff] [blame] | 414 | }, |
Alex Light | da948ce | 2018-12-06 17:05:41 +0000 | [diff] [blame] | 415 | } |
Jiyong Park | 1410e9f | 2019-02-02 04:18:23 +0000 | [diff] [blame] | 416 | |
| 417 | python_binary_host { |
| 418 | name: "art-apex-tester", |
| 419 | srcs: ["art_apex_test.py"], |
| 420 | main: "art_apex_test.py", |
| 421 | version: { |
| 422 | py2: { |
Roland Levillain | 29e740f | 2019-08-20 15:31:37 +0100 | [diff] [blame] | 423 | enabled: true, |
Jiyong Park | 1410e9f | 2019-02-02 04:18:23 +0000 | [diff] [blame] | 424 | }, |
| 425 | py3: { |
Roland Levillain | 29e740f | 2019-08-20 15:31:37 +0100 | [diff] [blame] | 426 | enabled: false, |
Jiyong Park | 1410e9f | 2019-02-02 04:18:23 +0000 | [diff] [blame] | 427 | }, |
| 428 | }, |
| 429 | } |
| 430 | |
| 431 | // Genrules so we can run the checker, and empty Java library so that it gets executed. |
| 432 | |
Roland Levillain | d4fc62c | 2019-08-12 19:47:51 +0100 | [diff] [blame] | 433 | art_check_apex_gen_stem = "$(location art-apex-tester)" + |
| 434 | " --debugfs $(location debugfs)" + |
| 435 | " --tmpdir $(genDir)" |
| 436 | |
| 437 | // The non-flattened APEXes are always checked, as they are always generated |
| 438 | // (even when APEX flattening is enabled). |
| 439 | genrule_defaults { |
| 440 | name: "art-check-apex-gen-defaults", |
Jiyong Park | 1410e9f | 2019-02-02 04:18:23 +0000 | [diff] [blame] | 441 | tools: [ |
| 442 | "art-apex-tester", |
| 443 | "debugfs", |
| 444 | ], |
Jiyong Park | 1410e9f | 2019-02-02 04:18:23 +0000 | [diff] [blame] | 445 | } |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 446 | |
Roland Levillain | d4fc62c | 2019-08-12 19:47:51 +0100 | [diff] [blame] | 447 | cc_defaults { |
| 448 | name: "art-check-apex-gen-fakebin-defaults", |
Jiyong Park | 1410e9f | 2019-02-02 04:18:23 +0000 | [diff] [blame] | 449 | host_supported: true, |
| 450 | device_supported: false, |
| 451 | target: { |
| 452 | darwin: { |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 453 | enabled: false, // No python3. |
Jiyong Park | 1410e9f | 2019-02-02 04:18:23 +0000 | [diff] [blame] | 454 | }, |
| 455 | }, |
| 456 | } |
| 457 | |
| 458 | genrule { |
Roland Levillain | d4fc62c | 2019-08-12 19:47:51 +0100 | [diff] [blame] | 459 | name: "art-check-release-apex-gen", |
| 460 | defaults: ["art-check-apex-gen-defaults"], |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 461 | srcs: [":com.android.art.release"], |
Roland Levillain | d4fc62c | 2019-08-12 19:47:51 +0100 | [diff] [blame] | 462 | cmd: art_check_apex_gen_stem + |
Roland Levillain | d7ea043 | 2019-09-09 16:29:12 +0100 | [diff] [blame^] | 463 | " --flavor release" + |
Roland Levillain | d4fc62c | 2019-08-12 19:47:51 +0100 | [diff] [blame] | 464 | " $(in)" + |
| 465 | " && touch $(out)", |
| 466 | out: ["art-check-release-apex-gen.dummy"], |
| 467 | } |
| 468 | |
| 469 | cc_prebuilt_binary { |
| 470 | name: "art-check-release-apex-gen-fakebin", |
| 471 | defaults: ["art-check-apex-gen-fakebin-defaults"], |
| 472 | srcs: [":art-check-release-apex-gen"], |
| 473 | } |
| 474 | |
| 475 | genrule { |
Jiyong Park | 1410e9f | 2019-02-02 04:18:23 +0000 | [diff] [blame] | 476 | name: "art-check-debug-apex-gen", |
Roland Levillain | d4fc62c | 2019-08-12 19:47:51 +0100 | [diff] [blame] | 477 | defaults: ["art-check-apex-gen-defaults"], |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 478 | srcs: [":com.android.art.debug"], |
Roland Levillain | d4fc62c | 2019-08-12 19:47:51 +0100 | [diff] [blame] | 479 | cmd: art_check_apex_gen_stem + |
Roland Levillain | d7ea043 | 2019-09-09 16:29:12 +0100 | [diff] [blame^] | 480 | " --flavor debug" + |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 481 | " $(in)" + |
| 482 | " && touch $(out)", |
Jiyong Park | 1410e9f | 2019-02-02 04:18:23 +0000 | [diff] [blame] | 483 | out: ["art-check-debug-apex-gen.dummy"], |
| 484 | } |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 485 | |
Jiyong Park | 1410e9f | 2019-02-02 04:18:23 +0000 | [diff] [blame] | 486 | cc_prebuilt_binary { |
| 487 | name: "art-check-debug-apex-gen-fakebin", |
Roland Levillain | d4fc62c | 2019-08-12 19:47:51 +0100 | [diff] [blame] | 488 | defaults: ["art-check-apex-gen-fakebin-defaults"], |
Jiyong Park | 1410e9f | 2019-02-02 04:18:23 +0000 | [diff] [blame] | 489 | srcs: [":art-check-debug-apex-gen"], |
Jiyong Park | 1410e9f | 2019-02-02 04:18:23 +0000 | [diff] [blame] | 490 | } |
Andreas Gampe | 31782c1 | 2019-02-06 09:47:25 -0800 | [diff] [blame] | 491 | |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 492 | genrule { |
| 493 | name: "art-check-testing-apex-gen", |
Roland Levillain | d4fc62c | 2019-08-12 19:47:51 +0100 | [diff] [blame] | 494 | defaults: ["art-check-apex-gen-defaults"], |
Martin Stjernholm | fb3a94b | 2019-07-05 22:27:36 +0100 | [diff] [blame] | 495 | srcs: [":com.android.art.testing"], |
Roland Levillain | d4fc62c | 2019-08-12 19:47:51 +0100 | [diff] [blame] | 496 | cmd: art_check_apex_gen_stem + |
Roland Levillain | d7ea043 | 2019-09-09 16:29:12 +0100 | [diff] [blame^] | 497 | " --flavor testing" + |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 498 | " $(in)" + |
| 499 | " && touch $(out)", |
| 500 | out: ["art-check-testing-apex-gen.dummy"], |
| 501 | } |
| 502 | |
| 503 | cc_prebuilt_binary { |
| 504 | name: "art-check-testing-apex-gen-fakebin", |
Roland Levillain | d4fc62c | 2019-08-12 19:47:51 +0100 | [diff] [blame] | 505 | defaults: ["art-check-apex-gen-fakebin-defaults"], |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 506 | srcs: [":art-check-testing-apex-gen"], |
Roland Levillain | 61f0716 | 2019-06-26 12:44:04 +0100 | [diff] [blame] | 507 | } |
| 508 | |
Andreas Gampe | 31782c1 | 2019-02-06 09:47:25 -0800 | [diff] [blame] | 509 | // Pre-install scripts. |
| 510 | |
| 511 | sh_binary { |
| 512 | name: "art_preinstall_hook", |
| 513 | src: "art_preinstall_hook.sh", |
| 514 | } |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 515 | |
Andreas Gampe | 31782c1 | 2019-02-06 09:47:25 -0800 | [diff] [blame] | 516 | sh_binary { |
| 517 | name: "art_preinstall_hook_boot", |
| 518 | src: "art_preinstall_hook_boot.sh", |
| 519 | } |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 520 | |
Andreas Gampe | 31782c1 | 2019-02-06 09:47:25 -0800 | [diff] [blame] | 521 | sh_binary { |
Andreas Gampe | 29c111e | 2019-02-28 13:58:07 -0800 | [diff] [blame] | 522 | name: "art_preinstall_hook_system_server", |
| 523 | src: "art_preinstall_hook_system_server.sh", |
| 524 | } |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 525 | |
Andreas Gampe | 29c111e | 2019-02-28 13:58:07 -0800 | [diff] [blame] | 526 | sh_binary { |
Andreas Gampe | 31782c1 | 2019-02-06 09:47:25 -0800 | [diff] [blame] | 527 | name: "art_prepostinstall_utils", |
| 528 | src: "art_prepostinstall_utils.sh", |
| 529 | } |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 530 | |
Andreas Gampe | 5bb525a | 2019-02-19 12:26:35 -0800 | [diff] [blame] | 531 | sh_binary { |
| 532 | name: "art_postinstall_hook", |
| 533 | src: "art_postinstall_hook.sh", |
| 534 | } |
Andreas Gampe | 5797568 | 2019-03-04 09:27:11 -0800 | [diff] [blame] | 535 | |
| 536 | sh_binary { |
| 537 | name: "art_apex_boot_integrity", |
| 538 | src: "art_apex_boot_integrity.sh", |
| 539 | init_rc: ["art_apex_boot_integrity.rc"], |
| 540 | } |