blob: 1d8aea346d4ce1e586155600ef4d30e701077d49 [file] [log] [blame]
Bob Badour56786ac2021-02-25 15:24:36 -08001package {
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
Pawin Vongmasa36653902018-11-15 00:10:25 -080010cc_library_headers {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080011 name: "libcodec2_internal",
Pawin Vongmasa36653902018-11-15 00:10:25 -080012
13 export_include_dirs: [
14 "internal",
15 ],
16
17 // TODO: Remove this when this module is moved back to frameworks/av.
18 vendor_available: true,
Jooyung Hane3cf41a2020-04-30 04:22:22 +090019
20 min_sdk_version: "29",
Ray Essickef519d72022-01-30 19:34:35 -080021 apex_available: [
22 "//apex_available:platform",
23 "com.android.media.swcodec",
24 ],
25
26}
27
28cc_library_headers {
29 name: "libcodec2_vndk_headers",
30 vendor_available: true,
31 min_sdk_version: "29",
32
33 export_include_dirs: [
34 "include",
35 ],
36 apex_available: [
37 "//apex_available:platform",
38 "com.android.media.swcodec",
39 ],
Pawin Vongmasa36653902018-11-15 00:10:25 -080040}
41
42// !!!DO NOT DEPEND ON THIS SHARED LIBRARY DIRECTLY!!!
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080043// use libcodec2-impl-defaults instead
S Vasudev Prasad5e525282020-11-23 12:15:40 +053044cc_library {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080045 name: "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080046 vendor_available: true,
Jooyung Hane3cf41a2020-04-30 04:22:22 +090047 min_sdk_version: "29",
Wonsik Kim155d5cb2019-10-09 12:49:49 -070048 // TODO: b/147147883
49 double_loadable: true,
Ray Essickef519d72022-01-30 19:34:35 -080050 apex_available: [
51 "//apex_available:platform",
52 "com.android.media.swcodec",
53 ],
54
Pawin Vongmasa36653902018-11-15 00:10:25 -080055
56 srcs: [
Pin-chih Linf72774b2019-11-19 18:26:47 +080057 "C2AllocatorBlob.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080058 "C2AllocatorIon.cpp",
59 "C2AllocatorGralloc.cpp",
60 "C2Buffer.cpp",
61 "C2Config.cpp",
John Stultz6a407882020-07-11 04:34:19 +000062 "C2DmaBufAllocator.cpp",
Sungtak Leefce527c2021-03-20 01:24:41 -070063 "C2Fence.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080064 "C2PlatformStorePluginLoader.cpp",
65 "C2Store.cpp",
66 "platform/C2BqBuffer.cpp",
Sungtak Leefce527c2021-03-20 01:24:41 -070067 "platform/C2SurfaceSyncObj.cpp",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070068 "types.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080069 "util/C2Debug.cpp",
70 "util/C2InterfaceHelper.cpp",
71 "util/C2InterfaceUtils.cpp",
72 "util/C2ParamUtils.cpp",
73 ],
74
75 export_include_dirs: [
76 "include",
77 ],
78
79 export_shared_lib_headers: [
80 "libbase",
Sungtak Lee0d6979c2022-03-25 16:36:01 -070081 "libdmabufheap",
Sungtak Leed3318082018-09-07 15:52:43 -070082 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080083 ],
84
85 local_include_dirs: [
86 "internal",
87 ],
88
Pawin Vongmasacc1b4762018-11-26 00:46:29 -080089 header_libs: [
90 "media_plugin_headers",
91 "libcodec2_headers",
Pawin Vongmasa36653902018-11-15 00:10:25 -080092 ],
93
94 shared_libs: [
Pawin Vongmasaef939bf2019-03-03 04:44:59 -080095 "android.hardware.graphics.bufferqueue@2.0",
Marissa Wall2a24a302019-11-25 11:19:18 -080096 "android.hardware.graphics.common@1.2",
Sungtak Leed3318082018-09-07 15:52:43 -070097 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080098 "libbase",
Pawin Vongmasa36653902018-11-15 00:10:25 -080099 "libcutils",
100 "libdl",
Praveen Chavan34493f12021-02-18 00:51:50 -0800101 "libdmabufheap",
102 "libfmq",
103 "libgralloctypes",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800104 "libhidlbase",
105 "libion",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800106 "liblog",
Chong Zhangc8ce1d82019-03-27 10:18:38 -0700107 "libnativewindow",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800108 "libstagefright_foundation",
Pawin Vongmasa329ac9c2019-09-09 21:28:05 -0700109 "libstagefright_bufferpool@2.0.1",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800110 "libui",
111 "libutils",
112 ],
113
114 cflags: [
115 "-Werror",
116 "-Wall",
117 ],
118}
119
Lajos Molnar99d4d112022-01-28 12:42:05 -0800120// public dependency for statically linking to libcodec2_vndk for unit tests
121cc_defaults {
122 name: "libcodec2-static-defaults",
123
124 static_libs: [
125 "liblog",
126 "libion",
127 "libfmq",
128 "libbase",
129 "libutils",
130 "libcutils",
131 "libcodec2",
132 "libhidlbase",
133 "libdmabufheap",
134 "libcodec2_vndk",
135 "libnativewindow",
136 "libcodec2_soft_common",
137 "libsfplugin_ccodec_utils",
138 "libstagefright_foundation",
139 "libstagefright_bufferpool@2.0.1",
140 "libgralloctypes",
141 "android.hardware.graphics.mapper@2.0",
142 "android.hardware.graphics.mapper@3.0",
143 "android.hardware.media.bufferpool@2.0",
144 "android.hardware.graphics.allocator@2.0",
145 "android.hardware.graphics.allocator@3.0",
146 "android.hardware.graphics.bufferqueue@2.0",
147 ],
148
149 shared_libs: [
150 "libui",
151 "libdl",
Lajos Molnar99d4d112022-01-28 12:42:05 -0800152 "libvndksupport",
153 "libprocessgroup",
154 ],
155}
156
Pawin Vongmasa36653902018-11-15 00:10:25 -0800157// public dependency for implementing Codec 2 components
158cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800159 name: "libcodec2-impl-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800160
161 shared_libs: [
162 "libbase", // for C2_LOG
163 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800164 "libcodec2",
165 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800166 "libutils",
167 ],
Jooyung Hane3cf41a2020-04-30 04:22:22 +0900168
169 min_sdk_version: "29",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800170}
171
172// public dependency for implementing Codec 2 framework utilities
173// THIS IS ONLY FOR FRAMEWORK USE ONLY
174cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800175 name: "libcodec2-internal-defaults",
176 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -0800177
Wonsik Kim8f9e90a2020-02-25 14:40:18 -0800178 header_libs: [
179 "libcodec2_internal",
180 ],
181
Pawin Vongmasa36653902018-11-15 00:10:25 -0800182 shared_libs: [
183 "libcutils", // for properties
184 ],
185
186 // TODO: separate internal headers so they can be exposed here
187}