xref: /aosp_15_r20/frameworks/av/media/codec2/sfplugin/Android.bp (revision ec779b8e0859a360c3d303172224686826e6e0e1)
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    defaults: [
20        "android.hardware.graphics.common-ndk_shared",
21    ],
22
23    export_include_dirs: ["include"],
24
25    srcs: [
26        "C2AidlNode.cpp",
27        "C2OMXNode.cpp",
28        "C2NodeImpl.cpp",
29        "CCodec.cpp",
30        "CCodecBufferChannel.cpp",
31        "CCodecBuffers.cpp",
32        "CCodecConfig.cpp",
33        "Codec2Buffer.cpp",
34        "Codec2InfoBuilder.cpp",
35        "FrameReassembler.cpp",
36        "PipelineWatcher.cpp",
37        "ReflectedParamUpdater.cpp",
38    ],
39
40    cflags: [
41        "-Werror",
42        "-Wall",
43    ],
44
45    header_libs: [
46        "libcodec2_internal",
47        "libmediadrm_headers",
48        "libmediametrics_headers",
49        "media_ndk_headers",
50    ],
51
52    static_libs: [
53        "libPlatformProperties",
54        "libSurfaceFlingerProperties",
55        "aconfig_mediacodec_flags_c_lib",
56        "android.media.codec-aconfig-cc",
57    ],
58
59    shared_libs: [
60        "[email protected]",
61        "[email protected]",
62        "[email protected]",
63        "[email protected]",
64        "graphicbuffersource-aidl-ndk",
65        "libbase",
66        "libbinder",
67        "libbinder_ndk",
68        "libcodec2",
69        "libcodec2_client",
70        "libcodec2_vndk",
71        "libcutils",
72        "libgralloctypes",
73        "libgui",
74        "libhidlallocatorutils",
75        "libhidlbase",
76        "liblog",
77        "libmedia_codeclist",
78        "libmedia_omx",
79        "libnativewindow",
80        "libsfplugin_ccodec_utils",
81        "libstagefright_bufferqueue_helper",
82        "libstagefright_codecbase",
83        "libstagefright_graphicbuffersource_aidl",
84        "libstagefright_foundation",
85        "libstagefright_omx",
86        "libstagefright_surface_utils",
87        "libstagefright_xmlparser",
88        "libui",
89        "libutils",
90        "server_configurable_flags",
91        "libaconfig_storage_read_api_cc",
92    ],
93
94    export_shared_lib_headers: [
95        "libcodec2",
96        "libcodec2_client",
97    ],
98
99    sanitize: {
100        cfi: true,
101        misc_undefined: [
102            "unsigned-integer-overflow",
103            "signed-integer-overflow",
104        ],
105    },
106}
107