1// This is the expected build file, but it may not be right in all cases
2
3package {
4    // See: http://go/android-license-faq
5    // A large-scale-change added 'default_applicable_licenses' to import
6    // all of the 'license_kinds' from "hardware_interfaces_license"
7    // to get the below license kinds:
8    //   SPDX-license-identifier-Apache-2.0
9    default_applicable_licenses: ["hardware_interfaces_license"],
10}
11
12aidl_interface {
13    name: "android.hardware.media.c2",
14    min_sdk_version: "30",
15    vendor_available: true,
16    double_loadable: true,
17    srcs: ["android/hardware/media/c2/*.aidl"],
18    headers: [
19        "HardwareBuffer_aidl",
20    ],
21    imports: [
22        "android.hardware.common-V2",
23        "android.hardware.media.bufferpool2-V2",
24    ],
25    include_dirs: [
26        "frameworks/native/aidl/gui",
27    ],
28    stability: "vintf",
29    backend: {
30        cpp: {
31            enabled: false,
32        },
33        java: {
34            enabled: false,
35        },
36        ndk: {
37            enabled: true,
38            apex_available: [
39                "//apex_available:platform",
40                "com.android.media.swcodec",
41                "test_com.android.media.swcodec",
42            ],
43            additional_shared_libraries: [
44                "libnativewindow",
45            ],
46        },
47        rust: {
48            // No users, and no rust implementation of android.os.Surface yet
49            enabled: false,
50        },
51    },
52    versions_with_info: [
53        {
54            version: "1",
55            imports: [
56                "android.hardware.common-V2",
57                "android.hardware.media.bufferpool2-V2",
58            ],
59        },
60    ],
61    frozen: true,
62
63}
64