blob: 0fa0120ea303578fb7d29cc7a18d400ef400fb07 [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"],
Chong Zhang181e6952019-10-09 13:23:39 -07005 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
S Vasudev Prasadc2c91db2020-04-27 15:05:15 +053018cc_library_headers {
19 name: "libmedia_datasource_headers",
20 export_include_dirs: ["include"],
21 host_supported: true,
22 target: {
23 darwin: {
24 enabled: false,
25 },
26 },
Jiyong Park995b9362020-05-04 20:22:12 +090027 apex_available: [
28 "//apex_available:platform",
29 "com.android.media",
30 ],
S Vasudev Prasadc2c91db2020-04-27 15:05:15 +053031}
32
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070033filegroup {
34 name: "libmedia_omx_aidl",
35 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070036 "aidl/android/IOMXBufferSource.aidl",
37 ],
38 path: "aidl",
39}
40
Marco Nelissendab79b32019-11-18 08:25:47 -080041filegroup {
42 name: "mediaextractorservice_aidl",
43 srcs: [
44 "aidl/android/IMediaExtractorService.aidl",
45 ],
46 path: "aidl",
47}
48
Chong Zhang181e6952019-10-09 13:23:39 -070049aidl_interface {
50 name: "resourcemanager_aidl_interface",
Jiyong Park1f2151f2020-04-13 12:52:14 +090051 unstable: true,
Chong Zhang181e6952019-10-09 13:23:39 -070052 local_include_dir: "aidl",
53 srcs: [
54 "aidl/android/media/IResourceManagerClient.aidl",
55 "aidl/android/media/IResourceManagerService.aidl",
56 "aidl/android/media/MediaResourceType.aidl",
57 "aidl/android/media/MediaResourceSubType.aidl",
58 "aidl/android/media/MediaResourceParcel.aidl",
59 "aidl/android/media/MediaResourcePolicyParcel.aidl",
60 ],
Chong Zhang181e6952019-10-09 13:23:39 -070061}
62
Jae Shin8568cb92017-10-30 11:13:36 +090063cc_library_shared {
64 name: "libmedia_omx",
65 vendor_available: true,
66 vndk: {
67 enabled: true,
68 },
Jiyong Parkfcd15372018-04-09 12:13:06 +090069 double_loadable: true,
Steven Moreland55506402017-06-07 18:18:09 -070070
71 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070072 ":libmedia_omx_aidl",
Steven Moreland55506402017-06-07 18:18:09 -070073
Steven Moreland55506402017-06-07 18:18:09 -070074 "IOMX.cpp",
75 "MediaCodecBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070076 "OMXBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070077 "omx/1.0/WOmxBufferSource.cpp",
78 "omx/1.0/WOmxNode.cpp",
79 "omx/1.0/WOmxObserver.cpp",
80 ],
Colin Crosseeb43632017-04-20 12:48:51 -070081
82 aidl: {
83 local_include_dirs: ["aidl"],
84 export_aidl_headers: true,
85 },
Marco Nelissencf90b492019-09-26 11:20:54 -070086
Chong Zhang0fe4c472019-04-08 21:51:46 +000087 local_include_dirs: [
88 "include",
89 ],
Colin Crosseeb43632017-04-20 12:48:51 -070090
Steven Moreland55506402017-06-07 18:18:09 -070091 shared_libs: [
Steven Moreland55506402017-06-07 18:18:09 -070092 "android.hidl.token@1.0-utils",
93 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -070094 "libbinder",
95 "libcutils",
Steven Moreland55506402017-06-07 18:18:09 -070096 "libhidlbase",
Steven Moreland55506402017-06-07 18:18:09 -070097 "liblog",
98 "libstagefright_foundation",
99 "libui",
100 "libutils",
101 ],
Colin Crosseeb43632017-04-20 12:48:51 -0700102
Steven Moreland55506402017-06-07 18:18:09 -0700103 export_shared_lib_headers: [
Steven Moreland55506402017-06-07 18:18:09 -0700104 "android.hidl.token@1.0-utils",
105 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -0700106 "libstagefright_foundation",
107 "libui",
108 ],
109
110 header_libs: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000111 "libstagefright_headers",
112 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700113 ],
114
115 export_header_lib_headers: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000116 "libstagefright_headers",
117 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700118 ],
119
120 export_include_dirs: [
121 "aidl",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000122 "include",
123 ],
124
125 cflags: [
126 "-Werror",
127 "-Wno-error=deprecated-declarations",
128 "-Wall",
129 ],
130
131 sanitize: {
132 misc_undefined: [
133 "unsigned-integer-overflow",
134 "signed-integer-overflow",
135 ],
136 cfi: true,
137 },
138}
139
Chong Zhang0fe4c472019-04-08 21:51:46 +0000140cc_library_shared {
141 name: "libmedia_omx_client",
142
143 srcs: [
144 "omx/1.0/WOmx.cpp",
145 ],
146
147 local_include_dirs: [
148 "include",
149 ],
150
151 shared_libs: [
152 "libbinder",
153 "libcutils",
154 "libgui",
155 "libhidlbase",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000156 "liblog",
157 "libmedia_omx",
158 "libstagefright_foundation",
159 "libui",
160 "libutils",
161 ],
162
163 export_shared_lib_headers: [
164 "libgui",
165 "libmedia_omx",
166 "libstagefright_foundation",
167 "libui",
168 ],
169
170 header_libs: [
171 "libstagefright_headers",
172 "media_plugin_headers",
173 ],
174
175 export_header_lib_headers: [
176 "libstagefright_headers",
177 "media_plugin_headers",
178 ],
179
180 export_include_dirs: [
181 "include",
Steven Moreland55506402017-06-07 18:18:09 -0700182 ],
183
184 cflags: [
185 "-Werror",
186 "-Wno-error=deprecated-declarations",
187 "-Wall",
188 ],
189
190 sanitize: {
191 misc_undefined: [
192 "unsigned-integer-overflow",
193 "signed-integer-overflow",
194 ],
195 cfi: true,
Steven Moreland55506402017-06-07 18:18:09 -0700196 },
197}
198
Dongwon Kangefe396f2017-10-17 17:23:30 -0700199cc_library_static {
200 name: "libmedia_midiiowrapper",
201
202 srcs: ["MidiIoWrapper.cpp"],
203
204 static_libs: [
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700205 "libsonivoxwithoutjet",
Dongwon Kangefe396f2017-10-17 17:23:30 -0700206 ],
207
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700208 header_libs: [
Marco Nelissen6b285942019-10-21 14:52:30 -0700209 "libmedia_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700210 "media_ndk_headers",
211 ],
212
Dongwon Kangefe396f2017-10-17 17:23:30 -0700213 cflags: [
214 "-Werror",
215 "-Wno-error=deprecated-declarations",
216 "-Wall",
217 ],
218
219 sanitize: {
220 misc_undefined: [
221 "unsigned-integer-overflow",
222 "signed-integer-overflow",
223 ],
224 cfi: true,
Dongwon Kangefe396f2017-10-17 17:23:30 -0700225 },
226}
227
Dongwon Kang23a180b2019-09-23 17:48:14 -0700228cc_library_shared {
229 name: "libmedia_codeclist",
230
231 srcs: [
232 "IMediaCodecList.cpp",
233 "MediaCodecInfo.cpp",
234 ],
235
236 local_include_dirs: [
237 "include",
238 ],
239
240 shared_libs: [
241 "android.hardware.media.omx@1.0",
242 "libbinder",
243 "liblog",
244 "libstagefright_foundation",
245 "libutils",
246 ],
247
248 include_dirs: [
249 "system/libhidl/transport/token/1.0/utils/include",
250 ],
251
252 export_include_dirs: [
253 "include",
254 ],
255
256 cflags: [
257 "-Werror",
258 "-Wno-error=deprecated-declarations",
259 "-Wall",
260 ],
261
262 sanitize: {
263 misc_undefined: [
264 "unsigned-integer-overflow",
265 "signed-integer-overflow",
266 ],
267 cfi: true,
268 },
269}
270
Wei Jia4049f132018-01-22 10:37:31 -0800271cc_library {
Steven Moreland55506402017-06-07 18:18:09 -0700272 name: "libmedia",
Steven Moreland55506402017-06-07 18:18:09 -0700273
274 srcs: [
Marco Nelissendab79b32019-11-18 08:25:47 -0800275 ":mediaextractorservice_aidl",
Colin Crosseeb43632017-04-20 12:48:51 -0700276 "IDataSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700277 "BufferingSettings.cpp",
278 "mediaplayer.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700279 "IMediaHTTPConnection.cpp",
280 "IMediaHTTPService.cpp",
281 "IMediaExtractor.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700282 "IMediaPlayerService.cpp",
283 "IMediaPlayerClient.cpp",
284 "IMediaRecorderClient.cpp",
285 "IMediaPlayer.cpp",
286 "IMediaRecorder.cpp",
287 "IMediaSource.cpp",
288 "IRemoteDisplay.cpp",
289 "IRemoteDisplayClient.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700290 "IStreamSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700291 "Metadata.cpp",
292 "mediarecorder.cpp",
293 "IMediaMetadataRetriever.cpp",
294 "mediametadataretriever.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700295 "MediaScanner.cpp",
296 "MediaScannerClient.cpp",
297 "CharacterEncodingDetector.cpp",
298 "IMediaDeathNotifier.cpp",
299 "MediaProfiles.cpp",
300 "MediaResource.cpp",
301 "MediaResourcePolicy.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700302 "StringArray.cpp",
Marco Nelissen98603d82018-07-17 11:06:55 -0700303 "NdkMediaFormatPriv.cpp",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700304 "NdkMediaErrorPriv.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700305 ],
306
Dongwon Kang3e6d2452017-06-29 15:21:53 -0700307 aidl: {
308 local_include_dirs: ["aidl"],
309 export_aidl_headers: true,
310 },
311
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700312 header_libs: [
313 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700314 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100315 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700316 ],
317
318 export_header_lib_headers: [
319 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700320 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100321 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700322 ],
323
Colin Crosseeb43632017-04-20 12:48:51 -0700324 shared_libs: [
Lajos Molnar79c49ae2018-05-24 23:40:20 -0700325 "android.hidl.token@1.0-utils",
Colin Crosseeb43632017-04-20 12:48:51 -0700326 "liblog",
327 "libcutils",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -0800328 "libprocessgroup",
Colin Crosseeb43632017-04-20 12:48:51 -0700329 "libutils",
330 "libbinder",
Chong Zhangfdd512a2019-11-22 11:03:14 -0800331 "libbinder_ndk",
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700332 //"libsonivox",
Victor Changb6826d92018-11-20 19:11:07 +0000333 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700334 "libexpat",
335 "libcamera_client",
336 "libstagefright_foundation",
337 "libgui",
338 "libdl",
Colin Crosseeb43632017-04-20 12:48:51 -0700339 "libaudioclient",
Dongwon Kang23a180b2019-09-23 17:48:14 -0700340 "libmedia_codeclist",
Jae Shin8568cb92017-10-30 11:13:36 +0900341 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700342 ],
343
344 export_shared_lib_headers: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -0700345 "libaudioclient",
Colin Crosseeb43632017-04-20 12:48:51 -0700346 "libbinder",
Victor Changb6826d92018-11-20 19:11:07 +0000347 "libandroidicu",
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700348 //"libsonivox",
Jae Shin8568cb92017-10-30 11:13:36 +0900349 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700350 ],
351
Colin Crosseeb43632017-04-20 12:48:51 -0700352 static_libs: [
Chong Zhangfdd512a2019-11-22 11:03:14 -0800353 "resourcemanager_aidl_interface-ndk_platform",
Chong Zhang181e6952019-10-09 13:23:39 -0700354 ],
355
356 export_static_lib_headers: [
Chong Zhangfdd512a2019-11-22 11:03:14 -0800357 "resourcemanager_aidl_interface-ndk_platform",
Colin Crosseeb43632017-04-20 12:48:51 -0700358 ],
359
Colin Crosseeb43632017-04-20 12:48:51 -0700360 export_include_dirs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700361 "include",
362 ],
Pawin Vongmasa255735a2017-07-19 11:24:56 -0700363
Colin Crosseeb43632017-04-20 12:48:51 -0700364 cflags: [
365 "-Werror",
366 "-Wno-error=deprecated-declarations",
367 "-Wall",
368 ],
369
Marco Nelissen7ffa0622017-12-15 16:07:12 -0800370 version_script: "exports.lds",
371
Colin Crosseeb43632017-04-20 12:48:51 -0700372 sanitize: {
373 misc_undefined: [
374 "unsigned-integer-overflow",
375 "signed-integer-overflow",
376 ],
377 cfi: true,
Colin Crosseeb43632017-04-20 12:48:51 -0700378 },
379}
S Vasudev Prasad6a8a8dd2020-04-21 14:42:14 +0530380
381cc_library_static {
382 name: "libmedia_ndkformatpriv",
383
384 host_supported: true,
385
386 srcs: [
387 "NdkMediaFormatPriv.cpp",
388 "NdkMediaErrorPriv.cpp",
389 ],
390
391 header_libs: [
392 "libstagefright_foundation_headers",
393 "libstagefright_headers",
394 "media_ndk_headers",
395 ],
396
397 cflags: [
398 "-DEXPORT=__attribute__((visibility(\"default\")))",
399 "-Werror",
400 "-Wall",
401 ],
402
403 export_include_dirs: ["include"],
404
405 target: {
406 darwin: {
407 enabled: false,
408 },
409 },
410
411 apex_available: ["com.android.media"],
412}