summaryrefslogtreecommitdiff
path: root/common/support/Android.bp
blob: 718901ef6a1ac2d588808f15dd8bcd324b0a2c48 (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
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "hardware_interfaces_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["hardware_interfaces_license"],
}

cc_library_static {
    name: "libaidlcommonsupport",
    vendor_available: true,
    host_supported: true,
    target: {
        darwin: {
            enabled: false,
        },
    },
    srcs: ["NativeHandle.cpp"],
    export_include_dirs: ["include"],
    shared_libs: [
        "android.hardware.common-V2-ndk",
        "libcutils",
    ],
    apex_available: [
        "//apex_available:platform",
        "com.android.neuralnetworks",
    ],
    min_sdk_version: "29",
}

cc_test {
    name: "libaidlcommonsupport_test",
    host_supported: true,
    target: {
        darwin: {
            enabled: false,
        },
    },
    srcs: ["test.cpp"],
    static_libs: [
        "android.hardware.common-V2-ndk",
        "libaidlcommonsupport",
    ],
    shared_libs: [
        "libcutils",
    ],
    test_suites: ["general-tests"],
}