blob: 1a7eb6f31f57badcf7ee3417a9dd0b2184676097 [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
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",
Steven Moreland55506402017-06-07 18:18:09 -070066 "omx/1.0/WOmxBufferSource.cpp",
67 "omx/1.0/WOmxNode.cpp",
68 "omx/1.0/WOmxObserver.cpp",
69 ],
Colin Crosseeb43632017-04-20 12:48:51 -070070
71 aidl: {
72 local_include_dirs: ["aidl"],
73 export_aidl_headers: true,
74 },
Marco Nelissencf90b492019-09-26 11:20:54 -070075
Chong Zhang0fe4c472019-04-08 21:51:46 +000076 local_include_dirs: [
77 "include",
78 ],
Colin Crosseeb43632017-04-20 12:48:51 -070079
Steven Moreland55506402017-06-07 18:18:09 -070080 shared_libs: [
Steven Moreland55506402017-06-07 18:18:09 -070081 "android.hidl.token@1.0-utils",
82 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -070083 "libbinder",
84 "libcutils",
Steven Moreland55506402017-06-07 18:18:09 -070085 "libhidlbase",
Steven Moreland55506402017-06-07 18:18:09 -070086 "liblog",
87 "libstagefright_foundation",
88 "libui",
89 "libutils",
90 ],
Colin Crosseeb43632017-04-20 12:48:51 -070091
Steven Moreland55506402017-06-07 18:18:09 -070092 export_shared_lib_headers: [
Steven Moreland55506402017-06-07 18:18:09 -070093 "android.hidl.token@1.0-utils",
94 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -070095 "libstagefright_foundation",
96 "libui",
97 ],
98
99 header_libs: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000100 "libstagefright_headers",
101 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700102 ],
103
104 export_header_lib_headers: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000105 "libstagefright_headers",
106 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700107 ],
108
109 export_include_dirs: [
110 "aidl",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000111 "include",
112 ],
113
114 cflags: [
115 "-Werror",
116 "-Wno-error=deprecated-declarations",
117 "-Wall",
118 ],
119
120 sanitize: {
121 misc_undefined: [
122 "unsigned-integer-overflow",
123 "signed-integer-overflow",
124 ],
125 cfi: true,
126 },
127}
128
Chong Zhang0fe4c472019-04-08 21:51:46 +0000129cc_library_shared {
130 name: "libmedia_omx_client",
131
132 srcs: [
133 "omx/1.0/WOmx.cpp",
134 ],
135
136 local_include_dirs: [
137 "include",
138 ],
139
140 shared_libs: [
141 "libbinder",
142 "libcutils",
143 "libgui",
144 "libhidlbase",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000145 "liblog",
146 "libmedia_omx",
147 "libstagefright_foundation",
148 "libui",
149 "libutils",
150 ],
151
152 export_shared_lib_headers: [
153 "libgui",
154 "libmedia_omx",
155 "libstagefright_foundation",
156 "libui",
157 ],
158
159 header_libs: [
160 "libstagefright_headers",
161 "media_plugin_headers",
162 ],
163
164 export_header_lib_headers: [
165 "libstagefright_headers",
166 "media_plugin_headers",
167 ],
168
169 export_include_dirs: [
170 "include",
Steven Moreland55506402017-06-07 18:18:09 -0700171 ],
172
173 cflags: [
174 "-Werror",
175 "-Wno-error=deprecated-declarations",
176 "-Wall",
177 ],
178
179 sanitize: {
180 misc_undefined: [
181 "unsigned-integer-overflow",
182 "signed-integer-overflow",
183 ],
184 cfi: true,
Steven Moreland55506402017-06-07 18:18:09 -0700185 },
186}
187
Dongwon Kangefe396f2017-10-17 17:23:30 -0700188cc_library_static {
189 name: "libmedia_midiiowrapper",
190
Jooyung Hane3cf41a2020-04-30 04:22:22 +0900191 min_sdk_version: "29",
192
Dongwon Kangefe396f2017-10-17 17:23:30 -0700193 srcs: ["MidiIoWrapper.cpp"],
194
195 static_libs: [
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700196 "libsonivoxwithoutjet",
Dongwon Kangefe396f2017-10-17 17:23:30 -0700197 ],
198
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700199 header_libs: [
S Vasudev Prasad62006dd2020-03-23 14:15:59 +0530200 "libmedia_datasource_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700201 "media_ndk_headers",
202 ],
203
Dongwon Kangefe396f2017-10-17 17:23:30 -0700204 cflags: [
205 "-Werror",
206 "-Wno-error=deprecated-declarations",
207 "-Wall",
208 ],
209
210 sanitize: {
211 misc_undefined: [
212 "unsigned-integer-overflow",
213 "signed-integer-overflow",
214 ],
215 cfi: true,
Dongwon Kangefe396f2017-10-17 17:23:30 -0700216 },
S Vasudev Prasad62006dd2020-03-23 14:15:59 +0530217
218 host_supported: true,
219
220 target: {
221 darwin: {
222 enabled: false,
223 },
224 },
Dongwon Kangefe396f2017-10-17 17:23:30 -0700225}
226
Dongwon Kang23a180b2019-09-23 17:48:14 -0700227cc_library_shared {
228 name: "libmedia_codeclist",
229
230 srcs: [
231 "IMediaCodecList.cpp",
232 "MediaCodecInfo.cpp",
233 ],
234
235 local_include_dirs: [
236 "include",
237 ],
238
239 shared_libs: [
240 "android.hardware.media.omx@1.0",
241 "libbinder",
242 "liblog",
243 "libstagefright_foundation",
244 "libutils",
245 ],
246
247 include_dirs: [
248 "system/libhidl/transport/token/1.0/utils/include",
249 ],
250
251 export_include_dirs: [
252 "include",
253 ],
254
255 cflags: [
256 "-Werror",
257 "-Wno-error=deprecated-declarations",
258 "-Wall",
259 ],
260
261 sanitize: {
262 misc_undefined: [
263 "unsigned-integer-overflow",
264 "signed-integer-overflow",
265 ],
266 cfi: true,
267 },
268}
269
Wei Jia4049f132018-01-22 10:37:31 -0800270cc_library {
Steven Moreland55506402017-06-07 18:18:09 -0700271 name: "libmedia",
Steven Moreland55506402017-06-07 18:18:09 -0700272
273 srcs: [
Marco Nelissendab79b32019-11-18 08:25:47 -0800274 ":mediaextractorservice_aidl",
Colin Crosseeb43632017-04-20 12:48:51 -0700275 "IDataSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700276 "BufferingSettings.cpp",
277 "mediaplayer.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700278 "IMediaHTTPConnection.cpp",
279 "IMediaHTTPService.cpp",
280 "IMediaExtractor.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700281 "IMediaPlayerService.cpp",
282 "IMediaPlayerClient.cpp",
283 "IMediaRecorderClient.cpp",
284 "IMediaPlayer.cpp",
285 "IMediaRecorder.cpp",
286 "IMediaSource.cpp",
287 "IRemoteDisplay.cpp",
288 "IRemoteDisplayClient.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700289 "IStreamSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700290 "Metadata.cpp",
291 "mediarecorder.cpp",
292 "IMediaMetadataRetriever.cpp",
293 "mediametadataretriever.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700294 "MediaScanner.cpp",
295 "MediaScannerClient.cpp",
296 "CharacterEncodingDetector.cpp",
297 "IMediaDeathNotifier.cpp",
298 "MediaProfiles.cpp",
299 "MediaResource.cpp",
300 "MediaResourcePolicy.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700301 "StringArray.cpp",
Marco Nelissen98603d82018-07-17 11:06:55 -0700302 "NdkMediaFormatPriv.cpp",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700303 "NdkMediaErrorPriv.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700304 ],
305
Dongwon Kang3e6d2452017-06-29 15:21:53 -0700306 aidl: {
307 local_include_dirs: ["aidl"],
308 export_aidl_headers: true,
309 },
310
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700311 header_libs: [
312 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700313 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100314 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700315 ],
316
317 export_header_lib_headers: [
318 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700319 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100320 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700321 ],
322
Colin Crosseeb43632017-04-20 12:48:51 -0700323 shared_libs: [
Lajos Molnar79c49ae2018-05-24 23:40:20 -0700324 "android.hidl.token@1.0-utils",
Ytai Ben-Tsvif0658f42020-10-26 11:51:14 -0700325 "audioclient-types-aidl-unstable-cpp",
326 "av-types-aidl-unstable-cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700327 "liblog",
328 "libcutils",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -0800329 "libprocessgroup",
Colin Crosseeb43632017-04-20 12:48:51 -0700330 "libutils",
331 "libbinder",
Chong Zhangfdd512a2019-11-22 11:03:14 -0800332 "libbinder_ndk",
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700333 //"libsonivox",
Victor Changb6826d92018-11-20 19:11:07 +0000334 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700335 "libexpat",
336 "libcamera_client",
337 "libstagefright_foundation",
338 "libgui",
339 "libdl",
Colin Crosseeb43632017-04-20 12:48:51 -0700340 "libaudioclient",
Dongwon Kang23a180b2019-09-23 17:48:14 -0700341 "libmedia_codeclist",
Jae Shin8568cb92017-10-30 11:13:36 +0900342 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700343 ],
344
345 export_shared_lib_headers: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -0700346 "libaudioclient",
Colin Crosseeb43632017-04-20 12:48:51 -0700347 "libbinder",
Victor Changb6826d92018-11-20 19:11:07 +0000348 "libandroidicu",
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700349 //"libsonivox",
Jae Shin8568cb92017-10-30 11:13:36 +0900350 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700351 ],
352
Colin Crosseeb43632017-04-20 12:48:51 -0700353 static_libs: [
Chong Zhangfdd512a2019-11-22 11:03:14 -0800354 "resourcemanager_aidl_interface-ndk_platform",
Chong Zhang181e6952019-10-09 13:23:39 -0700355 ],
356
357 export_static_lib_headers: [
Chong Zhangfdd512a2019-11-22 11:03:14 -0800358 "resourcemanager_aidl_interface-ndk_platform",
Colin Crosseeb43632017-04-20 12:48:51 -0700359 ],
360
Colin Crosseeb43632017-04-20 12:48:51 -0700361 export_include_dirs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700362 "include",
363 ],
Pawin Vongmasa255735a2017-07-19 11:24:56 -0700364
Colin Crosseeb43632017-04-20 12:48:51 -0700365 cflags: [
366 "-Werror",
367 "-Wno-error=deprecated-declarations",
368 "-Wall",
369 ],
370
Marco Nelissen7ffa0622017-12-15 16:07:12 -0800371 version_script: "exports.lds",
372
Colin Crosseeb43632017-04-20 12:48:51 -0700373 sanitize: {
374 misc_undefined: [
375 "unsigned-integer-overflow",
376 "signed-integer-overflow",
377 ],
378 cfi: true,
Colin Crosseeb43632017-04-20 12:48:51 -0700379 },
380}
S Vasudev Prasad6a8a8dd2020-04-21 14:42:14 +0530381
382cc_library_static {
383 name: "libmedia_ndkformatpriv",
384
385 host_supported: true,
386
387 srcs: [
388 "NdkMediaFormatPriv.cpp",
389 "NdkMediaErrorPriv.cpp",
390 ],
391
392 header_libs: [
393 "libstagefright_foundation_headers",
394 "libstagefright_headers",
395 "media_ndk_headers",
396 ],
397
398 cflags: [
399 "-DEXPORT=__attribute__((visibility(\"default\")))",
400 "-Werror",
401 "-Wall",
402 ],
403
404 export_include_dirs: ["include"],
405
406 target: {
407 darwin: {
408 enabled: false,
409 },
410 },
411
412 apex_available: ["com.android.media"],
413}