blob: ab1cf69cc68b557737a74d797262a77899a0c7ce [file] [log] [blame]
Bob Badour56786ac2021-02-25 15:24:36 -08001package {
2 default_applicable_licenses: ["frameworks_av_media_libmedia_license"],
3}
4
5// Added automatically by a large-scale-change
6// See: http://go/android-license-faq
7license {
8 name: "frameworks_av_media_libmedia_license",
9 visibility: [":__subpackages__"],
10 license_kinds: [
11 "SPDX-license-identifier-Apache-2.0",
12 ],
13 license_text: [
14 "NOTICE",
15 ],
16}
17
Steven Morelandbf0cfe72017-04-14 04:12:13 -070018cc_library_headers {
19 name: "libmedia_headers",
20 vendor_available: true,
Jooyung Hane3cf41a2020-04-30 04:22:22 +090021 min_sdk_version: "29",
Ray Essick5556a6c2022-01-27 20:02:35 -080022 apex_available: [
23 "//apex_available:platform",
24 "com.android.media.swcodec",
25 ],
Jooyung Hane3cf41a2020-04-30 04:22:22 +090026
Pawin Vongmasa255735a2017-07-19 11:24:56 -070027 export_include_dirs: ["include"],
Chong Zhang181e6952019-10-09 13:23:39 -070028 header_libs: [
Ytai Ben-Tsvi71109da2020-11-03 15:11:13 -080029 "av-headers",
Chih-Hung Hsieh38bdd652018-09-13 14:26:05 -070030 "libbase_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -070031 "libgui_headers",
Pawin Vongmasa255735a2017-07-19 11:24:56 -070032 "libstagefright_headers",
33 "media_plugin_headers",
34 ],
35 export_header_lib_headers: [
Ytai Ben-Tsvi71109da2020-11-03 15:11:13 -080036 "av-headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -070037 "libgui_headers",
Pawin Vongmasa255735a2017-07-19 11:24:56 -070038 "libstagefright_headers",
39 "media_plugin_headers",
40 ],
Steven Morelandbf0cfe72017-04-14 04:12:13 -070041}
42
S Vasudev Prasadc2c91db2020-04-27 15:05:15 +053043cc_library_headers {
44 name: "libmedia_datasource_headers",
45 export_include_dirs: ["include"],
46 host_supported: true,
47 target: {
48 darwin: {
49 enabled: false,
50 },
51 },
Yifan Honge2a73762021-04-23 17:14:43 -070052 header_libs: [
53 "libbinder_headers",
54 ],
55 export_header_lib_headers: [
56 "libbinder_headers",
57 ],
Jiyong Park995b9362020-05-04 20:22:12 +090058 apex_available: [
59 "//apex_available:platform",
60 "com.android.media",
61 ],
Jooyung Hana680e7a2020-06-03 15:52:42 +090062 min_sdk_version: "29",
S Vasudev Prasadc2c91db2020-04-27 15:05:15 +053063}
64
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070065filegroup {
66 name: "libmedia_omx_aidl",
67 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070068 "aidl/android/IOMXBufferSource.aidl",
69 ],
70 path: "aidl",
71}
72
Marco Nelissendab79b32019-11-18 08:25:47 -080073filegroup {
74 name: "mediaextractorservice_aidl",
75 srcs: [
76 "aidl/android/IMediaExtractorService.aidl",
77 ],
78 path: "aidl",
79}
80
Jae Shin8568cb92017-10-30 11:13:36 +090081cc_library_shared {
82 name: "libmedia_omx",
83 vendor_available: true,
84 vndk: {
85 enabled: true,
86 },
Jiyong Parkfcd15372018-04-09 12:13:06 +090087 double_loadable: true,
Steven Moreland55506402017-06-07 18:18:09 -070088
89 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070090 ":libmedia_omx_aidl",
Steven Moreland55506402017-06-07 18:18:09 -070091
Steven Moreland55506402017-06-07 18:18:09 -070092 "IOMX.cpp",
93 "MediaCodecBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070094 "OMXBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070095 "omx/1.0/WOmxBufferSource.cpp",
96 "omx/1.0/WOmxNode.cpp",
97 "omx/1.0/WOmxObserver.cpp",
98 ],
Colin Crosseeb43632017-04-20 12:48:51 -070099
100 aidl: {
101 local_include_dirs: ["aidl"],
102 export_aidl_headers: true,
103 },
Marco Nelissencf90b492019-09-26 11:20:54 -0700104
Chong Zhang0fe4c472019-04-08 21:51:46 +0000105 local_include_dirs: [
106 "include",
107 ],
Colin Crosseeb43632017-04-20 12:48:51 -0700108
Steven Moreland55506402017-06-07 18:18:09 -0700109 shared_libs: [
Steven Moreland55506402017-06-07 18:18:09 -0700110 "android.hidl.token@1.0-utils",
111 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -0700112 "libbinder",
113 "libcutils",
Steven Moreland55506402017-06-07 18:18:09 -0700114 "libhidlbase",
Steven Moreland55506402017-06-07 18:18:09 -0700115 "liblog",
116 "libstagefright_foundation",
117 "libui",
118 "libutils",
119 ],
Colin Crosseeb43632017-04-20 12:48:51 -0700120
Steven Moreland55506402017-06-07 18:18:09 -0700121 export_shared_lib_headers: [
Steven Moreland55506402017-06-07 18:18:09 -0700122 "android.hidl.token@1.0-utils",
123 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -0700124 "libstagefright_foundation",
125 "libui",
126 ],
127
128 header_libs: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000129 "libstagefright_headers",
130 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700131 ],
132
133 export_header_lib_headers: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000134 "libstagefright_headers",
135 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700136 ],
137
138 export_include_dirs: [
139 "aidl",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000140 "include",
141 ],
142
143 cflags: [
144 "-Werror",
145 "-Wno-error=deprecated-declarations",
146 "-Wall",
147 ],
148
149 sanitize: {
150 misc_undefined: [
151 "unsigned-integer-overflow",
152 "signed-integer-overflow",
153 ],
154 cfi: true,
155 },
156}
157
Chong Zhang0fe4c472019-04-08 21:51:46 +0000158cc_library_shared {
159 name: "libmedia_omx_client",
160
161 srcs: [
162 "omx/1.0/WOmx.cpp",
163 ],
164
165 local_include_dirs: [
166 "include",
167 ],
168
169 shared_libs: [
170 "libbinder",
171 "libcutils",
172 "libgui",
173 "libhidlbase",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000174 "liblog",
175 "libmedia_omx",
176 "libstagefright_foundation",
177 "libui",
178 "libutils",
179 ],
180
181 export_shared_lib_headers: [
182 "libgui",
183 "libmedia_omx",
184 "libstagefright_foundation",
185 "libui",
186 ],
187
188 header_libs: [
189 "libstagefright_headers",
190 "media_plugin_headers",
191 ],
192
193 export_header_lib_headers: [
194 "libstagefright_headers",
195 "media_plugin_headers",
196 ],
197
198 export_include_dirs: [
199 "include",
Steven Moreland55506402017-06-07 18:18:09 -0700200 ],
201
202 cflags: [
203 "-Werror",
204 "-Wno-error=deprecated-declarations",
205 "-Wall",
206 ],
207
208 sanitize: {
209 misc_undefined: [
210 "unsigned-integer-overflow",
211 "signed-integer-overflow",
212 ],
213 cfi: true,
Steven Moreland55506402017-06-07 18:18:09 -0700214 },
215}
216
Dongwon Kangefe396f2017-10-17 17:23:30 -0700217cc_library_static {
218 name: "libmedia_midiiowrapper",
219
Jooyung Hane3cf41a2020-04-30 04:22:22 +0900220 min_sdk_version: "29",
Ray Essick5556a6c2022-01-27 20:02:35 -0800221 apex_available: [
222 "//apex_available:platform",
223 "com.android.media",
224 ],
225
Jooyung Hane3cf41a2020-04-30 04:22:22 +0900226
Dongwon Kangefe396f2017-10-17 17:23:30 -0700227 srcs: ["MidiIoWrapper.cpp"],
228
229 static_libs: [
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700230 "libsonivoxwithoutjet",
Dongwon Kangefe396f2017-10-17 17:23:30 -0700231 ],
232
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700233 header_libs: [
S Vasudev Prasad62006dd2020-03-23 14:15:59 +0530234 "libmedia_datasource_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700235 "media_ndk_headers",
236 ],
237
Dongwon Kangefe396f2017-10-17 17:23:30 -0700238 cflags: [
239 "-Werror",
240 "-Wno-error=deprecated-declarations",
241 "-Wall",
242 ],
243
244 sanitize: {
245 misc_undefined: [
246 "unsigned-integer-overflow",
247 "signed-integer-overflow",
248 ],
249 cfi: true,
Dongwon Kangefe396f2017-10-17 17:23:30 -0700250 },
S Vasudev Prasad62006dd2020-03-23 14:15:59 +0530251
252 host_supported: true,
253
254 target: {
255 darwin: {
256 enabled: false,
257 },
258 },
Dongwon Kangefe396f2017-10-17 17:23:30 -0700259}
260
Dongwon Kang23a180b2019-09-23 17:48:14 -0700261cc_library_shared {
262 name: "libmedia_codeclist",
263
264 srcs: [
265 "IMediaCodecList.cpp",
266 "MediaCodecInfo.cpp",
267 ],
268
269 local_include_dirs: [
270 "include",
271 ],
272
273 shared_libs: [
274 "android.hardware.media.omx@1.0",
275 "libbinder",
276 "liblog",
277 "libstagefright_foundation",
278 "libutils",
279 ],
280
281 include_dirs: [
282 "system/libhidl/transport/token/1.0/utils/include",
283 ],
284
285 export_include_dirs: [
286 "include",
287 ],
288
289 cflags: [
290 "-Werror",
291 "-Wno-error=deprecated-declarations",
292 "-Wall",
293 ],
294
295 sanitize: {
296 misc_undefined: [
297 "unsigned-integer-overflow",
298 "signed-integer-overflow",
299 ],
300 cfi: true,
301 },
302}
303
Wei Jia4049f132018-01-22 10:37:31 -0800304cc_library {
Steven Moreland55506402017-06-07 18:18:09 -0700305 name: "libmedia",
Steven Moreland55506402017-06-07 18:18:09 -0700306
Lorena Torres-Huerta81329892022-08-12 23:08:12 +0000307 defaults: [
308 "latest_android_media_audio_common_types_cpp_shared",
309 ],
310
Steven Moreland55506402017-06-07 18:18:09 -0700311 srcs: [
Marco Nelissendab79b32019-11-18 08:25:47 -0800312 ":mediaextractorservice_aidl",
Colin Crosseeb43632017-04-20 12:48:51 -0700313 "IDataSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700314 "BufferingSettings.cpp",
315 "mediaplayer.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700316 "IMediaHTTPConnection.cpp",
317 "IMediaHTTPService.cpp",
318 "IMediaExtractor.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700319 "IMediaPlayerService.cpp",
320 "IMediaPlayerClient.cpp",
321 "IMediaRecorderClient.cpp",
322 "IMediaPlayer.cpp",
323 "IMediaRecorder.cpp",
324 "IMediaSource.cpp",
325 "IRemoteDisplay.cpp",
326 "IRemoteDisplayClient.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700327 "IStreamSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700328 "Metadata.cpp",
329 "mediarecorder.cpp",
330 "IMediaMetadataRetriever.cpp",
331 "mediametadataretriever.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700332 "MediaScanner.cpp",
333 "MediaScannerClient.cpp",
334 "CharacterEncodingDetector.cpp",
335 "IMediaDeathNotifier.cpp",
336 "MediaProfiles.cpp",
337 "MediaResource.cpp",
338 "MediaResourcePolicy.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700339 "StringArray.cpp",
Marco Nelissen98603d82018-07-17 11:06:55 -0700340 "NdkMediaFormatPriv.cpp",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700341 "NdkMediaErrorPriv.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700342 ],
343
Dongwon Kang3e6d2452017-06-29 15:21:53 -0700344 aidl: {
345 local_include_dirs: ["aidl"],
346 export_aidl_headers: true,
347 },
348
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700349 header_libs: [
350 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700351 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100352 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700353 ],
354
355 export_header_lib_headers: [
356 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700357 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100358 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700359 ],
360
Colin Crosseeb43632017-04-20 12:48:51 -0700361 shared_libs: [
Lajos Molnar79c49ae2018-05-24 23:40:20 -0700362 "android.hidl.token@1.0-utils",
Jeongik Cha7f2285b2021-01-28 00:49:46 +0900363 "audioclient-types-aidl-cpp",
364 "av-types-aidl-cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700365 "liblog",
366 "libcutils",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -0800367 "libprocessgroup",
Colin Crosseeb43632017-04-20 12:48:51 -0700368 "libutils",
369 "libbinder",
Chong Zhangfdd512a2019-11-22 11:03:14 -0800370 "libbinder_ndk",
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700371 //"libsonivox",
Victor Changb6826d92018-11-20 19:11:07 +0000372 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700373 "libexpat",
374 "libcamera_client",
375 "libstagefright_foundation",
376 "libgui",
377 "libdl",
Colin Crosseeb43632017-04-20 12:48:51 -0700378 "libaudioclient",
Dongwon Kang23a180b2019-09-23 17:48:14 -0700379 "libmedia_codeclist",
Jae Shin8568cb92017-10-30 11:13:36 +0900380 "libmedia_omx",
Svet Ganov3e5f14f2021-05-13 22:51:08 +0000381 "framework-permission-aidl-cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700382 ],
383
384 export_shared_lib_headers: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -0700385 "libaudioclient",
Colin Crosseeb43632017-04-20 12:48:51 -0700386 "libbinder",
Victor Changb6826d92018-11-20 19:11:07 +0000387 "libandroidicu",
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700388 //"libsonivox",
Jae Shin8568cb92017-10-30 11:13:36 +0900389 "libmedia_omx",
Svet Ganov3e5f14f2021-05-13 22:51:08 +0000390 "framework-permission-aidl-cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700391 ],
392
Colin Crosseeb43632017-04-20 12:48:51 -0700393 static_libs: [
Jiyong Parkdd1dbe62021-08-04 12:48:04 +0900394 "resourcemanager_aidl_interface-ndk",
Svet Ganov3e5f14f2021-05-13 22:51:08 +0000395 "framework-permission-aidl-cpp",
Chong Zhang181e6952019-10-09 13:23:39 -0700396 ],
397
398 export_static_lib_headers: [
Jiyong Parkdd1dbe62021-08-04 12:48:04 +0900399 "resourcemanager_aidl_interface-ndk",
Svet Ganov3e5f14f2021-05-13 22:51:08 +0000400 "framework-permission-aidl-cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700401 ],
402
Colin Crosseeb43632017-04-20 12:48:51 -0700403 export_include_dirs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700404 "include",
405 ],
Pawin Vongmasa255735a2017-07-19 11:24:56 -0700406
Colin Crosseeb43632017-04-20 12:48:51 -0700407 cflags: [
408 "-Werror",
409 "-Wno-error=deprecated-declarations",
410 "-Wall",
411 ],
412
Marco Nelissen7ffa0622017-12-15 16:07:12 -0800413 version_script: "exports.lds",
414
Colin Crosseeb43632017-04-20 12:48:51 -0700415 sanitize: {
416 misc_undefined: [
417 "unsigned-integer-overflow",
418 "signed-integer-overflow",
419 ],
420 cfi: true,
Colin Crosseeb43632017-04-20 12:48:51 -0700421 },
422}
S Vasudev Prasad6a8a8dd2020-04-21 14:42:14 +0530423
424cc_library_static {
425 name: "libmedia_ndkformatpriv",
426
427 host_supported: true,
428
429 srcs: [
430 "NdkMediaFormatPriv.cpp",
431 "NdkMediaErrorPriv.cpp",
432 ],
433
434 header_libs: [
435 "libstagefright_foundation_headers",
436 "libstagefright_headers",
437 "media_ndk_headers",
438 ],
439
440 cflags: [
441 "-DEXPORT=__attribute__((visibility(\"default\")))",
442 "-Werror",
443 "-Wall",
444 ],
445
446 export_include_dirs: ["include"],
447
448 target: {
449 darwin: {
450 enabled: false,
451 },
452 },
453
Ray Essick1831f7b2021-03-15 16:10:51 -0700454 apex_available: [
455 "//apex_available:platform",
Ray Essick5556a6c2022-01-27 20:02:35 -0800456 "com.android.media",
Ray Essick1831f7b2021-03-15 16:10:51 -0700457 ],
S Vasudev Prasad6a8a8dd2020-04-21 14:42:14 +0530458}