Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 1 | // Runtime (Bionic) APEX module |
| 2 | // |
| 3 | // In Q this contained Bionic, ART and Libcore. |
| 4 | // It keeps the name /apex/com.android.runtime for app compat reasons. |
| 5 | |
Bob Badour | aa7d835 | 2021-02-19 13:06:22 -0800 | [diff] [blame] | 6 | package { |
| 7 | default_applicable_licenses: ["bionic_apex_license"], |
| 8 | } |
| 9 | |
| 10 | license { |
| 11 | name: "bionic_apex_license", |
| 12 | visibility: [":__subpackages__"], |
| 13 | license_kinds: [ |
| 14 | "SPDX-license-identifier-Apache-2.0", |
| 15 | ], |
| 16 | license_text: [ |
| 17 | "NOTICE", |
| 18 | ], |
| 19 | } |
| 20 | |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 21 | android_app_certificate { |
| 22 | name: "com.android.runtime.certificate", |
| 23 | certificate: "com.android.runtime", |
| 24 | } |
| 25 | |
| 26 | apex_key { |
| 27 | name: "com.android.runtime.key", |
| 28 | public_key: "com.android.runtime.avbpubkey", |
| 29 | private_key: "com.android.runtime.pem", |
| 30 | } |
| 31 | |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 32 | apex { |
| 33 | name: "com.android.runtime", |
| 34 | compile_multilib: "both", |
| 35 | manifest: "manifest.json", |
| 36 | native_shared_libs: [ |
| 37 | "libc", |
| 38 | "libm", |
| 39 | "libdl", |
Martin Stjernholm | 3274cc4 | 2019-11-11 15:33:22 +0000 | [diff] [blame] | 40 | "libdl_android", |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 41 | "libc_malloc_debug", |
| 42 | "libc_malloc_hooks", |
| 43 | ], |
Florian Mayer | c10d064 | 2023-03-22 16:12:49 -0700 | [diff] [blame] | 44 | arch: { |
| 45 | arm64: { |
Elliott Hughes | 1eacc0e | 2024-01-19 19:05:36 +0000 | [diff] [blame] | 46 | native_shared_libs: [ |
| 47 | "libc_hwasan", |
| 48 | "libclang_rt.hwasan", |
| 49 | ], |
Florian Mayer | c10d064 | 2023-03-22 16:12:49 -0700 | [diff] [blame] | 50 | }, |
| 51 | }, |
Kiyoung Kim | d1d5344 | 2020-11-30 14:56:52 +0900 | [diff] [blame] | 52 | binaries: [ |
| 53 | "linkerconfig", |
| 54 | ], |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 55 | multilib: { |
| 56 | both: { |
Peter Collingbourne | ea06b0d | 2020-03-17 12:32:34 -0700 | [diff] [blame] | 57 | binaries: [ |
| 58 | "crash_dump", |
| 59 | "linker", |
| 60 | ], |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 61 | }, |
| 62 | }, |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 63 | key: "com.android.runtime.key", |
| 64 | certificate: ":com.android.runtime.certificate", |
Kiyoung Kim | 5a8189f | 2020-09-07 17:31:57 +0900 | [diff] [blame] | 65 | prebuilts: [ |
| 66 | "bionic-linker-config", |
| 67 | ], |
Mathew Inwood | f11ce9a | 2021-02-16 14:43:39 +0000 | [diff] [blame] | 68 | updatable: false, |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 69 | } |
Martin Stjernholm | 215e1da | 2020-03-16 15:42:17 +0000 | [diff] [blame] | 70 | |
| 71 | sdk { |
| 72 | name: "runtime-module-sdk", |
| 73 | defaults: ["linux_bionic_supported"], |
| 74 | |
| 75 | native_header_libs: [ |
| 76 | "bionic_libc_platform_headers", |
| 77 | "libc_headers", |
| 78 | ], |
| 79 | native_shared_libs: [ |
| 80 | "libc", |
| 81 | "libdl", |
| 82 | "libdl_android", |
| 83 | "libm", |
| 84 | ], |
| 85 | native_static_libs: [ |
| 86 | "libasync_safe", |
Evgenii Stepanov | fb13915 | 2021-01-07 17:49:13 -0800 | [diff] [blame] | 87 | "note_memtag_heap_async", |
| 88 | "note_memtag_heap_sync", |
Martin Stjernholm | 215e1da | 2020-03-16 15:42:17 +0000 | [diff] [blame] | 89 | ], |
| 90 | native_objects: [ |
| 91 | "crtbegin_dynamic", |
| 92 | "crtbegin_so", |
| 93 | "crtend_android", |
| 94 | "crtend_so", |
Kalesh Singh | d13ca8d | 2024-01-30 07:19:26 -0800 | [diff] [blame] | 95 | "crt_pad_segment", |
Martin Stjernholm | 215e1da | 2020-03-16 15:42:17 +0000 | [diff] [blame] | 96 | ], |
| 97 | } |
Martin Stjernholm | b87882d | 2020-05-28 14:20:31 +0100 | [diff] [blame] | 98 | |
| 99 | module_exports { |
| 100 | name: "runtime-module-host-exports", |
Martin Stjernholm | d6e35f1 | 2020-08-05 22:26:26 +0100 | [diff] [blame] | 101 | host_supported: true, |
Martin Stjernholm | b87882d | 2020-05-28 14:20:31 +0100 | [diff] [blame] | 102 | device_supported: false, |
Martin Stjernholm | d6e35f1 | 2020-08-05 22:26:26 +0100 | [diff] [blame] | 103 | compile_multilib: "64", |
Martin Stjernholm | b87882d | 2020-05-28 14:20:31 +0100 | [diff] [blame] | 104 | |
Martin Stjernholm | d6e35f1 | 2020-08-05 22:26:26 +0100 | [diff] [blame] | 105 | native_binaries: ["linkerconfig"], |
| 106 | target: { |
| 107 | linux_bionic: { |
| 108 | native_binaries: ["linker"], |
| 109 | }, |
| 110 | }, |
Martin Stjernholm | b87882d | 2020-05-28 14:20:31 +0100 | [diff] [blame] | 111 | } |
Kiyoung Kim | 5a8189f | 2020-09-07 17:31:57 +0900 | [diff] [blame] | 112 | |
Kiyoung Kim | 2d4bbf2 | 2020-10-06 17:26:13 +0900 | [diff] [blame] | 113 | linker_config { |
Kiyoung Kim | 5a8189f | 2020-09-07 17:31:57 +0900 | [diff] [blame] | 114 | name: "bionic-linker-config", |
Kiyoung Kim | 2d4bbf2 | 2020-10-06 17:26:13 +0900 | [diff] [blame] | 115 | src: "linker.config.json", |
Kiyoung Kim | 5a8189f | 2020-09-07 17:31:57 +0900 | [diff] [blame] | 116 | installable: false, |
| 117 | } |