1aidl_interface {
2    name: "graphicbuffersource-aidl",
3    unstable: true,
4    local_include_dir: "aidl",
5    min_sdk_version: "29",
6    srcs: [
7        "aidl/android/media/AidlColorAspects.aidl",
8        "aidl/android/media/IAidlGraphicBufferSource.aidl",
9        "aidl/android/media/IAidlBufferSource.aidl",
10        "aidl/android/media/IAidlNode.aidl",
11    ],
12    headers: [
13        "HardwareBuffer_aidl",
14    ],
15    imports: [
16        "android.hardware.graphics.common-V5",
17    ],
18    include_dirs: [
19        "frameworks/native/aidl/gui",
20    ],
21    backend: {
22        cpp: {
23            enabled: false,
24        },
25        java: {
26            enabled: false,
27        },
28        ndk: {
29            enabled: true,
30            additional_shared_libraries: [
31                "libnativewindow",
32            ],
33        },
34        rust: {
35            // No users, and no rust implementation of android.os.Surface yet
36            enabled: false,
37        },
38    },
39}
40
41cc_library_shared {
42    name: "libstagefright_graphicbuffersource_aidl",
43    min_sdk_version: "29",
44    srcs: [
45        "AidlGraphicBufferSource.cpp",
46        "wrapper/WAidlGraphicBufferSource.cpp",
47    ],
48    export_include_dirs: [
49        "include",
50    ],
51    header_libs: [
52        "media_plugin_headers",
53    ],
54
55    export_header_lib_headers: [
56        "media_plugin_headers",
57    ],
58    shared_libs: [
59        "android.hardware.graphics.common-V5-ndk",
60        "graphicbuffersource-aidl-ndk",
61        "libbinder_ndk",
62        "libcutils",
63        "libgui",
64        "liblog",
65        "libnativewindow",
66        "libstagefright_bufferqueue_helper",
67        "libutils",
68    ],
69}
70