aboutsummaryrefslogtreecommitdiff
path: root/apex/Android.bp
blob: d04907b5acb34e20cc0c79e3f237b529ecc97041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// Runtime (Bionic) APEX module
//
// In Q this contained Bionic, ART and Libcore.
// It keeps the name /apex/com.android.runtime for app compat reasons.

package {
    default_applicable_licenses: ["bionic_apex_license"],
}

license {
    name: "bionic_apex_license",
    visibility: [":__subpackages__"],
    license_kinds: [
        "SPDX-license-identifier-Apache-2.0",
    ],
    license_text: [
        "NOTICE",
    ],
}

android_app_certificate {
    name: "com.android.runtime.certificate",
    certificate: "com.android.runtime",
}

apex_key {
    name: "com.android.runtime.key",
    public_key: "com.android.runtime.avbpubkey",
    private_key: "com.android.runtime.pem",
}

apex {
    name: "com.android.runtime",
    compile_multilib: "both",
    manifest: "manifest.json",
    native_shared_libs: [
        "libc",
        "libm",
        "libdl",
        "libdl_android",
        "libc_malloc_debug",
        "libc_malloc_hooks",
    ],
    arch: {
        arm64: {
            native_shared_libs: [
                "libc_hwasan",
                "libclang_rt.hwasan",
            ],
        },
    },
    binaries: [
        "linkerconfig",
    ],
    multilib: {
        both: {
            binaries: [
                "crash_dump",
                "linker",
            ],
        },
    },
    key: "com.android.runtime.key",
    certificate: ":com.android.runtime.certificate",
    prebuilts: [
        "bionic-linker-config",
    ],
    updatable: false,
}

sdk {
    name: "runtime-module-sdk",
    defaults: ["linux_bionic_supported"],

    native_header_libs: [
        "bionic_libc_platform_headers",
        "libc_headers",
    ],
    native_shared_libs: [
        "libc",
        "libdl",
        "libdl_android",
        "libm",
    ],
    native_static_libs: [
        "libasync_safe",
        "note_memtag_heap_async",
        "note_memtag_heap_sync",
    ],
    native_objects: [
        "crtbegin_dynamic",
        "crtbegin_so",
        "crtend_android",
        "crtend_so",
        "crt_pad_segment",
    ],
}

module_exports {
    name: "runtime-module-host-exports",
    host_supported: true,
    device_supported: false,
    compile_multilib: "64",

    native_binaries: ["linkerconfig"],
    target: {
        linux_bionic: {
            native_binaries: ["linker"],
        },
    },
}

linker_config {
    name: "bionic-linker-config",
    src: "linker.config.json",
    installable: false,
}