blob: 1caee04dca310087759751d686411c08c45a3eb0 [file] [log] [blame]
Steven Morelandbf0cfe72017-04-14 04:12:13 -07001cc_library_headers {
2 name: "libmedia_headers",
3 vendor_available: true,
Jooyung Hane3cf41a2020-04-30 04:22:22 +09004 min_sdk_version: "29",
5
Pawin Vongmasa255735a2017-07-19 11:24:56 -07006 export_include_dirs: ["include"],
Chong Zhang181e6952019-10-09 13:23:39 -07007 header_libs: [
Chih-Hung Hsieh38bdd652018-09-13 14:26:05 -07008 "libbase_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -07009 "libgui_headers",
Pawin Vongmasa255735a2017-07-19 11:24:56 -070010 "libstagefright_headers",
11 "media_plugin_headers",
12 ],
13 export_header_lib_headers: [
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -070014 "libgui_headers",
Pawin Vongmasa255735a2017-07-19 11:24:56 -070015 "libstagefright_headers",
16 "media_plugin_headers",
17 ],
Steven Morelandbf0cfe72017-04-14 04:12:13 -070018}
19
S Vasudev Prasadc2c91db2020-04-27 15:05:15 +053020cc_library_headers {
21 name: "libmedia_datasource_headers",
22 export_include_dirs: ["include"],
23 host_supported: true,
24 target: {
25 darwin: {
26 enabled: false,
27 },
28 },
Jiyong Park995b9362020-05-04 20:22:12 +090029 apex_available: [
30 "//apex_available:platform",
31 "com.android.media",
32 ],
Jooyung Hana680e7a2020-06-03 15:52:42 +090033 min_sdk_version: "29",
S Vasudev Prasadc2c91db2020-04-27 15:05:15 +053034}
35
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070036filegroup {
37 name: "libmedia_omx_aidl",
38 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070039 "aidl/android/IOMXBufferSource.aidl",
40 ],
41 path: "aidl",
42}
43
Marco Nelissendab79b32019-11-18 08:25:47 -080044filegroup {
45 name: "mediaextractorservice_aidl",
46 srcs: [
47 "aidl/android/IMediaExtractorService.aidl",
48 ],
49 path: "aidl",
50}
51
Amy Zhangb94ef882020-06-08 21:38:53 -070052filegroup {
53 name: "resourcemanager_aidl",
Chong Zhang181e6952019-10-09 13:23:39 -070054 srcs: [
55 "aidl/android/media/IResourceManagerClient.aidl",
56 "aidl/android/media/IResourceManagerService.aidl",
57 "aidl/android/media/MediaResourceType.aidl",
58 "aidl/android/media/MediaResourceSubType.aidl",
59 "aidl/android/media/MediaResourceParcel.aidl",
60 "aidl/android/media/MediaResourcePolicyParcel.aidl",
61 ],
Amy Zhangb94ef882020-06-08 21:38:53 -070062 path: "aidl",
63}
64
65aidl_interface {
66 name: "resourcemanager_aidl_interface",
67 unstable: true,
68 local_include_dir: "aidl",
69 srcs: [
70 ":resourcemanager_aidl",
71 ],
Chong Zhang181e6952019-10-09 13:23:39 -070072}
73
Jae Shin8568cb92017-10-30 11:13:36 +090074cc_library_shared {
75 name: "libmedia_omx",
76 vendor_available: true,
77 vndk: {
78 enabled: true,
79 },
Jiyong Parkfcd15372018-04-09 12:13:06 +090080 double_loadable: true,
Steven Moreland55506402017-06-07 18:18:09 -070081
82 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070083 ":libmedia_omx_aidl",
Steven Moreland55506402017-06-07 18:18:09 -070084
Steven Moreland55506402017-06-07 18:18:09 -070085 "IOMX.cpp",
86 "MediaCodecBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070087 "OMXBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070088 "omx/1.0/WOmxBufferSource.cpp",
89 "omx/1.0/WOmxNode.cpp",
90 "omx/1.0/WOmxObserver.cpp",
91 ],
Colin Crosseeb43632017-04-20 12:48:51 -070092
93 aidl: {
94 local_include_dirs: ["aidl"],
95 export_aidl_headers: true,
96 },
Marco Nelissencf90b492019-09-26 11:20:54 -070097
Chong Zhang0fe4c472019-04-08 21:51:46 +000098 local_include_dirs: [
99 "include",
100 ],
Colin Crosseeb43632017-04-20 12:48:51 -0700101
Steven Moreland55506402017-06-07 18:18:09 -0700102 shared_libs: [
Steven Moreland55506402017-06-07 18:18:09 -0700103 "android.hidl.token@1.0-utils",
104 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -0700105 "libbinder",
106 "libcutils",
Steven Moreland55506402017-06-07 18:18:09 -0700107 "libhidlbase",
Steven Moreland55506402017-06-07 18:18:09 -0700108 "liblog",
109 "libstagefright_foundation",
110 "libui",
111 "libutils",
112 ],
Colin Crosseeb43632017-04-20 12:48:51 -0700113
Steven Moreland55506402017-06-07 18:18:09 -0700114 export_shared_lib_headers: [
Steven Moreland55506402017-06-07 18:18:09 -0700115 "android.hidl.token@1.0-utils",
116 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -0700117 "libstagefright_foundation",
118 "libui",
119 ],
120
121 header_libs: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000122 "libstagefright_headers",
123 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700124 ],
125
126 export_header_lib_headers: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000127 "libstagefright_headers",
128 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700129 ],
130
131 export_include_dirs: [
132 "aidl",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000133 "include",
134 ],
135
136 cflags: [
137 "-Werror",
138 "-Wno-error=deprecated-declarations",
139 "-Wall",
140 ],
141
142 sanitize: {
143 misc_undefined: [
144 "unsigned-integer-overflow",
145 "signed-integer-overflow",
146 ],
147 cfi: true,
148 },
149}
150
Chong Zhang0fe4c472019-04-08 21:51:46 +0000151cc_library_shared {
152 name: "libmedia_omx_client",
153
154 srcs: [
155 "omx/1.0/WOmx.cpp",
156 ],
157
158 local_include_dirs: [
159 "include",
160 ],
161
162 shared_libs: [
163 "libbinder",
164 "libcutils",
165 "libgui",
166 "libhidlbase",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000167 "liblog",
168 "libmedia_omx",
169 "libstagefright_foundation",
170 "libui",
171 "libutils",
172 ],
173
174 export_shared_lib_headers: [
175 "libgui",
176 "libmedia_omx",
177 "libstagefright_foundation",
178 "libui",
179 ],
180
181 header_libs: [
182 "libstagefright_headers",
183 "media_plugin_headers",
184 ],
185
186 export_header_lib_headers: [
187 "libstagefright_headers",
188 "media_plugin_headers",
189 ],
190
191 export_include_dirs: [
192 "include",
Steven Moreland55506402017-06-07 18:18:09 -0700193 ],
194
195 cflags: [
196 "-Werror",
197 "-Wno-error=deprecated-declarations",
198 "-Wall",
199 ],
200
201 sanitize: {
202 misc_undefined: [
203 "unsigned-integer-overflow",
204 "signed-integer-overflow",
205 ],
206 cfi: true,
Steven Moreland55506402017-06-07 18:18:09 -0700207 },
208}
209
Dongwon Kangefe396f2017-10-17 17:23:30 -0700210cc_library_static {
211 name: "libmedia_midiiowrapper",
212
Jooyung Hane3cf41a2020-04-30 04:22:22 +0900213 min_sdk_version: "29",
214
Dongwon Kangefe396f2017-10-17 17:23:30 -0700215 srcs: ["MidiIoWrapper.cpp"],
216
217 static_libs: [
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700218 "libsonivoxwithoutjet",
Dongwon Kangefe396f2017-10-17 17:23:30 -0700219 ],
220
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700221 header_libs: [
S Vasudev Prasad62006dd2020-03-23 14:15:59 +0530222 "libmedia_datasource_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700223 "media_ndk_headers",
224 ],
225
Dongwon Kangefe396f2017-10-17 17:23:30 -0700226 cflags: [
227 "-Werror",
228 "-Wno-error=deprecated-declarations",
229 "-Wall",
230 ],
231
232 sanitize: {
233 misc_undefined: [
234 "unsigned-integer-overflow",
235 "signed-integer-overflow",
236 ],
237 cfi: true,
Dongwon Kangefe396f2017-10-17 17:23:30 -0700238 },
S Vasudev Prasad62006dd2020-03-23 14:15:59 +0530239
240 host_supported: true,
241
242 target: {
243 darwin: {
244 enabled: false,
245 },
246 },
Dongwon Kangefe396f2017-10-17 17:23:30 -0700247}
248
Dongwon Kang23a180b2019-09-23 17:48:14 -0700249cc_library_shared {
250 name: "libmedia_codeclist",
251
252 srcs: [
253 "IMediaCodecList.cpp",
254 "MediaCodecInfo.cpp",
255 ],
256
257 local_include_dirs: [
258 "include",
259 ],
260
261 shared_libs: [
262 "android.hardware.media.omx@1.0",
263 "libbinder",
264 "liblog",
265 "libstagefright_foundation",
266 "libutils",
267 ],
268
269 include_dirs: [
270 "system/libhidl/transport/token/1.0/utils/include",
271 ],
272
273 export_include_dirs: [
274 "include",
275 ],
276
277 cflags: [
278 "-Werror",
279 "-Wno-error=deprecated-declarations",
280 "-Wall",
281 ],
282
283 sanitize: {
284 misc_undefined: [
285 "unsigned-integer-overflow",
286 "signed-integer-overflow",
287 ],
288 cfi: true,
289 },
290}
291
Wei Jia4049f132018-01-22 10:37:31 -0800292cc_library {
Steven Moreland55506402017-06-07 18:18:09 -0700293 name: "libmedia",
Steven Moreland55506402017-06-07 18:18:09 -0700294
295 srcs: [
Marco Nelissendab79b32019-11-18 08:25:47 -0800296 ":mediaextractorservice_aidl",
Colin Crosseeb43632017-04-20 12:48:51 -0700297 "IDataSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700298 "BufferingSettings.cpp",
299 "mediaplayer.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700300 "IMediaHTTPConnection.cpp",
301 "IMediaHTTPService.cpp",
302 "IMediaExtractor.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700303 "IMediaPlayerService.cpp",
304 "IMediaPlayerClient.cpp",
305 "IMediaRecorderClient.cpp",
306 "IMediaPlayer.cpp",
307 "IMediaRecorder.cpp",
308 "IMediaSource.cpp",
309 "IRemoteDisplay.cpp",
310 "IRemoteDisplayClient.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700311 "IStreamSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700312 "Metadata.cpp",
313 "mediarecorder.cpp",
314 "IMediaMetadataRetriever.cpp",
315 "mediametadataretriever.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700316 "MediaScanner.cpp",
317 "MediaScannerClient.cpp",
318 "CharacterEncodingDetector.cpp",
319 "IMediaDeathNotifier.cpp",
320 "MediaProfiles.cpp",
321 "MediaResource.cpp",
322 "MediaResourcePolicy.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700323 "StringArray.cpp",
Marco Nelissen98603d82018-07-17 11:06:55 -0700324 "NdkMediaFormatPriv.cpp",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700325 "NdkMediaErrorPriv.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700326 ],
327
Dongwon Kang3e6d2452017-06-29 15:21:53 -0700328 aidl: {
329 local_include_dirs: ["aidl"],
330 export_aidl_headers: true,
331 },
332
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700333 header_libs: [
334 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700335 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100336 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700337 ],
338
339 export_header_lib_headers: [
340 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700341 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100342 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700343 ],
344
Colin Crosseeb43632017-04-20 12:48:51 -0700345 shared_libs: [
Lajos Molnar79c49ae2018-05-24 23:40:20 -0700346 "android.hidl.token@1.0-utils",
Colin Crosseeb43632017-04-20 12:48:51 -0700347 "liblog",
348 "libcutils",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -0800349 "libprocessgroup",
Colin Crosseeb43632017-04-20 12:48:51 -0700350 "libutils",
351 "libbinder",
Chong Zhangfdd512a2019-11-22 11:03:14 -0800352 "libbinder_ndk",
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700353 //"libsonivox",
Victor Changb6826d92018-11-20 19:11:07 +0000354 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700355 "libexpat",
356 "libcamera_client",
357 "libstagefright_foundation",
358 "libgui",
359 "libdl",
Colin Crosseeb43632017-04-20 12:48:51 -0700360 "libaudioclient",
Dongwon Kang23a180b2019-09-23 17:48:14 -0700361 "libmedia_codeclist",
Jae Shin8568cb92017-10-30 11:13:36 +0900362 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700363 ],
364
365 export_shared_lib_headers: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -0700366 "libaudioclient",
Colin Crosseeb43632017-04-20 12:48:51 -0700367 "libbinder",
Victor Changb6826d92018-11-20 19:11:07 +0000368 "libandroidicu",
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700369 //"libsonivox",
Jae Shin8568cb92017-10-30 11:13:36 +0900370 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700371 ],
372
Colin Crosseeb43632017-04-20 12:48:51 -0700373 static_libs: [
Chong Zhangfdd512a2019-11-22 11:03:14 -0800374 "resourcemanager_aidl_interface-ndk_platform",
Chong Zhang181e6952019-10-09 13:23:39 -0700375 ],
376
377 export_static_lib_headers: [
Chong Zhangfdd512a2019-11-22 11:03:14 -0800378 "resourcemanager_aidl_interface-ndk_platform",
Colin Crosseeb43632017-04-20 12:48:51 -0700379 ],
380
Colin Crosseeb43632017-04-20 12:48:51 -0700381 export_include_dirs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700382 "include",
383 ],
Pawin Vongmasa255735a2017-07-19 11:24:56 -0700384
Colin Crosseeb43632017-04-20 12:48:51 -0700385 cflags: [
386 "-Werror",
387 "-Wno-error=deprecated-declarations",
388 "-Wall",
389 ],
390
Marco Nelissen7ffa0622017-12-15 16:07:12 -0800391 version_script: "exports.lds",
392
Colin Crosseeb43632017-04-20 12:48:51 -0700393 sanitize: {
394 misc_undefined: [
395 "unsigned-integer-overflow",
396 "signed-integer-overflow",
397 ],
398 cfi: true,
Colin Crosseeb43632017-04-20 12:48:51 -0700399 },
400}
S Vasudev Prasad6a8a8dd2020-04-21 14:42:14 +0530401
402cc_library_static {
403 name: "libmedia_ndkformatpriv",
404
405 host_supported: true,
406
407 srcs: [
408 "NdkMediaFormatPriv.cpp",
409 "NdkMediaErrorPriv.cpp",
410 ],
411
412 header_libs: [
413 "libstagefright_foundation_headers",
414 "libstagefright_headers",
415 "media_ndk_headers",
416 ],
417
418 cflags: [
419 "-DEXPORT=__attribute__((visibility(\"default\")))",
420 "-Werror",
421 "-Wall",
422 ],
423
424 export_include_dirs: ["include"],
425
426 target: {
427 darwin: {
428 enabled: false,
429 },
430 },
431
432 apex_available: ["com.android.media"],
433}