blob: 99df845ebea93b82393ae8ce284050b6671980f4 [file] [log] [blame]
Steven Morelandbf0cfe72017-04-14 04:12:13 -07001cc_library_headers {
2 name: "libmedia_headers",
3 vendor_available: true,
Jooyung Hanbee35cb2020-04-30 04:22:22 +09004 min_sdk_version: "29",
5
Pawin Vongmasa255735a2017-07-19 11:24:56 -07006 export_include_dirs: ["include"],
7 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: [
39 "aidl/android/IGraphicBufferSource.aidl",
40 "aidl/android/IOMXBufferSource.aidl",
41 ],
42 path: "aidl",
43}
44
Jae Shin8568cb92017-10-30 11:13:36 +090045cc_library_shared {
46 name: "libmedia_omx",
47 vendor_available: true,
48 vndk: {
49 enabled: true,
50 },
Jiyong Parkfcd15372018-04-09 12:13:06 +090051 double_loadable: true,
Steven Moreland55506402017-06-07 18:18:09 -070052
53 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070054 ":libmedia_omx_aidl",
Steven Moreland55506402017-06-07 18:18:09 -070055
Steven Moreland55506402017-06-07 18:18:09 -070056 "IOMX.cpp",
57 "MediaCodecBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070058 "OMXBuffer.cpp",
59 "omx/1.0/WGraphicBufferSource.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070060 "omx/1.0/WOmxBufferSource.cpp",
61 "omx/1.0/WOmxNode.cpp",
62 "omx/1.0/WOmxObserver.cpp",
63 ],
Colin Crosseeb43632017-04-20 12:48:51 -070064
65 aidl: {
66 local_include_dirs: ["aidl"],
67 export_aidl_headers: true,
68 },
Marco Nelissen3230ed82019-09-26 11:20:54 -070069
Chong Zhang0fe4c472019-04-08 21:51:46 +000070 local_include_dirs: [
71 "include",
72 ],
Colin Crosseeb43632017-04-20 12:48:51 -070073
Steven Moreland55506402017-06-07 18:18:09 -070074 shared_libs: [
Steven Moreland55506402017-06-07 18:18:09 -070075 "android.hidl.token@1.0-utils",
76 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -070077 "libbinder",
78 "libcutils",
Steven Moreland55506402017-06-07 18:18:09 -070079 "libhidlbase",
Steven Moreland55506402017-06-07 18:18:09 -070080 "liblog",
81 "libstagefright_foundation",
82 "libui",
83 "libutils",
84 ],
Colin Crosseeb43632017-04-20 12:48:51 -070085
Steven Moreland55506402017-06-07 18:18:09 -070086 export_shared_lib_headers: [
Steven Moreland55506402017-06-07 18:18:09 -070087 "android.hidl.token@1.0-utils",
88 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -070089 "libstagefright_foundation",
90 "libui",
91 ],
92
93 header_libs: [
Chong Zhang0fe4c472019-04-08 21:51:46 +000094 "libstagefright_headers",
95 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -070096 ],
97
98 export_header_lib_headers: [
Chong Zhang0fe4c472019-04-08 21:51:46 +000099 "libstagefright_headers",
100 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700101 ],
102
103 export_include_dirs: [
104 "aidl",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000105 "include",
106 ],
107
108 cflags: [
109 "-Werror",
110 "-Wno-error=deprecated-declarations",
111 "-Wall",
112 ],
113
114 sanitize: {
115 misc_undefined: [
116 "unsigned-integer-overflow",
117 "signed-integer-overflow",
118 ],
119 cfi: true,
120 },
121}
122
123
124cc_library_shared {
125 name: "libmedia_omx_client",
126
127 srcs: [
128 "omx/1.0/WOmx.cpp",
129 ],
130
131 local_include_dirs: [
132 "include",
133 ],
134
135 shared_libs: [
136 "libbinder",
137 "libcutils",
138 "libgui",
139 "libhidlbase",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000140 "liblog",
141 "libmedia_omx",
142 "libstagefright_foundation",
143 "libui",
144 "libutils",
145 ],
146
147 export_shared_lib_headers: [
148 "libgui",
149 "libmedia_omx",
150 "libstagefright_foundation",
151 "libui",
152 ],
153
154 header_libs: [
155 "libstagefright_headers",
156 "media_plugin_headers",
157 ],
158
159 export_header_lib_headers: [
160 "libstagefright_headers",
161 "media_plugin_headers",
162 ],
163
164 export_include_dirs: [
165 "include",
Steven Moreland55506402017-06-07 18:18:09 -0700166 ],
167
168 cflags: [
169 "-Werror",
170 "-Wno-error=deprecated-declarations",
171 "-Wall",
172 ],
173
174 sanitize: {
175 misc_undefined: [
176 "unsigned-integer-overflow",
177 "signed-integer-overflow",
178 ],
179 cfi: true,
Steven Moreland55506402017-06-07 18:18:09 -0700180 },
181}
182
Dongwon Kangefe396f2017-10-17 17:23:30 -0700183cc_library_static {
184 name: "libmedia_midiiowrapper",
185
Jooyung Hanbee35cb2020-04-30 04:22:22 +0900186 min_sdk_version: "29",
187
Dongwon Kangefe396f2017-10-17 17:23:30 -0700188 srcs: ["MidiIoWrapper.cpp"],
189
190 static_libs: [
191 "libsonivox",
192 ],
193
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700194 header_libs: [
S Vasudev Prasad62006dd2020-03-23 14:15:59 +0530195 "libmedia_datasource_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700196 "media_ndk_headers",
197 ],
198
Dongwon Kangefe396f2017-10-17 17:23:30 -0700199 cflags: [
200 "-Werror",
201 "-Wno-error=deprecated-declarations",
202 "-Wall",
203 ],
204
205 sanitize: {
206 misc_undefined: [
207 "unsigned-integer-overflow",
208 "signed-integer-overflow",
209 ],
210 cfi: true,
Dongwon Kangefe396f2017-10-17 17:23:30 -0700211 },
S Vasudev Prasad62006dd2020-03-23 14:15:59 +0530212
213 host_supported: true,
214
215 target: {
216 darwin: {
217 enabled: false,
218 },
219 },
Dongwon Kangefe396f2017-10-17 17:23:30 -0700220}
221
Dongwon Kanga42a62d2019-09-23 17:48:14 -0700222cc_library_shared {
223 name: "libmedia_codeclist",
224
225 srcs: [
226 "IMediaCodecList.cpp",
227 "MediaCodecInfo.cpp",
228 ],
229
230 local_include_dirs: [
231 "include",
232 ],
233
234 shared_libs: [
235 "android.hardware.media.omx@1.0",
236 "libbinder",
237 "liblog",
238 "libstagefright_foundation",
239 "libutils",
240 ],
241
242 include_dirs: [
243 "system/libhidl/transport/token/1.0/utils/include",
244 ],
245
246 export_include_dirs: [
247 "include",
248 ],
249
250 cflags: [
251 "-Werror",
252 "-Wno-error=deprecated-declarations",
253 "-Wall",
254 ],
255
256 sanitize: {
257 misc_undefined: [
258 "unsigned-integer-overflow",
259 "signed-integer-overflow",
260 ],
261 cfi: true,
262 },
263}
264
Wei Jia4049f132018-01-22 10:37:31 -0800265cc_library {
Steven Moreland55506402017-06-07 18:18:09 -0700266 name: "libmedia",
Steven Moreland55506402017-06-07 18:18:09 -0700267
268 srcs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700269 "IDataSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700270 "BufferingSettings.cpp",
271 "mediaplayer.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700272 "IMediaHTTPConnection.cpp",
273 "IMediaHTTPService.cpp",
274 "IMediaExtractor.cpp",
275 "IMediaExtractorService.cpp",
276 "IMediaPlayerService.cpp",
277 "IMediaPlayerClient.cpp",
278 "IMediaRecorderClient.cpp",
279 "IMediaPlayer.cpp",
280 "IMediaRecorder.cpp",
281 "IMediaSource.cpp",
282 "IRemoteDisplay.cpp",
283 "IRemoteDisplayClient.cpp",
284 "IResourceManagerClient.cpp",
285 "IResourceManagerService.cpp",
286 "IStreamSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700287 "MediaUtils.cpp",
288 "Metadata.cpp",
289 "mediarecorder.cpp",
290 "IMediaMetadataRetriever.cpp",
291 "mediametadataretriever.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700292 "MediaScanner.cpp",
293 "MediaScannerClient.cpp",
294 "CharacterEncodingDetector.cpp",
295 "IMediaDeathNotifier.cpp",
296 "MediaProfiles.cpp",
297 "MediaResource.cpp",
298 "MediaResourcePolicy.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700299 "StringArray.cpp",
Marco Nelissen98603d82018-07-17 11:06:55 -0700300 "NdkMediaFormatPriv.cpp",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700301 "NdkMediaErrorPriv.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700302 ],
303
Dongwon Kang3e6d2452017-06-29 15:21:53 -0700304 aidl: {
305 local_include_dirs: ["aidl"],
306 export_aidl_headers: true,
307 },
308
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700309 header_libs: [
Christopher Ferris9d2e0082019-09-11 19:08:13 -0700310 "bionic_libc_platform_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700311 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700312 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100313 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700314 ],
315
316 export_header_lib_headers: [
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
Colin Crosseeb43632017-04-20 12:48:51 -0700322 shared_libs: [
Lajos Molnar79c49ae2018-05-24 23:40:20 -0700323 "android.hidl.token@1.0-utils",
Colin Crosseeb43632017-04-20 12:48:51 -0700324 "liblog",
325 "libcutils",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -0800326 "libprocessgroup",
Colin Crosseeb43632017-04-20 12:48:51 -0700327 "libutils",
328 "libbinder",
329 "libsonivox",
Victor Changb6826d92018-11-20 19:11:07 +0000330 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700331 "libexpat",
332 "libcamera_client",
333 "libstagefright_foundation",
334 "libgui",
335 "libdl",
Colin Crosseeb43632017-04-20 12:48:51 -0700336 "libaudioclient",
Dongwon Kanga42a62d2019-09-23 17:48:14 -0700337 "libmedia_codeclist",
Jae Shin8568cb92017-10-30 11:13:36 +0900338 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700339 ],
340
341 export_shared_lib_headers: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -0700342 "libaudioclient",
Colin Crosseeb43632017-04-20 12:48:51 -0700343 "libbinder",
Victor Changb6826d92018-11-20 19:11:07 +0000344 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700345 "libsonivox",
Jae Shin8568cb92017-10-30 11:13:36 +0900346 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700347 ],
348
Colin Crosseeb43632017-04-20 12:48:51 -0700349 static_libs: [
Dongwon Kangefe396f2017-10-17 17:23:30 -0700350 "libc_malloc_debug_backtrace", // for memory heap analysis
Colin Crosseeb43632017-04-20 12:48:51 -0700351 ],
352
Colin Crosseeb43632017-04-20 12:48:51 -0700353 export_include_dirs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700354 "include",
355 ],
Pawin Vongmasa255735a2017-07-19 11:24:56 -0700356
Colin Crosseeb43632017-04-20 12:48:51 -0700357 cflags: [
358 "-Werror",
359 "-Wno-error=deprecated-declarations",
360 "-Wall",
361 ],
362
Marco Nelissen7ffa0622017-12-15 16:07:12 -0800363 version_script: "exports.lds",
364
Colin Crosseeb43632017-04-20 12:48:51 -0700365 sanitize: {
366 misc_undefined: [
367 "unsigned-integer-overflow",
368 "signed-integer-overflow",
369 ],
370 cfi: true,
Colin Crosseeb43632017-04-20 12:48:51 -0700371 },
372}
S Vasudev Prasad6a8a8dd2020-04-21 14:42:14 +0530373
374cc_library_static {
375 name: "libmedia_ndkformatpriv",
376
377 host_supported: true,
378
379 srcs: [
380 "NdkMediaFormatPriv.cpp",
381 "NdkMediaErrorPriv.cpp",
382 ],
383
384 header_libs: [
385 "libstagefright_foundation_headers",
386 "libstagefright_headers",
387 "media_ndk_headers",
388 ],
389
390 cflags: [
391 "-DEXPORT=__attribute__((visibility(\"default\")))",
392 "-Werror",
393 "-Wall",
394 ],
395
396 export_include_dirs: ["include"],
397
398 target: {
399 darwin: {
400 enabled: false,
401 },
402 },
403
404 apex_available: ["com.android.media"],
405}