• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_internal_headers",
12    export_include_dirs: ["."],
13    // only for internal tests, perhaps restrict via visibility clause
14}
15
16cc_library_shared {
17    name: "libsfplugin_ccodec",
18
19    export_include_dirs: ["include"],
20
21    srcs: [
22        "C2OMXNode.cpp",
23        "CCodec.cpp",
24        "CCodecBufferChannel.cpp",
25        "CCodecBuffers.cpp",
26        "CCodecConfig.cpp",
27        "Codec2Buffer.cpp",
28        "Codec2InfoBuilder.cpp",
29        "FrameReassembler.cpp",
30        "PipelineWatcher.cpp",
31        "ReflectedParamUpdater.cpp",
32    ],
33
34    cflags: [
35        "-Werror",
36        "-Wall",
37    ],
38
39    header_libs: [
40        "libcodec2_internal",
41        "libmediadrm_headers",
42        "libmediametrics_headers",
43        "media_ndk_headers",
44    ],
45
46    static_libs: [
47        "libSurfaceFlingerProperties",
48    ],
49
50    shared_libs: [
51        "android.hardware.cas.native@1.0",
52        "android.hardware.drm@1.0",
53        "android.hardware.media.c2@1.0",
54        "android.hardware.media.omx@1.0",
55        "android.hardware.graphics.mapper@4.0",
56        "libbase",
57        "libbinder",
58        "libcodec2",
59        "libcodec2_client",
60        "libcodec2_vndk",
61        "libcutils",
62        "libgralloctypes",
63        "libgui",
64        "libhidlallocatorutils",
65        "libhidlbase",
66        "liblog",
67        "libmedia_codeclist",
68        "libmedia_omx",
69        "libsfplugin_ccodec_utils",
70        "libstagefright_bufferqueue_helper",
71        "libstagefright_codecbase",
72        "libstagefright_foundation",
73        "libstagefright_omx",
74        "libstagefright_surface_utils",
75        "libstagefright_xmlparser",
76        "libui",
77        "libutils",
78        "server_configurable_flags",
79    ],
80
81    export_shared_lib_headers: [
82        "libcodec2",
83        "libcodec2_client",
84    ],
85
86    sanitize: {
87        cfi: true,
88        misc_undefined: [
89            "unsigned-integer-overflow",
90            "signed-integer-overflow",
91        ],
92    },
93}
94