1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "hardware_interfaces_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
10cc_library_static {
11    name: "libaidlcommonsupport",
12    vendor_available: true,
13    product_available: true,
14    host_supported: true,
15    target: {
16        darwin: {
17            enabled: false,
18        },
19    },
20    srcs: ["NativeHandle.cpp"],
21    export_include_dirs: ["include"],
22    shared_libs: [
23        "android.hardware.common-V2-ndk",
24        "libcutils",
25    ],
26    apex_available: [
27        "//apex_available:platform",
28        "com.android.neuralnetworks",
29        "com.android.media.swcodec",
30    ],
31    min_sdk_version: "29",
32}
33
34cc_test {
35    name: "libaidlcommonsupport_test",
36    host_supported: true,
37    target: {
38        darwin: {
39            enabled: false,
40        },
41    },
42    srcs: ["test.cpp"],
43    static_libs: [
44        "android.hardware.common-V2-ndk",
45        "libaidlcommonsupport",
46    ],
47    shared_libs: [
48        "libcutils",
49    ],
50    test_suites: ["general-tests"],
51}
52