blob: d04907b5acb34e20cc0c79e3f237b529ecc97041 [file] [log] [blame]
Elliott Hughes470d10c2019-09-30 16:44:58 -07001// 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 Badouraa7d8352021-02-19 13:06:22 -08006package {
7 default_applicable_licenses: ["bionic_apex_license"],
8}
9
10license {
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 Hughes470d10c2019-09-30 16:44:58 -070021android_app_certificate {
22 name: "com.android.runtime.certificate",
23 certificate: "com.android.runtime",
24}
25
26apex_key {
27 name: "com.android.runtime.key",
28 public_key: "com.android.runtime.avbpubkey",
29 private_key: "com.android.runtime.pem",
30}
31
Elliott Hughes470d10c2019-09-30 16:44:58 -070032apex {
33 name: "com.android.runtime",
34 compile_multilib: "both",
35 manifest: "manifest.json",
36 native_shared_libs: [
37 "libc",
38 "libm",
39 "libdl",
Martin Stjernholm3274cc42019-11-11 15:33:22 +000040 "libdl_android",
Elliott Hughes470d10c2019-09-30 16:44:58 -070041 "libc_malloc_debug",
42 "libc_malloc_hooks",
43 ],
Florian Mayerc10d0642023-03-22 16:12:49 -070044 arch: {
45 arm64: {
Elliott Hughes1eacc0e2024-01-19 19:05:36 +000046 native_shared_libs: [
47 "libc_hwasan",
48 "libclang_rt.hwasan",
49 ],
Florian Mayerc10d0642023-03-22 16:12:49 -070050 },
51 },
Kiyoung Kimd1d53442020-11-30 14:56:52 +090052 binaries: [
53 "linkerconfig",
54 ],
Elliott Hughes470d10c2019-09-30 16:44:58 -070055 multilib: {
56 both: {
Peter Collingbourneea06b0d2020-03-17 12:32:34 -070057 binaries: [
58 "crash_dump",
59 "linker",
60 ],
Elliott Hughes470d10c2019-09-30 16:44:58 -070061 },
62 },
Elliott Hughes470d10c2019-09-30 16:44:58 -070063 key: "com.android.runtime.key",
64 certificate: ":com.android.runtime.certificate",
Kiyoung Kim5a8189f2020-09-07 17:31:57 +090065 prebuilts: [
66 "bionic-linker-config",
67 ],
Mathew Inwoodf11ce9a2021-02-16 14:43:39 +000068 updatable: false,
Elliott Hughes470d10c2019-09-30 16:44:58 -070069}
Martin Stjernholm215e1da2020-03-16 15:42:17 +000070
71sdk {
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 Stepanovfb139152021-01-07 17:49:13 -080087 "note_memtag_heap_async",
88 "note_memtag_heap_sync",
Martin Stjernholm215e1da2020-03-16 15:42:17 +000089 ],
90 native_objects: [
91 "crtbegin_dynamic",
92 "crtbegin_so",
93 "crtend_android",
94 "crtend_so",
Kalesh Singhd13ca8d2024-01-30 07:19:26 -080095 "crt_pad_segment",
Martin Stjernholm215e1da2020-03-16 15:42:17 +000096 ],
97}
Martin Stjernholmb87882d2020-05-28 14:20:31 +010098
99module_exports {
100 name: "runtime-module-host-exports",
Martin Stjernholmd6e35f12020-08-05 22:26:26 +0100101 host_supported: true,
Martin Stjernholmb87882d2020-05-28 14:20:31 +0100102 device_supported: false,
Martin Stjernholmd6e35f12020-08-05 22:26:26 +0100103 compile_multilib: "64",
Martin Stjernholmb87882d2020-05-28 14:20:31 +0100104
Martin Stjernholmd6e35f12020-08-05 22:26:26 +0100105 native_binaries: ["linkerconfig"],
106 target: {
107 linux_bionic: {
108 native_binaries: ["linker"],
109 },
110 },
Martin Stjernholmb87882d2020-05-28 14:20:31 +0100111}
Kiyoung Kim5a8189f2020-09-07 17:31:57 +0900112
Kiyoung Kim2d4bbf22020-10-06 17:26:13 +0900113linker_config {
Kiyoung Kim5a8189f2020-09-07 17:31:57 +0900114 name: "bionic-linker-config",
Kiyoung Kim2d4bbf22020-10-06 17:26:13 +0900115 src: "linker.config.json",
Kiyoung Kim5a8189f2020-09-07 17:31:57 +0900116 installable: false,
117}