blob: 9fbd4d931468049452c6f734a4088893b8bbdc0a [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 ],
S Vasudev Prasadc2c91db2020-04-27 15:05:15 +053033}
34
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070035filegroup {
36 name: "libmedia_omx_aidl",
37 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070038 "aidl/android/IOMXBufferSource.aidl",
39 ],
40 path: "aidl",
41}
42
Marco Nelissendab79b32019-11-18 08:25:47 -080043filegroup {
44 name: "mediaextractorservice_aidl",
45 srcs: [
46 "aidl/android/IMediaExtractorService.aidl",
47 ],
48 path: "aidl",
49}
50
Chong Zhang181e6952019-10-09 13:23:39 -070051aidl_interface {
52 name: "resourcemanager_aidl_interface",
Jiyong Park1f2151f2020-04-13 12:52:14 +090053 unstable: true,
Chong Zhang181e6952019-10-09 13:23:39 -070054 local_include_dir: "aidl",
55 srcs: [
56 "aidl/android/media/IResourceManagerClient.aidl",
57 "aidl/android/media/IResourceManagerService.aidl",
58 "aidl/android/media/MediaResourceType.aidl",
59 "aidl/android/media/MediaResourceSubType.aidl",
60 "aidl/android/media/MediaResourceParcel.aidl",
61 "aidl/android/media/MediaResourcePolicyParcel.aidl",
62 ],
Chong Zhang181e6952019-10-09 13:23:39 -070063}
64
Jae Shin8568cb92017-10-30 11:13:36 +090065cc_library_shared {
66 name: "libmedia_omx",
67 vendor_available: true,
68 vndk: {
69 enabled: true,
70 },
Jiyong Parkfcd15372018-04-09 12:13:06 +090071 double_loadable: true,
Steven Moreland55506402017-06-07 18:18:09 -070072
73 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070074 ":libmedia_omx_aidl",
Steven Moreland55506402017-06-07 18:18:09 -070075
Steven Moreland55506402017-06-07 18:18:09 -070076 "IOMX.cpp",
77 "MediaCodecBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070078 "OMXBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070079 "omx/1.0/WOmxBufferSource.cpp",
80 "omx/1.0/WOmxNode.cpp",
81 "omx/1.0/WOmxObserver.cpp",
82 ],
Colin Crosseeb43632017-04-20 12:48:51 -070083
84 aidl: {
85 local_include_dirs: ["aidl"],
86 export_aidl_headers: true,
87 },
Marco Nelissencf90b492019-09-26 11:20:54 -070088
Chong Zhang0fe4c472019-04-08 21:51:46 +000089 local_include_dirs: [
90 "include",
91 ],
Colin Crosseeb43632017-04-20 12:48:51 -070092
Steven Moreland55506402017-06-07 18:18:09 -070093 shared_libs: [
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 "libbinder",
97 "libcutils",
Steven Moreland55506402017-06-07 18:18:09 -070098 "libhidlbase",
Steven Moreland55506402017-06-07 18:18:09 -070099 "liblog",
100 "libstagefright_foundation",
101 "libui",
102 "libutils",
103 ],
Colin Crosseeb43632017-04-20 12:48:51 -0700104
Steven Moreland55506402017-06-07 18:18:09 -0700105 export_shared_lib_headers: [
Steven Moreland55506402017-06-07 18:18:09 -0700106 "android.hidl.token@1.0-utils",
107 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -0700108 "libstagefright_foundation",
109 "libui",
110 ],
111
112 header_libs: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000113 "libstagefright_headers",
114 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700115 ],
116
117 export_header_lib_headers: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000118 "libstagefright_headers",
119 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700120 ],
121
122 export_include_dirs: [
123 "aidl",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000124 "include",
125 ],
126
127 cflags: [
128 "-Werror",
129 "-Wno-error=deprecated-declarations",
130 "-Wall",
131 ],
132
133 sanitize: {
134 misc_undefined: [
135 "unsigned-integer-overflow",
136 "signed-integer-overflow",
137 ],
138 cfi: true,
139 },
140}
141
Chong Zhang0fe4c472019-04-08 21:51:46 +0000142cc_library_shared {
143 name: "libmedia_omx_client",
144
145 srcs: [
146 "omx/1.0/WOmx.cpp",
147 ],
148
149 local_include_dirs: [
150 "include",
151 ],
152
153 shared_libs: [
154 "libbinder",
155 "libcutils",
156 "libgui",
157 "libhidlbase",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000158 "liblog",
159 "libmedia_omx",
160 "libstagefright_foundation",
161 "libui",
162 "libutils",
163 ],
164
165 export_shared_lib_headers: [
166 "libgui",
167 "libmedia_omx",
168 "libstagefright_foundation",
169 "libui",
170 ],
171
172 header_libs: [
173 "libstagefright_headers",
174 "media_plugin_headers",
175 ],
176
177 export_header_lib_headers: [
178 "libstagefright_headers",
179 "media_plugin_headers",
180 ],
181
182 export_include_dirs: [
183 "include",
Steven Moreland55506402017-06-07 18:18:09 -0700184 ],
185
186 cflags: [
187 "-Werror",
188 "-Wno-error=deprecated-declarations",
189 "-Wall",
190 ],
191
192 sanitize: {
193 misc_undefined: [
194 "unsigned-integer-overflow",
195 "signed-integer-overflow",
196 ],
197 cfi: true,
Steven Moreland55506402017-06-07 18:18:09 -0700198 },
199}
200
Dongwon Kangefe396f2017-10-17 17:23:30 -0700201cc_library_static {
202 name: "libmedia_midiiowrapper",
203
Jooyung Hane3cf41a2020-04-30 04:22:22 +0900204 min_sdk_version: "29",
205
Dongwon Kangefe396f2017-10-17 17:23:30 -0700206 srcs: ["MidiIoWrapper.cpp"],
207
208 static_libs: [
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700209 "libsonivoxwithoutjet",
Dongwon Kangefe396f2017-10-17 17:23:30 -0700210 ],
211
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700212 header_libs: [
Marco Nelissen6b285942019-10-21 14:52:30 -0700213 "libmedia_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700214 "media_ndk_headers",
215 ],
216
Dongwon Kangefe396f2017-10-17 17:23:30 -0700217 cflags: [
218 "-Werror",
219 "-Wno-error=deprecated-declarations",
220 "-Wall",
221 ],
222
223 sanitize: {
224 misc_undefined: [
225 "unsigned-integer-overflow",
226 "signed-integer-overflow",
227 ],
228 cfi: true,
Dongwon Kangefe396f2017-10-17 17:23:30 -0700229 },
230}
231
Dongwon Kang23a180b2019-09-23 17:48:14 -0700232cc_library_shared {
233 name: "libmedia_codeclist",
234
235 srcs: [
236 "IMediaCodecList.cpp",
237 "MediaCodecInfo.cpp",
238 ],
239
240 local_include_dirs: [
241 "include",
242 ],
243
244 shared_libs: [
245 "android.hardware.media.omx@1.0",
246 "libbinder",
247 "liblog",
248 "libstagefright_foundation",
249 "libutils",
250 ],
251
252 include_dirs: [
253 "system/libhidl/transport/token/1.0/utils/include",
254 ],
255
256 export_include_dirs: [
257 "include",
258 ],
259
260 cflags: [
261 "-Werror",
262 "-Wno-error=deprecated-declarations",
263 "-Wall",
264 ],
265
266 sanitize: {
267 misc_undefined: [
268 "unsigned-integer-overflow",
269 "signed-integer-overflow",
270 ],
271 cfi: true,
272 },
273}
274
Wei Jia4049f132018-01-22 10:37:31 -0800275cc_library {
Steven Moreland55506402017-06-07 18:18:09 -0700276 name: "libmedia",
Steven Moreland55506402017-06-07 18:18:09 -0700277
278 srcs: [
Marco Nelissendab79b32019-11-18 08:25:47 -0800279 ":mediaextractorservice_aidl",
Colin Crosseeb43632017-04-20 12:48:51 -0700280 "IDataSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700281 "BufferingSettings.cpp",
282 "mediaplayer.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700283 "IMediaHTTPConnection.cpp",
284 "IMediaHTTPService.cpp",
285 "IMediaExtractor.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700286 "IMediaPlayerService.cpp",
287 "IMediaPlayerClient.cpp",
288 "IMediaRecorderClient.cpp",
289 "IMediaPlayer.cpp",
290 "IMediaRecorder.cpp",
291 "IMediaSource.cpp",
292 "IRemoteDisplay.cpp",
293 "IRemoteDisplayClient.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700294 "IStreamSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700295 "Metadata.cpp",
296 "mediarecorder.cpp",
297 "IMediaMetadataRetriever.cpp",
298 "mediametadataretriever.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700299 "MediaScanner.cpp",
300 "MediaScannerClient.cpp",
301 "CharacterEncodingDetector.cpp",
302 "IMediaDeathNotifier.cpp",
303 "MediaProfiles.cpp",
304 "MediaResource.cpp",
305 "MediaResourcePolicy.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700306 "StringArray.cpp",
Marco Nelissen98603d82018-07-17 11:06:55 -0700307 "NdkMediaFormatPriv.cpp",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700308 "NdkMediaErrorPriv.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700309 ],
310
Dongwon Kang3e6d2452017-06-29 15:21:53 -0700311 aidl: {
312 local_include_dirs: ["aidl"],
313 export_aidl_headers: true,
314 },
315
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700316 header_libs: [
317 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700318 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100319 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700320 ],
321
322 export_header_lib_headers: [
323 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700324 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100325 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700326 ],
327
Colin Crosseeb43632017-04-20 12:48:51 -0700328 shared_libs: [
Lajos Molnar79c49ae2018-05-24 23:40:20 -0700329 "android.hidl.token@1.0-utils",
Colin Crosseeb43632017-04-20 12:48:51 -0700330 "liblog",
331 "libcutils",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -0800332 "libprocessgroup",
Colin Crosseeb43632017-04-20 12:48:51 -0700333 "libutils",
334 "libbinder",
Chong Zhangfdd512a2019-11-22 11:03:14 -0800335 "libbinder_ndk",
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700336 //"libsonivox",
Victor Changb6826d92018-11-20 19:11:07 +0000337 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700338 "libexpat",
339 "libcamera_client",
340 "libstagefright_foundation",
341 "libgui",
342 "libdl",
Colin Crosseeb43632017-04-20 12:48:51 -0700343 "libaudioclient",
Dongwon Kang23a180b2019-09-23 17:48:14 -0700344 "libmedia_codeclist",
Jae Shin8568cb92017-10-30 11:13:36 +0900345 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700346 ],
347
348 export_shared_lib_headers: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -0700349 "libaudioclient",
Colin Crosseeb43632017-04-20 12:48:51 -0700350 "libbinder",
Victor Changb6826d92018-11-20 19:11:07 +0000351 "libandroidicu",
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700352 //"libsonivox",
Jae Shin8568cb92017-10-30 11:13:36 +0900353 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700354 ],
355
Colin Crosseeb43632017-04-20 12:48:51 -0700356 static_libs: [
Chong Zhangfdd512a2019-11-22 11:03:14 -0800357 "resourcemanager_aidl_interface-ndk_platform",
Chong Zhang181e6952019-10-09 13:23:39 -0700358 ],
359
360 export_static_lib_headers: [
Chong Zhangfdd512a2019-11-22 11:03:14 -0800361 "resourcemanager_aidl_interface-ndk_platform",
Colin Crosseeb43632017-04-20 12:48:51 -0700362 ],
363
Colin Crosseeb43632017-04-20 12:48:51 -0700364 export_include_dirs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700365 "include",
366 ],
Pawin Vongmasa255735a2017-07-19 11:24:56 -0700367
Colin Crosseeb43632017-04-20 12:48:51 -0700368 cflags: [
369 "-Werror",
370 "-Wno-error=deprecated-declarations",
371 "-Wall",
372 ],
373
Marco Nelissen7ffa0622017-12-15 16:07:12 -0800374 version_script: "exports.lds",
375
Colin Crosseeb43632017-04-20 12:48:51 -0700376 sanitize: {
377 misc_undefined: [
378 "unsigned-integer-overflow",
379 "signed-integer-overflow",
380 ],
381 cfi: true,
Colin Crosseeb43632017-04-20 12:48:51 -0700382 },
383}
S Vasudev Prasad6a8a8dd2020-04-21 14:42:14 +0530384
385cc_library_static {
386 name: "libmedia_ndkformatpriv",
387
388 host_supported: true,
389
390 srcs: [
391 "NdkMediaFormatPriv.cpp",
392 "NdkMediaErrorPriv.cpp",
393 ],
394
395 header_libs: [
396 "libstagefright_foundation_headers",
397 "libstagefright_headers",
398 "media_ndk_headers",
399 ],
400
401 cflags: [
402 "-DEXPORT=__attribute__((visibility(\"default\")))",
403 "-Werror",
404 "-Wall",
405 ],
406
407 export_include_dirs: ["include"],
408
409 target: {
410 darwin: {
411 enabled: false,
412 },
413 },
414
415 apex_available: ["com.android.media"],
416}