xref: /aosp_15_r20/external/v4l2_codec2/v4l2/Android.bp (revision 0ec5a0ec62797f775085659156625e7f1bdb369f)
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 {
11    name: "libv4l2_codec2_v4l2",
12    vendor: true,
13
14    defaults: [
15        "libcodec2-hidl-defaults",
16    ],
17
18    srcs: [
19        "V4L2ComponentCommon.cpp",
20        "V4L2ComponentFactory.cpp",
21        "V4L2ComponentStore.cpp",
22        "V4L2Decoder.cpp",
23        "V4L2DecodeComponent.cpp",
24        "V4L2Device.cpp",
25        "V4L2DevicePoller.cpp",
26        "V4L2Encoder.cpp",
27        "V4L2EncodeComponent.cpp",
28    ],
29    export_include_dirs: [
30        "include",
31    ],
32
33    header_libs: [
34        "libcodec2_internal",
35    ],
36    shared_libs: [
37        "[email protected]",
38        "libc2plugin_store",
39        "libchrome",
40        "libcodec2_soft_common",
41        "libcutils",
42        "liblog",
43        "libsfplugin_ccodec_utils",
44        "libstagefright_bufferqueue_helper",
45        "libstagefright_foundation",
46        "libui",
47        "libv4l2_codec2_common",
48        "libv4l2_codec2_components",
49    ],
50
51    cflags: [
52      "-Werror",
53      "-Wall",
54      "-Wno-unused-parameter",  // needed for libchrome/base codes
55      "-Wthread-safety",
56    ],
57}
58