blob: 60f4736fa377a80531c0b41d97b3c68bddb0eb02 [file] [log] [blame]
Pawin Vongmasa36653902018-11-15 00:10:25 -08001cc_library_headers {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -08002 name: "libcodec2_internal",
Pawin Vongmasa36653902018-11-15 00:10:25 -08003
4 export_include_dirs: [
5 "internal",
6 ],
7
8 // TODO: Remove this when this module is moved back to frameworks/av.
9 vendor_available: true,
Jooyung Hane3cf41a2020-04-30 04:22:22 +090010
11 min_sdk_version: "29",
Pawin Vongmasa36653902018-11-15 00:10:25 -080012}
13
14// !!!DO NOT DEPEND ON THIS SHARED LIBRARY DIRECTLY!!!
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080015// use libcodec2-impl-defaults instead
Pawin Vongmasa36653902018-11-15 00:10:25 -080016cc_library_shared {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080017 name: "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080018 vendor_available: true,
Jooyung Hane3cf41a2020-04-30 04:22:22 +090019 min_sdk_version: "29",
Wonsik Kim155d5cb2019-10-09 12:49:49 -070020 // TODO: b/147147883
21 double_loadable: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080022
23 srcs: [
Pin-chih Linf72774b2019-11-19 18:26:47 +080024 "C2AllocatorBlob.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080025 "C2AllocatorIon.cpp",
26 "C2AllocatorGralloc.cpp",
27 "C2Buffer.cpp",
28 "C2Config.cpp",
John Stultz6a407882020-07-11 04:34:19 +000029 "C2DmaBufAllocator.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080030 "C2PlatformStorePluginLoader.cpp",
31 "C2Store.cpp",
32 "platform/C2BqBuffer.cpp",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070033 "types.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080034 "util/C2Debug.cpp",
35 "util/C2InterfaceHelper.cpp",
36 "util/C2InterfaceUtils.cpp",
37 "util/C2ParamUtils.cpp",
38 ],
39
40 export_include_dirs: [
41 "include",
42 ],
43
44 export_shared_lib_headers: [
45 "libbase",
Sungtak Leed3318082018-09-07 15:52:43 -070046 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080047 ],
48
49 local_include_dirs: [
50 "internal",
51 ],
52
Pawin Vongmasacc1b4762018-11-26 00:46:29 -080053 header_libs: [
54 "media_plugin_headers",
55 "libcodec2_headers",
Pawin Vongmasa36653902018-11-15 00:10:25 -080056 ],
57
58 shared_libs: [
Pawin Vongmasaef939bf2019-03-03 04:44:59 -080059 "android.hardware.graphics.bufferqueue@2.0",
Marissa Wall2a24a302019-11-25 11:19:18 -080060 "android.hardware.graphics.common@1.2",
Sungtak Leed3318082018-09-07 15:52:43 -070061 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080062 "libbase",
Pawin Vongmasa36653902018-11-15 00:10:25 -080063 "libcutils",
64 "libdl",
65 "libhardware",
66 "libhidlbase",
67 "libion",
John Stultz6a407882020-07-11 04:34:19 +000068 "libdmabufheap",
Pawin Vongmasa36653902018-11-15 00:10:25 -080069 "libfmq",
70 "liblog",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070071 "libnativewindow",
Pawin Vongmasa36653902018-11-15 00:10:25 -080072 "libstagefright_foundation",
Pawin Vongmasa329ac9c2019-09-09 21:28:05 -070073 "libstagefright_bufferpool@2.0.1",
Pawin Vongmasa36653902018-11-15 00:10:25 -080074 "libui",
75 "libutils",
76 ],
77
78 cflags: [
79 "-Werror",
80 "-Wall",
81 ],
82}
83
84// public dependency for implementing Codec 2 components
85cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080086 name: "libcodec2-impl-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080087
88 shared_libs: [
89 "libbase", // for C2_LOG
90 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080091 "libcodec2",
92 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080093 "libutils",
94 ],
Jooyung Hane3cf41a2020-04-30 04:22:22 +090095
96 min_sdk_version: "29",
Pawin Vongmasa36653902018-11-15 00:10:25 -080097}
98
99// public dependency for implementing Codec 2 framework utilities
100// THIS IS ONLY FOR FRAMEWORK USE ONLY
101cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800102 name: "libcodec2-internal-defaults",
103 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -0800104
Wonsik Kim8f9e90a2020-02-25 14:40:18 -0800105 header_libs: [
106 "libcodec2_internal",
107 ],
108
Pawin Vongmasa36653902018-11-15 00:10:25 -0800109 shared_libs: [
110 "libcutils", // for properties
111 ],
112
113 // TODO: separate internal headers so they can be exposed here
114}
115