summaryrefslogtreecommitdiff
path: root/toolchain-extras/Android.bp
blob: 220f3e341e0030a232eeeca893644323d13659b3 (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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

cc_defaults {
    name: "libprofile-defaults",
    srcs: [
        "profile-extras.cpp",
        "profile-globals.c",
    ],
    native_coverage: false,
}

cc_library_static {
    name: "libprofile-extras",
    defaults: ["libprofile-defaults"],

    native_bridge_supported: true,
    vendor_available: true,
    product_available: true,
    vndk: {
        enabled: true,
    },
    ramdisk_available: true,
    vendor_ramdisk_available: true,
    recovery_available: true,

    stl: "none",
    system_shared_libs: [],
    header_libs: ["libc_headers"],
}

cc_library_static {
    name: "libprofile-extras_ndk",
    defaults: ["libprofile-defaults"],
    native_bridge_supported: true,
    vendor_available: true,
    product_available: true,
    vndk: {
        enabled: true,
    },

    sdk_version: "minimum",
}

cc_defaults {
    name: "libprofile-clang-defaults",
    srcs: [
        "profile-clang-extras.cpp",
        "profile-clang-openat.cpp",
    ],
    native_coverage: false,
    sanitize: {
        blocklist: "libprofile_clang_extras_blocklist.txt",
    },
}

cc_library_static {
    name: "libprofile-clang-extras",
    defaults: ["libprofile-clang-defaults"],

    native_bridge_supported: true,
    vendor_available: true,
    product_available: true,
    vndk: {
        enabled: true,
    },
    ramdisk_available: true,
    vendor_ramdisk_available: true,
    recovery_available: true,

    stl: "none",
    system_shared_libs: [],
    header_libs: ["libc_headers"],
}

cc_library_static {
    name: "libprofile-clang-extras_ndk",
    defaults: ["libprofile-clang-defaults"],
    native_bridge_supported: true,
    vendor_available: true,
    product_available: true,
    vndk: {
        enabled: true,
    },

    sdk_version: "minimum",
}

cc_library_static {
    name: "libprofile-clang-extras_cfi_support",
    defaults: ["libprofile-clang-defaults"],

    native_bridge_supported: true,
    vendor_available: true,
    product_available: true,
    vndk: {
        enabled: true,
    },
    ramdisk_available: true,
    vendor_ramdisk_available: true,
    recovery_available: true,

    stl: "none",
    system_shared_libs: [],
    header_libs: ["libc_headers"],
    sanitize: {
        cfi: true,
        config: {
            cfi_assembly_support: true,
        },
    },
}

cc_test {
    name: "libprofile-extras-test",
    srcs: [
        "profile-extras-test.cpp",
    ],
    static_libs: [
        "libprofile-extras",
    ],
    ldflags: ["-uinit_profile_extras"],
    native_coverage: false,
}

cc_test {
    name: "libprofile-clang-extras-test",
    srcs: [
        "profile-clang-extras-test.cpp",
    ],
    whole_static_libs: [
        "libprofile-clang-extras",
    ],
    ldflags: [
        "-Wl,--wrap,open",
    ],
    native_coverage: false,
}