| 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 |     ], | 
| Kiyoung Kim | d1d5344 | 2020-11-30 14:56:52 +0900 | [diff] [blame] | 44 |     binaries: [ | 
 | 45 |         "linkerconfig", | 
 | 46 |     ], | 
| Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 47 |     multilib: { | 
 | 48 |         both: { | 
| Peter Collingbourne | ea06b0d | 2020-03-17 12:32:34 -0700 | [diff] [blame] | 49 |             binaries: [ | 
 | 50 |                 "crash_dump", | 
 | 51 |                 "linker", | 
 | 52 |             ], | 
| Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 53 |         }, | 
 | 54 |     }, | 
| Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 55 |     key: "com.android.runtime.key", | 
 | 56 |     certificate: ":com.android.runtime.certificate", | 
| Kiyoung Kim | 5a8189f | 2020-09-07 17:31:57 +0900 | [diff] [blame] | 57 |     prebuilts: [ | 
 | 58 |         "bionic-linker-config", | 
 | 59 |     ], | 
| Mathew Inwood | f11ce9a | 2021-02-16 14:43:39 +0000 | [diff] [blame] | 60 |     updatable: false, | 
| Elliott Hughes | 470d10c | 2019-09-30 16:44:58 -0700 | [diff] [blame] | 61 | } | 
| Martin Stjernholm | 215e1da | 2020-03-16 15:42:17 +0000 | [diff] [blame] | 62 |  | 
 | 63 | sdk { | 
 | 64 |     name: "runtime-module-sdk", | 
 | 65 |     defaults: ["linux_bionic_supported"], | 
 | 66 |  | 
 | 67 |     native_header_libs: [ | 
 | 68 |         "bionic_libc_platform_headers", | 
 | 69 |         "libc_headers", | 
 | 70 |     ], | 
 | 71 |     native_shared_libs: [ | 
 | 72 |         "libc", | 
 | 73 |         "libdl", | 
 | 74 |         "libdl_android", | 
 | 75 |         "libm", | 
 | 76 |     ], | 
 | 77 |     native_static_libs: [ | 
 | 78 |         "libasync_safe", | 
| Evgenii Stepanov | fb13915 | 2021-01-07 17:49:13 -0800 | [diff] [blame] | 79 |         "note_memtag_heap_async", | 
 | 80 |         "note_memtag_heap_sync", | 
| Martin Stjernholm | 215e1da | 2020-03-16 15:42:17 +0000 | [diff] [blame] | 81 |     ], | 
 | 82 |     native_objects: [ | 
 | 83 |         "crtbegin_dynamic", | 
 | 84 |         "crtbegin_so", | 
 | 85 |         "crtend_android", | 
 | 86 |         "crtend_so", | 
 | 87 |     ], | 
 | 88 | } | 
| Martin Stjernholm | b87882d | 2020-05-28 14:20:31 +0100 | [diff] [blame] | 89 |  | 
 | 90 | module_exports { | 
 | 91 |     name: "runtime-module-host-exports", | 
| Martin Stjernholm | d6e35f1 | 2020-08-05 22:26:26 +0100 | [diff] [blame] | 92 |     host_supported: true, | 
| Martin Stjernholm | b87882d | 2020-05-28 14:20:31 +0100 | [diff] [blame] | 93 |     device_supported: false, | 
| Martin Stjernholm | d6e35f1 | 2020-08-05 22:26:26 +0100 | [diff] [blame] | 94 |     compile_multilib: "64", | 
| Martin Stjernholm | b87882d | 2020-05-28 14:20:31 +0100 | [diff] [blame] | 95 |  | 
| Martin Stjernholm | d6e35f1 | 2020-08-05 22:26:26 +0100 | [diff] [blame] | 96 |     native_binaries: ["linkerconfig"], | 
 | 97 |     target: { | 
 | 98 |         linux_bionic: { | 
 | 99 |             native_binaries: ["linker"], | 
 | 100 |         }, | 
 | 101 |     }, | 
| Martin Stjernholm | b87882d | 2020-05-28 14:20:31 +0100 | [diff] [blame] | 102 | } | 
| Kiyoung Kim | 5a8189f | 2020-09-07 17:31:57 +0900 | [diff] [blame] | 103 |  | 
| Kiyoung Kim | 2d4bbf2 | 2020-10-06 17:26:13 +0900 | [diff] [blame] | 104 | linker_config { | 
| Kiyoung Kim | 5a8189f | 2020-09-07 17:31:57 +0900 | [diff] [blame] | 105 |     name: "bionic-linker-config", | 
| Kiyoung Kim | 2d4bbf2 | 2020-10-06 17:26:13 +0900 | [diff] [blame] | 106 |     src: "linker.config.json", | 
| Kiyoung Kim | 5a8189f | 2020-09-07 17:31:57 +0900 | [diff] [blame] | 107 |     installable: false, | 
 | 108 | } |