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 "frameworks_av_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_av_license"],
8}
9
10cc_library_headers {
11    name: "libsfplugin_ccodec_utils_headers",
12    vendor_available: true,
13    min_sdk_version: "29",
14    apex_available: [ "//apex_available:platform", "com.android.media.swcodec", ],
15
16    export_include_dirs: [
17        ".",
18    ],
19}
20
21cc_library {
22    name: "libsfplugin_ccodec_utils",
23    vendor_available: true,
24    min_sdk_version: "29",
25    apex_available: [ "//apex_available:platform", "com.android.media.swcodec", ],
26
27    double_loadable: true,
28
29    srcs: [
30        "Codec2BufferUtils.cpp",
31        "Codec2CommonUtils.cpp",
32        "Codec2Mapper.cpp",
33    ],
34
35    cflags: [
36        "-Werror",
37        "-Wall",
38    ],
39
40    export_include_dirs: [
41        ".",
42    ],
43
44    shared_libs: [
45        "libbase",
46        "libcodec2",
47        "libcodec2_vndk",
48        "libcutils",
49        "liblog",
50        "libnativewindow",
51        "libstagefright_foundation",
52        "libutils",
53    ],
54
55    static_libs: [
56        "libarect",
57        "libyuv",
58    ],
59
60    sanitize: {
61        cfi: true,
62        misc_undefined: [
63            "unsigned-integer-overflow",
64            "signed-integer-overflow",
65        ],
66    },
67}
68