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 | 48d4303 | 2021-02-12 17:51:24 -0800 | [diff] [blame] | 6 | package { |
| 7 | // See: http://go/android-license-faq |
| 8 | // A large-scale-change added 'default_applicable_licenses' to import |
| 9 | // all of the 'license_kinds' from "bionic_license" |
| 10 | // to get the below license kinds: |
| 11 | // legacy_notice |
| 12 | default_applicable_licenses: ["bionic_license"], |
| 13 | } |
| 14 | |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 15 | android_app_certificate { |
| 16 | name: "com.android.runtime.certificate", |
| 17 | certificate: "com.android.runtime", |
| 18 | } |
| 19 | |
| 20 | apex_key { |
| 21 | name: "com.android.runtime.key", |
| 22 | public_key: "com.android.runtime.avbpubkey", |
| 23 | private_key: "com.android.runtime.pem", |
| 24 | } |
| 25 | |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 26 | apex { |
| 27 | name: "com.android.runtime", |
| 28 | compile_multilib: "both", |
| 29 | manifest: "manifest.json", |
| 30 | native_shared_libs: [ |
| 31 | "libc", |
| 32 | "libm", |
| 33 | "libdl", |
Martin Stjernholm | 3274cc4 | 2019-11-11 15:33:22 +0000 | [diff] [blame] | 34 | "libdl_android", |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 35 | "libc_malloc_debug", |
| 36 | "libc_malloc_hooks", |
| 37 | ], |
Kiyoung Kim | d1d5344 | 2020-11-30 14:56:52 +0900 | [diff] [blame] | 38 | binaries: [ |
| 39 | "linkerconfig", |
| 40 | ], |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 41 | multilib: { |
| 42 | both: { |
Peter Collingbourne | ea06b0d | 2020-03-17 12:32:34 -0700 | [diff] [blame] | 43 | binaries: [ |
| 44 | "crash_dump", |
| 45 | "linker", |
| 46 | ], |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 47 | }, |
| 48 | }, |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 49 | key: "com.android.runtime.key", |
| 50 | certificate: ":com.android.runtime.certificate", |
Kiyoung Kim | 5a8189f | 2020-09-07 17:31:57 +0900 | [diff] [blame] | 51 | prebuilts: [ |
| 52 | "bionic-linker-config", |
| 53 | ], |
Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 54 | } |
Martin Stjernholm | 215e1da | 2020-03-16 15:42:17 +0000 | [diff] [blame] | 55 | |
| 56 | sdk { |
| 57 | name: "runtime-module-sdk", |
| 58 | defaults: ["linux_bionic_supported"], |
| 59 | |
| 60 | native_header_libs: [ |
| 61 | "bionic_libc_platform_headers", |
| 62 | "libc_headers", |
| 63 | ], |
| 64 | native_shared_libs: [ |
| 65 | "libc", |
| 66 | "libdl", |
| 67 | "libdl_android", |
| 68 | "libm", |
| 69 | ], |
| 70 | native_static_libs: [ |
| 71 | "libasync_safe", |
Evgenii Stepanov | fb13915 | 2021-01-07 17:49:13 -0800 | [diff] [blame] | 72 | "note_memtag_heap_async", |
| 73 | "note_memtag_heap_sync", |
Martin Stjernholm | 215e1da | 2020-03-16 15:42:17 +0000 | [diff] [blame] | 74 | ], |
| 75 | native_objects: [ |
| 76 | "crtbegin_dynamic", |
| 77 | "crtbegin_so", |
| 78 | "crtend_android", |
| 79 | "crtend_so", |
| 80 | ], |
| 81 | } |
Martin Stjernholm | b87882d | 2020-05-28 14:20:31 +0100 | [diff] [blame] | 82 | |
| 83 | module_exports { |
| 84 | name: "runtime-module-host-exports", |
Martin Stjernholm | d6e35f1 | 2020-08-05 22:26:26 +0100 | [diff] [blame] | 85 | host_supported: true, |
Martin Stjernholm | b87882d | 2020-05-28 14:20:31 +0100 | [diff] [blame] | 86 | device_supported: false, |
Martin Stjernholm | d6e35f1 | 2020-08-05 22:26:26 +0100 | [diff] [blame] | 87 | compile_multilib: "64", |
Martin Stjernholm | b87882d | 2020-05-28 14:20:31 +0100 | [diff] [blame] | 88 | |
Martin Stjernholm | d6e35f1 | 2020-08-05 22:26:26 +0100 | [diff] [blame] | 89 | native_binaries: ["linkerconfig"], |
| 90 | target: { |
| 91 | linux_bionic: { |
| 92 | native_binaries: ["linker"], |
| 93 | }, |
| 94 | }, |
Martin Stjernholm | b87882d | 2020-05-28 14:20:31 +0100 | [diff] [blame] | 95 | } |
Kiyoung Kim | 5a8189f | 2020-09-07 17:31:57 +0900 | [diff] [blame] | 96 | |
Kiyoung Kim | 2d4bbf2 | 2020-10-06 17:26:13 +0900 | [diff] [blame] | 97 | linker_config { |
Kiyoung Kim | 5a8189f | 2020-09-07 17:31:57 +0900 | [diff] [blame] | 98 | name: "bionic-linker-config", |
Kiyoung Kim | 2d4bbf2 | 2020-10-06 17:26:13 +0900 | [diff] [blame] | 99 | src: "linker.config.json", |
Kiyoung Kim | 5a8189f | 2020-09-07 17:31:57 +0900 | [diff] [blame] | 100 | installable: false, |
| 101 | } |