1package {
2    default_team: "trendy_team_android_media_codec_framework",
3    // See: http://go/android-license-faq
4    // A large-scale-change added 'default_applicable_licenses' to import
5    // all of the 'license_kinds' from "frameworks_av_license"
6    // to get the below license kinds:
7    //   SPDX-license-identifier-Apache-2.0
8    default_applicable_licenses: ["hardware_interfaces_license"],
9}
10
11cc_library {
12    name: "libstagefright_aidl_bufferpool2",
13    vendor_available: true,
14    min_sdk_version: "29",
15    apex_available: [
16        "//apex_available:platform",
17        "com.android.media.swcodec",
18        "test_com.android.media.swcodec",
19    ],
20    srcs: [
21        "Accessor.cpp",
22        "BufferPool.cpp",
23        "BufferPoolClient.cpp",
24        "BufferStatus.cpp",
25        "ClientManager.cpp",
26        "Connection.cpp",
27        "Observer.cpp",
28    ],
29    export_include_dirs: [
30        "include",
31    ],
32    header_libs: [
33        "libbase_headers",
34    ],
35    shared_libs: [
36        "libbinder_ndk",
37        "libcutils",
38        "libfmq",
39        "liblog",
40        "libnativewindow",
41        "libutils",
42        "android.hardware.media.bufferpool2-V2-ndk",
43    ],
44    static_libs: [
45        "libaidlcommonsupport",
46    ],
47    export_shared_lib_headers: [
48        "libfmq",
49        "android.hardware.media.bufferpool2-V2-ndk",
50    ],
51    double_loadable: true,
52    cflags: [
53        "-DBUFFERPOOL_CLONE_HANDLES",
54    ],
55}
56