blob: 90a14b245d7e60844f4717a9257584e110bea4e8 [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 ],
Kiyoung Kimd1d53442020-11-30 14:56:52 +090044 binaries: [
45 "linkerconfig",
46 ],
Elliott Hughes470d10c2019-09-30 16:44:58 -070047 multilib: {
48 both: {
Peter Collingbourneea06b0d2020-03-17 12:32:34 -070049 binaries: [
50 "crash_dump",
51 "linker",
52 ],
Elliott Hughes470d10c2019-09-30 16:44:58 -070053 },
54 },
Elliott Hughes470d10c2019-09-30 16:44:58 -070055 key: "com.android.runtime.key",
56 certificate: ":com.android.runtime.certificate",
Kiyoung Kim5a8189f2020-09-07 17:31:57 +090057 prebuilts: [
58 "bionic-linker-config",
59 ],
Mathew Inwoodf11ce9a2021-02-16 14:43:39 +000060 updatable: false,
Elliott Hughes470d10c2019-09-30 16:44:58 -070061}
Martin Stjernholm215e1da2020-03-16 15:42:17 +000062
63sdk {
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 Stepanovfb139152021-01-07 17:49:13 -080079 "note_memtag_heap_async",
80 "note_memtag_heap_sync",
Martin Stjernholm215e1da2020-03-16 15:42:17 +000081 ],
82 native_objects: [
83 "crtbegin_dynamic",
84 "crtbegin_so",
85 "crtend_android",
86 "crtend_so",
87 ],
88}
Martin Stjernholmb87882d2020-05-28 14:20:31 +010089
90module_exports {
91 name: "runtime-module-host-exports",
Martin Stjernholmd6e35f12020-08-05 22:26:26 +010092 host_supported: true,
Martin Stjernholmb87882d2020-05-28 14:20:31 +010093 device_supported: false,
Martin Stjernholmd6e35f12020-08-05 22:26:26 +010094 compile_multilib: "64",
Martin Stjernholmb87882d2020-05-28 14:20:31 +010095
Martin Stjernholmd6e35f12020-08-05 22:26:26 +010096 native_binaries: ["linkerconfig"],
97 target: {
98 linux_bionic: {
99 native_binaries: ["linker"],
100 },
101 },
Martin Stjernholmb87882d2020-05-28 14:20:31 +0100102}
Kiyoung Kim5a8189f2020-09-07 17:31:57 +0900103
Kiyoung Kim2d4bbf22020-10-06 17:26:13 +0900104linker_config {
Kiyoung Kim5a8189f2020-09-07 17:31:57 +0900105 name: "bionic-linker-config",
Kiyoung Kim2d4bbf22020-10-06 17:26:13 +0900106 src: "linker.config.json",
Kiyoung Kim5a8189f2020-09-07 17:31:57 +0900107 installable: false,
108}