blob: 6201ad12f54f721936f1c7c4b22b17ade1e8df2b [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: {
46 native_shared_libs: ["libc_hwasan", "libclang_rt.hwasan"],
47 },
48 },
Kiyoung Kimd1d53442020-11-30 14:56:52 +090049 binaries: [
50 "linkerconfig",
51 ],
Elliott Hughes470d10c2019-09-30 16:44:58 -070052 multilib: {
53 both: {
Peter Collingbourneea06b0d2020-03-17 12:32:34 -070054 binaries: [
55 "crash_dump",
56 "linker",
57 ],
Elliott Hughes470d10c2019-09-30 16:44:58 -070058 },
59 },
Elliott Hughes470d10c2019-09-30 16:44:58 -070060 key: "com.android.runtime.key",
61 certificate: ":com.android.runtime.certificate",
Kiyoung Kim5a8189f2020-09-07 17:31:57 +090062 prebuilts: [
63 "bionic-linker-config",
64 ],
Mathew Inwoodf11ce9a2021-02-16 14:43:39 +000065 updatable: false,
Elliott Hughes470d10c2019-09-30 16:44:58 -070066}
Martin Stjernholm215e1da2020-03-16 15:42:17 +000067
68sdk {
69 name: "runtime-module-sdk",
70 defaults: ["linux_bionic_supported"],
71
72 native_header_libs: [
73 "bionic_libc_platform_headers",
74 "libc_headers",
75 ],
76 native_shared_libs: [
77 "libc",
78 "libdl",
79 "libdl_android",
80 "libm",
81 ],
82 native_static_libs: [
83 "libasync_safe",
Evgenii Stepanovfb139152021-01-07 17:49:13 -080084 "note_memtag_heap_async",
85 "note_memtag_heap_sync",
Martin Stjernholm215e1da2020-03-16 15:42:17 +000086 ],
87 native_objects: [
88 "crtbegin_dynamic",
89 "crtbegin_so",
90 "crtend_android",
91 "crtend_so",
92 ],
93}
Martin Stjernholmb87882d2020-05-28 14:20:31 +010094
95module_exports {
96 name: "runtime-module-host-exports",
Martin Stjernholmd6e35f12020-08-05 22:26:26 +010097 host_supported: true,
Martin Stjernholmb87882d2020-05-28 14:20:31 +010098 device_supported: false,
Martin Stjernholmd6e35f12020-08-05 22:26:26 +010099 compile_multilib: "64",
Martin Stjernholmb87882d2020-05-28 14:20:31 +0100100
Martin Stjernholmd6e35f12020-08-05 22:26:26 +0100101 native_binaries: ["linkerconfig"],
102 target: {
103 linux_bionic: {
104 native_binaries: ["linker"],
105 },
106 },
Martin Stjernholmb87882d2020-05-28 14:20:31 +0100107}
Kiyoung Kim5a8189f2020-09-07 17:31:57 +0900108
Kiyoung Kim2d4bbf22020-10-06 17:26:13 +0900109linker_config {
Kiyoung Kim5a8189f2020-09-07 17:31:57 +0900110 name: "bionic-linker-config",
Kiyoung Kim2d4bbf22020-10-06 17:26:13 +0900111 src: "linker.config.json",
Kiyoung Kim5a8189f2020-09-07 17:31:57 +0900112 installable: false,
113}