blob: c0d2514f94b9e4555f6b5a8fb828b4235d7c0978 [file] [log] [blame]
Steven Morelandbf0cfe72017-04-14 04:12:13 -07001cc_library_headers {
2 name: "libmedia_headers",
3 vendor_available: true,
Pawin Vongmasa255735a2017-07-19 11:24:56 -07004 export_include_dirs: ["include"],
5 header_libs:[
Chih-Hung Hsieh38bdd652018-09-13 14:26:05 -07006 "libbase_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -07007 "libgui_headers",
Pawin Vongmasa255735a2017-07-19 11:24:56 -07008 "libstagefright_headers",
9 "media_plugin_headers",
10 ],
11 export_header_lib_headers: [
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -070012 "libgui_headers",
Pawin Vongmasa255735a2017-07-19 11:24:56 -070013 "libstagefright_headers",
14 "media_plugin_headers",
15 ],
Steven Morelandbf0cfe72017-04-14 04:12:13 -070016}
17
Kevin Rocard07be14f2018-01-24 06:14:03 +000018cc_library {
19 name: "libmedia_helper",
20 vendor_available: true,
21 vndk: {
22 enabled: true,
23 },
Jooyung Han2334e002019-01-18 18:06:49 +090024 double_loadable: true,
Eric Laurent39b09b52018-06-29 12:24:40 -070025 srcs: ["AudioParameter.cpp", "TypeConverter.cpp"],
Dan Willemsen442a2ee2016-08-26 17:52:29 -070026 cflags: [
27 "-Werror",
28 "-Wno-error=deprecated-declarations",
29 "-Wall",
30 ],
Marco Nelissen75226172016-11-16 14:10:52 -080031 shared_libs: ["libutils", "liblog"],
Yifan Hong525eac32017-06-12 14:07:04 -070032 header_libs: [
33 "libmedia_headers",
34 "libaudioclient_headers",
Kevin Rocardf8ad7f82018-01-17 15:57:39 -080035 "libaudio_system_headers",
36 ],
Mickey Keeleyb1243bf2018-05-21 09:08:22 -070037 export_header_lib_headers: [
38 "libmedia_headers",
39 ],
Kevin Rocard07be14f2018-01-24 06:14:03 +000040 clang: true,
Kevin Rocardf8ad7f82018-01-17 15:57:39 -080041}
Colin Crosseeb43632017-04-20 12:48:51 -070042
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070043filegroup {
44 name: "libmedia_omx_aidl",
45 srcs: [
46 "aidl/android/IGraphicBufferSource.aidl",
47 "aidl/android/IOMXBufferSource.aidl",
48 ],
49 path: "aidl",
50}
51
Jae Shin8568cb92017-10-30 11:13:36 +090052cc_library_shared {
53 name: "libmedia_omx",
54 vendor_available: true,
55 vndk: {
56 enabled: true,
57 },
Jiyong Parkfcd15372018-04-09 12:13:06 +090058 double_loadable: true,
Steven Moreland55506402017-06-07 18:18:09 -070059
60 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070061 ":libmedia_omx_aidl",
Steven Moreland55506402017-06-07 18:18:09 -070062
Steven Moreland55506402017-06-07 18:18:09 -070063 "IOMX.cpp",
64 "MediaCodecBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070065 "OMXBuffer.cpp",
66 "omx/1.0/WGraphicBufferSource.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070067 "omx/1.0/WOmxBufferSource.cpp",
68 "omx/1.0/WOmxNode.cpp",
69 "omx/1.0/WOmxObserver.cpp",
70 ],
Colin Crosseeb43632017-04-20 12:48:51 -070071
72 aidl: {
73 local_include_dirs: ["aidl"],
74 export_aidl_headers: true,
75 },
Marco Nelissen3230ed82019-09-26 11:20:54 -070076
Chong Zhang0fe4c472019-04-08 21:51:46 +000077 local_include_dirs: [
78 "include",
79 ],
Colin Crosseeb43632017-04-20 12:48:51 -070080
Steven Moreland55506402017-06-07 18:18:09 -070081 shared_libs: [
Steven Moreland55506402017-06-07 18:18:09 -070082 "android.hidl.token@1.0-utils",
83 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -070084 "libbinder",
85 "libcutils",
Steven Moreland55506402017-06-07 18:18:09 -070086 "libhidlbase",
Steven Moreland55506402017-06-07 18:18:09 -070087 "liblog",
88 "libstagefright_foundation",
89 "libui",
90 "libutils",
91 ],
Colin Crosseeb43632017-04-20 12:48:51 -070092
Steven Moreland55506402017-06-07 18:18:09 -070093 export_shared_lib_headers: [
Steven Moreland55506402017-06-07 18:18:09 -070094 "android.hidl.token@1.0-utils",
95 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -070096 "libstagefright_foundation",
97 "libui",
98 ],
99
100 header_libs: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000101 "libstagefright_headers",
102 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700103 ],
104
105 export_header_lib_headers: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000106 "libstagefright_headers",
107 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700108 ],
109
110 export_include_dirs: [
111 "aidl",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000112 "include",
113 ],
114
115 cflags: [
116 "-Werror",
117 "-Wno-error=deprecated-declarations",
118 "-Wall",
119 ],
120
121 sanitize: {
122 misc_undefined: [
123 "unsigned-integer-overflow",
124 "signed-integer-overflow",
125 ],
126 cfi: true,
127 },
128}
129
130
131cc_library_shared {
132 name: "libmedia_omx_client",
133
134 srcs: [
135 "omx/1.0/WOmx.cpp",
136 ],
137
138 local_include_dirs: [
139 "include",
140 ],
141
142 shared_libs: [
143 "libbinder",
144 "libcutils",
145 "libgui",
146 "libhidlbase",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000147 "liblog",
148 "libmedia_omx",
149 "libstagefright_foundation",
150 "libui",
151 "libutils",
152 ],
153
154 export_shared_lib_headers: [
155 "libgui",
156 "libmedia_omx",
157 "libstagefright_foundation",
158 "libui",
159 ],
160
161 header_libs: [
162 "libstagefright_headers",
163 "media_plugin_headers",
164 ],
165
166 export_header_lib_headers: [
167 "libstagefright_headers",
168 "media_plugin_headers",
169 ],
170
171 export_include_dirs: [
172 "include",
Steven Moreland55506402017-06-07 18:18:09 -0700173 ],
174
175 cflags: [
176 "-Werror",
177 "-Wno-error=deprecated-declarations",
178 "-Wall",
179 ],
180
181 sanitize: {
182 misc_undefined: [
183 "unsigned-integer-overflow",
184 "signed-integer-overflow",
185 ],
186 cfi: true,
Steven Moreland55506402017-06-07 18:18:09 -0700187 },
188}
189
Dongwon Kangefe396f2017-10-17 17:23:30 -0700190cc_library_static {
191 name: "libmedia_midiiowrapper",
192
193 srcs: ["MidiIoWrapper.cpp"],
194
195 static_libs: [
196 "libsonivox",
197 ],
198
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700199 header_libs: [
200 "media_ndk_headers",
201 ],
202
Dongwon Kangefe396f2017-10-17 17:23:30 -0700203 cflags: [
204 "-Werror",
205 "-Wno-error=deprecated-declarations",
206 "-Wall",
207 ],
208
209 sanitize: {
210 misc_undefined: [
211 "unsigned-integer-overflow",
212 "signed-integer-overflow",
213 ],
214 cfi: true,
Dongwon Kangefe396f2017-10-17 17:23:30 -0700215 },
216}
217
Dongwon Kanga42a62d2019-09-23 17:48:14 -0700218cc_library_shared {
219 name: "libmedia_codeclist",
220
221 srcs: [
222 "IMediaCodecList.cpp",
223 "MediaCodecInfo.cpp",
224 ],
225
226 local_include_dirs: [
227 "include",
228 ],
229
230 shared_libs: [
231 "android.hardware.media.omx@1.0",
232 "libbinder",
233 "liblog",
234 "libstagefright_foundation",
235 "libutils",
236 ],
237
238 include_dirs: [
239 "system/libhidl/transport/token/1.0/utils/include",
240 ],
241
242 export_include_dirs: [
243 "include",
244 ],
245
246 cflags: [
247 "-Werror",
248 "-Wno-error=deprecated-declarations",
249 "-Wall",
250 ],
251
252 sanitize: {
253 misc_undefined: [
254 "unsigned-integer-overflow",
255 "signed-integer-overflow",
256 ],
257 cfi: true,
258 },
259}
260
Wei Jia4049f132018-01-22 10:37:31 -0800261cc_library {
Steven Moreland55506402017-06-07 18:18:09 -0700262 name: "libmedia",
Steven Moreland55506402017-06-07 18:18:09 -0700263
264 srcs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700265 "IDataSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700266 "BufferingSettings.cpp",
267 "mediaplayer.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700268 "IMediaHTTPConnection.cpp",
269 "IMediaHTTPService.cpp",
270 "IMediaExtractor.cpp",
271 "IMediaExtractorService.cpp",
272 "IMediaPlayerService.cpp",
273 "IMediaPlayerClient.cpp",
274 "IMediaRecorderClient.cpp",
275 "IMediaPlayer.cpp",
276 "IMediaRecorder.cpp",
277 "IMediaSource.cpp",
278 "IRemoteDisplay.cpp",
279 "IRemoteDisplayClient.cpp",
280 "IResourceManagerClient.cpp",
281 "IResourceManagerService.cpp",
282 "IStreamSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700283 "MediaUtils.cpp",
284 "Metadata.cpp",
285 "mediarecorder.cpp",
286 "IMediaMetadataRetriever.cpp",
287 "mediametadataretriever.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700288 "MediaScanner.cpp",
289 "MediaScannerClient.cpp",
290 "CharacterEncodingDetector.cpp",
291 "IMediaDeathNotifier.cpp",
292 "MediaProfiles.cpp",
293 "MediaResource.cpp",
294 "MediaResourcePolicy.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700295 "StringArray.cpp",
Marco Nelissen98603d82018-07-17 11:06:55 -0700296 "NdkMediaFormatPriv.cpp",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700297 "NdkMediaErrorPriv.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700298 ],
299
Dongwon Kang3e6d2452017-06-29 15:21:53 -0700300 aidl: {
301 local_include_dirs: ["aidl"],
302 export_aidl_headers: true,
303 },
304
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700305 header_libs: [
Christopher Ferris9d2e0082019-09-11 19:08:13 -0700306 "bionic_libc_platform_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700307 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700308 "media_ndk_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700309 ],
310
311 export_header_lib_headers: [
312 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700313 "media_ndk_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700314 ],
315
Colin Crosseeb43632017-04-20 12:48:51 -0700316 shared_libs: [
Lajos Molnar79c49ae2018-05-24 23:40:20 -0700317 "android.hidl.token@1.0-utils",
Colin Crosseeb43632017-04-20 12:48:51 -0700318 "liblog",
319 "libcutils",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -0800320 "libprocessgroup",
Colin Crosseeb43632017-04-20 12:48:51 -0700321 "libutils",
322 "libbinder",
323 "libsonivox",
Victor Changb6826d92018-11-20 19:11:07 +0000324 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700325 "libexpat",
326 "libcamera_client",
327 "libstagefright_foundation",
328 "libgui",
329 "libdl",
Colin Crosseeb43632017-04-20 12:48:51 -0700330 "libaudioclient",
Dongwon Kanga42a62d2019-09-23 17:48:14 -0700331 "libmedia_codeclist",
Jae Shin8568cb92017-10-30 11:13:36 +0900332 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700333 ],
334
335 export_shared_lib_headers: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -0700336 "libaudioclient",
Colin Crosseeb43632017-04-20 12:48:51 -0700337 "libbinder",
Victor Changb6826d92018-11-20 19:11:07 +0000338 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700339 "libsonivox",
Jae Shin8568cb92017-10-30 11:13:36 +0900340 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700341 ],
342
Colin Crosseeb43632017-04-20 12:48:51 -0700343 static_libs: [
Dongwon Kangefe396f2017-10-17 17:23:30 -0700344 "libc_malloc_debug_backtrace", // for memory heap analysis
Colin Crosseeb43632017-04-20 12:48:51 -0700345 ],
346
Colin Crosseeb43632017-04-20 12:48:51 -0700347 export_include_dirs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700348 "include",
349 ],
Pawin Vongmasa255735a2017-07-19 11:24:56 -0700350
Colin Crosseeb43632017-04-20 12:48:51 -0700351 cflags: [
352 "-Werror",
353 "-Wno-error=deprecated-declarations",
354 "-Wall",
355 ],
356
Marco Nelissen7ffa0622017-12-15 16:07:12 -0800357 version_script: "exports.lds",
358
Colin Crosseeb43632017-04-20 12:48:51 -0700359 sanitize: {
360 misc_undefined: [
361 "unsigned-integer-overflow",
362 "signed-integer-overflow",
363 ],
364 cfi: true,
Colin Crosseeb43632017-04-20 12:48:51 -0700365 },
366}