blob: 818548df57f69c123b1aff620f4065fb89877803 [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
Chong Zhang181e6952019-10-09 13:23:39 -070052aidl_interface {
53 name: "resourcemanager_aidl_interface",
Jiyong Park1f2151f2020-04-13 12:52:14 +090054 unstable: true,
Chong Zhang181e6952019-10-09 13:23:39 -070055 local_include_dir: "aidl",
56 srcs: [
57 "aidl/android/media/IResourceManagerClient.aidl",
58 "aidl/android/media/IResourceManagerService.aidl",
59 "aidl/android/media/MediaResourceType.aidl",
60 "aidl/android/media/MediaResourceSubType.aidl",
61 "aidl/android/media/MediaResourceParcel.aidl",
62 "aidl/android/media/MediaResourcePolicyParcel.aidl",
63 ],
Chong Zhang181e6952019-10-09 13:23:39 -070064}
65
Jae Shin8568cb92017-10-30 11:13:36 +090066cc_library_shared {
67 name: "libmedia_omx",
68 vendor_available: true,
69 vndk: {
70 enabled: true,
71 },
Jiyong Parkfcd15372018-04-09 12:13:06 +090072 double_loadable: true,
Steven Moreland55506402017-06-07 18:18:09 -070073
74 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070075 ":libmedia_omx_aidl",
Steven Moreland55506402017-06-07 18:18:09 -070076
Steven Moreland55506402017-06-07 18:18:09 -070077 "IOMX.cpp",
78 "MediaCodecBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070079 "OMXBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070080 "omx/1.0/WOmxBufferSource.cpp",
81 "omx/1.0/WOmxNode.cpp",
82 "omx/1.0/WOmxObserver.cpp",
83 ],
Colin Crosseeb43632017-04-20 12:48:51 -070084
85 aidl: {
86 local_include_dirs: ["aidl"],
87 export_aidl_headers: true,
88 },
Marco Nelissencf90b492019-09-26 11:20:54 -070089
Chong Zhang0fe4c472019-04-08 21:51:46 +000090 local_include_dirs: [
91 "include",
92 ],
Colin Crosseeb43632017-04-20 12:48:51 -070093
Steven Moreland55506402017-06-07 18:18:09 -070094 shared_libs: [
Steven Moreland55506402017-06-07 18:18:09 -070095 "android.hidl.token@1.0-utils",
96 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -070097 "libbinder",
98 "libcutils",
Steven Moreland55506402017-06-07 18:18:09 -070099 "libhidlbase",
Steven Moreland55506402017-06-07 18:18:09 -0700100 "liblog",
101 "libstagefright_foundation",
102 "libui",
103 "libutils",
104 ],
Colin Crosseeb43632017-04-20 12:48:51 -0700105
Steven Moreland55506402017-06-07 18:18:09 -0700106 export_shared_lib_headers: [
Steven Moreland55506402017-06-07 18:18:09 -0700107 "android.hidl.token@1.0-utils",
108 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -0700109 "libstagefright_foundation",
110 "libui",
111 ],
112
113 header_libs: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000114 "libstagefright_headers",
115 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700116 ],
117
118 export_header_lib_headers: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000119 "libstagefright_headers",
120 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700121 ],
122
123 export_include_dirs: [
124 "aidl",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000125 "include",
126 ],
127
128 cflags: [
129 "-Werror",
130 "-Wno-error=deprecated-declarations",
131 "-Wall",
132 ],
133
134 sanitize: {
135 misc_undefined: [
136 "unsigned-integer-overflow",
137 "signed-integer-overflow",
138 ],
139 cfi: true,
140 },
141}
142
Chong Zhang0fe4c472019-04-08 21:51:46 +0000143cc_library_shared {
144 name: "libmedia_omx_client",
145
146 srcs: [
147 "omx/1.0/WOmx.cpp",
148 ],
149
150 local_include_dirs: [
151 "include",
152 ],
153
154 shared_libs: [
155 "libbinder",
156 "libcutils",
157 "libgui",
158 "libhidlbase",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000159 "liblog",
160 "libmedia_omx",
161 "libstagefright_foundation",
162 "libui",
163 "libutils",
164 ],
165
166 export_shared_lib_headers: [
167 "libgui",
168 "libmedia_omx",
169 "libstagefright_foundation",
170 "libui",
171 ],
172
173 header_libs: [
174 "libstagefright_headers",
175 "media_plugin_headers",
176 ],
177
178 export_header_lib_headers: [
179 "libstagefright_headers",
180 "media_plugin_headers",
181 ],
182
183 export_include_dirs: [
184 "include",
Steven Moreland55506402017-06-07 18:18:09 -0700185 ],
186
187 cflags: [
188 "-Werror",
189 "-Wno-error=deprecated-declarations",
190 "-Wall",
191 ],
192
193 sanitize: {
194 misc_undefined: [
195 "unsigned-integer-overflow",
196 "signed-integer-overflow",
197 ],
198 cfi: true,
Steven Moreland55506402017-06-07 18:18:09 -0700199 },
200}
201
Dongwon Kangefe396f2017-10-17 17:23:30 -0700202cc_library_static {
203 name: "libmedia_midiiowrapper",
204
Jooyung Hane3cf41a2020-04-30 04:22:22 +0900205 min_sdk_version: "29",
206
Dongwon Kangefe396f2017-10-17 17:23:30 -0700207 srcs: ["MidiIoWrapper.cpp"],
208
209 static_libs: [
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700210 "libsonivoxwithoutjet",
Dongwon Kangefe396f2017-10-17 17:23:30 -0700211 ],
212
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700213 header_libs: [
Marco Nelissen6b285942019-10-21 14:52:30 -0700214 "libmedia_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700215 "media_ndk_headers",
216 ],
217
Dongwon Kangefe396f2017-10-17 17:23:30 -0700218 cflags: [
219 "-Werror",
220 "-Wno-error=deprecated-declarations",
221 "-Wall",
222 ],
223
224 sanitize: {
225 misc_undefined: [
226 "unsigned-integer-overflow",
227 "signed-integer-overflow",
228 ],
229 cfi: true,
Dongwon Kangefe396f2017-10-17 17:23:30 -0700230 },
231}
232
Dongwon Kang23a180b2019-09-23 17:48:14 -0700233cc_library_shared {
234 name: "libmedia_codeclist",
235
236 srcs: [
237 "IMediaCodecList.cpp",
238 "MediaCodecInfo.cpp",
239 ],
240
241 local_include_dirs: [
242 "include",
243 ],
244
245 shared_libs: [
246 "android.hardware.media.omx@1.0",
247 "libbinder",
248 "liblog",
249 "libstagefright_foundation",
250 "libutils",
251 ],
252
253 include_dirs: [
254 "system/libhidl/transport/token/1.0/utils/include",
255 ],
256
257 export_include_dirs: [
258 "include",
259 ],
260
261 cflags: [
262 "-Werror",
263 "-Wno-error=deprecated-declarations",
264 "-Wall",
265 ],
266
267 sanitize: {
268 misc_undefined: [
269 "unsigned-integer-overflow",
270 "signed-integer-overflow",
271 ],
272 cfi: true,
273 },
274}
275
Wei Jia4049f132018-01-22 10:37:31 -0800276cc_library {
Steven Moreland55506402017-06-07 18:18:09 -0700277 name: "libmedia",
Steven Moreland55506402017-06-07 18:18:09 -0700278
279 srcs: [
Marco Nelissendab79b32019-11-18 08:25:47 -0800280 ":mediaextractorservice_aidl",
Colin Crosseeb43632017-04-20 12:48:51 -0700281 "IDataSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700282 "BufferingSettings.cpp",
283 "mediaplayer.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700284 "IMediaHTTPConnection.cpp",
285 "IMediaHTTPService.cpp",
286 "IMediaExtractor.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700287 "IMediaPlayerService.cpp",
288 "IMediaPlayerClient.cpp",
289 "IMediaRecorderClient.cpp",
290 "IMediaPlayer.cpp",
291 "IMediaRecorder.cpp",
292 "IMediaSource.cpp",
293 "IRemoteDisplay.cpp",
294 "IRemoteDisplayClient.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700295 "IStreamSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700296 "Metadata.cpp",
297 "mediarecorder.cpp",
298 "IMediaMetadataRetriever.cpp",
299 "mediametadataretriever.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700300 "MediaScanner.cpp",
301 "MediaScannerClient.cpp",
302 "CharacterEncodingDetector.cpp",
303 "IMediaDeathNotifier.cpp",
304 "MediaProfiles.cpp",
305 "MediaResource.cpp",
306 "MediaResourcePolicy.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700307 "StringArray.cpp",
Marco Nelissen98603d82018-07-17 11:06:55 -0700308 "NdkMediaFormatPriv.cpp",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700309 "NdkMediaErrorPriv.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700310 ],
311
Dongwon Kang3e6d2452017-06-29 15:21:53 -0700312 aidl: {
313 local_include_dirs: ["aidl"],
314 export_aidl_headers: true,
315 },
316
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700317 header_libs: [
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
323 export_header_lib_headers: [
324 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700325 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100326 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700327 ],
328
Colin Crosseeb43632017-04-20 12:48:51 -0700329 shared_libs: [
Lajos Molnar79c49ae2018-05-24 23:40:20 -0700330 "android.hidl.token@1.0-utils",
Colin Crosseeb43632017-04-20 12:48:51 -0700331 "liblog",
332 "libcutils",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -0800333 "libprocessgroup",
Colin Crosseeb43632017-04-20 12:48:51 -0700334 "libutils",
335 "libbinder",
Chong Zhangfdd512a2019-11-22 11:03:14 -0800336 "libbinder_ndk",
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700337 //"libsonivox",
Victor Changb6826d92018-11-20 19:11:07 +0000338 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700339 "libexpat",
340 "libcamera_client",
341 "libstagefright_foundation",
342 "libgui",
343 "libdl",
Colin Crosseeb43632017-04-20 12:48:51 -0700344 "libaudioclient",
Dongwon Kang23a180b2019-09-23 17:48:14 -0700345 "libmedia_codeclist",
Jae Shin8568cb92017-10-30 11:13:36 +0900346 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700347 ],
348
349 export_shared_lib_headers: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -0700350 "libaudioclient",
Colin Crosseeb43632017-04-20 12:48:51 -0700351 "libbinder",
Victor Changb6826d92018-11-20 19:11:07 +0000352 "libandroidicu",
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700353 //"libsonivox",
Jae Shin8568cb92017-10-30 11:13:36 +0900354 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700355 ],
356
Colin Crosseeb43632017-04-20 12:48:51 -0700357 static_libs: [
Chong Zhangfdd512a2019-11-22 11:03:14 -0800358 "resourcemanager_aidl_interface-ndk_platform",
Chong Zhang181e6952019-10-09 13:23:39 -0700359 ],
360
361 export_static_lib_headers: [
Chong Zhangfdd512a2019-11-22 11:03:14 -0800362 "resourcemanager_aidl_interface-ndk_platform",
Colin Crosseeb43632017-04-20 12:48:51 -0700363 ],
364
Colin Crosseeb43632017-04-20 12:48:51 -0700365 export_include_dirs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700366 "include",
367 ],
Pawin Vongmasa255735a2017-07-19 11:24:56 -0700368
Colin Crosseeb43632017-04-20 12:48:51 -0700369 cflags: [
370 "-Werror",
371 "-Wno-error=deprecated-declarations",
372 "-Wall",
373 ],
374
Marco Nelissen7ffa0622017-12-15 16:07:12 -0800375 version_script: "exports.lds",
376
Colin Crosseeb43632017-04-20 12:48:51 -0700377 sanitize: {
378 misc_undefined: [
379 "unsigned-integer-overflow",
380 "signed-integer-overflow",
381 ],
382 cfi: true,
Colin Crosseeb43632017-04-20 12:48:51 -0700383 },
384}
S Vasudev Prasad6a8a8dd2020-04-21 14:42:14 +0530385
386cc_library_static {
387 name: "libmedia_ndkformatpriv",
388
389 host_supported: true,
390
391 srcs: [
392 "NdkMediaFormatPriv.cpp",
393 "NdkMediaErrorPriv.cpp",
394 ],
395
396 header_libs: [
397 "libstagefright_foundation_headers",
398 "libstagefright_headers",
399 "media_ndk_headers",
400 ],
401
402 cflags: [
403 "-DEXPORT=__attribute__((visibility(\"default\")))",
404 "-Werror",
405 "-Wall",
406 ],
407
408 export_include_dirs: ["include"],
409
410 target: {
411 darwin: {
412 enabled: false,
413 },
414 },
415
416 apex_available: ["com.android.media"],
417}