aboutsummaryrefslogtreecommitdiff
path: root/plugin_store/Android.bp
blob: 621cbfcd9fe27722d394923fae0a6b4f3a9a8ba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "external_v4l2_codec2_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-BSD
    default_applicable_licenses: ["external_v4l2_codec2_license"],
}

cc_library_shared {
    name: "libc2plugin_store",
    vendor: true,

    defaults: [
        "libcodec2-impl-defaults",
    ],

    srcs: [
        "C2VdaBqBlockPool.cpp",
        "C2VdaPooledBlockPool.cpp",
        "DmabufHelpers.cpp",
        "H2BGraphicBufferProducer.cpp",
        "V4L2PluginStore.cpp",
        "VendorAllocatorLoader.cpp",
    ],
    export_include_dirs: [
        "include",
    ],

    header_libs: [
        "libcodec2_internal", // needed for including C2BqBufferPriv.h.
    ],
    shared_libs: [
        "android.hardware.graphics.bufferqueue@2.0",
        "libchrome",
        "libcutils",
        "libhardware",
        "libhidlbase",
        "libnativewindow",
        "liblog",
        "libstagefright_bufferpool@1.0",
        "libstagefright_bufferqueue_helper",
        "libstagefright_foundation",
        "libui",
    ],

    cflags: [
      "-Werror",
      "-Wall",
      "-Wno-unused-parameter",  // needed for libchrome/base codes
      "-Wthread-safety",
    ],
}