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 "external_v4l2_codec2_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-BSD
7    default_applicable_licenses: ["external_v4l2_codec2_license"],
8}
9
10cc_library_shared {
11    name: "libc2plugin_store",
12    vendor: true,
13
14    defaults: [
15        "libcodec2-impl-defaults",
16    ],
17
18    srcs: [
19        "C2VdaBqBlockPool.cpp",
20        "C2VdaPooledBlockPool.cpp",
21        "DrmGrallocHelpers.cpp",
22        "H2BGraphicBufferProducer.cpp",
23        "V4L2PluginStore.cpp",
24        "VendorAllocatorLoader.cpp",
25    ],
26    export_include_dirs: [
27        "include",
28    ],
29
30    header_libs: [
31        "libcodec2_internal", // needed for including C2BqBufferPriv.h.
32    ],
33    shared_libs: [
34        "android.hardware.graphics.bufferqueue@2.0",
35        "libchrome",
36        "libcutils",
37        "libdrm",
38        "libhardware",
39        "libhidlbase",
40        "libnativewindow",
41        "liblog",
42        "libstagefright_bufferpool@1.0",
43        "libstagefright_bufferqueue_helper",
44        "libstagefright_foundation",
45        "libui",
46    ],
47
48    cflags: [
49      "-Werror",
50      "-Wall",
51      "-Wno-unused-parameter",  // needed for libchrome/base codes
52      "-Wthread-safety",
53    ],
54}
55