blob: 8a6a5dce1084cfdda68ba62305f6dcd007a26805 [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 },
27 apex_available: ["com.android.media"],
28}
29
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070030filegroup {
31 name: "libmedia_omx_aidl",
32 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070033 "aidl/android/IOMXBufferSource.aidl",
34 ],
35 path: "aidl",
36}
37
Marco Nelissendab79b32019-11-18 08:25:47 -080038filegroup {
39 name: "mediaextractorservice_aidl",
40 srcs: [
41 "aidl/android/IMediaExtractorService.aidl",
42 ],
43 path: "aidl",
44}
45
Chong Zhang181e6952019-10-09 13:23:39 -070046aidl_interface {
47 name: "resourcemanager_aidl_interface",
Jiyong Park1f2151f2020-04-13 12:52:14 +090048 unstable: true,
Chong Zhang181e6952019-10-09 13:23:39 -070049 local_include_dir: "aidl",
50 srcs: [
51 "aidl/android/media/IResourceManagerClient.aidl",
52 "aidl/android/media/IResourceManagerService.aidl",
53 "aidl/android/media/MediaResourceType.aidl",
54 "aidl/android/media/MediaResourceSubType.aidl",
55 "aidl/android/media/MediaResourceParcel.aidl",
56 "aidl/android/media/MediaResourcePolicyParcel.aidl",
57 ],
Chong Zhang181e6952019-10-09 13:23:39 -070058}
59
Jae Shin8568cb92017-10-30 11:13:36 +090060cc_library_shared {
61 name: "libmedia_omx",
62 vendor_available: true,
63 vndk: {
64 enabled: true,
65 },
Jiyong Parkfcd15372018-04-09 12:13:06 +090066 double_loadable: true,
Steven Moreland55506402017-06-07 18:18:09 -070067
68 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070069 ":libmedia_omx_aidl",
Steven Moreland55506402017-06-07 18:18:09 -070070
Steven Moreland55506402017-06-07 18:18:09 -070071 "IOMX.cpp",
72 "MediaCodecBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070073 "OMXBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070074 "omx/1.0/WOmxBufferSource.cpp",
75 "omx/1.0/WOmxNode.cpp",
76 "omx/1.0/WOmxObserver.cpp",
77 ],
Colin Crosseeb43632017-04-20 12:48:51 -070078
79 aidl: {
80 local_include_dirs: ["aidl"],
81 export_aidl_headers: true,
82 },
Marco Nelissencf90b492019-09-26 11:20:54 -070083
Chong Zhang0fe4c472019-04-08 21:51:46 +000084 local_include_dirs: [
85 "include",
86 ],
Colin Crosseeb43632017-04-20 12:48:51 -070087
Steven Moreland55506402017-06-07 18:18:09 -070088 shared_libs: [
Steven Moreland55506402017-06-07 18:18:09 -070089 "android.hidl.token@1.0-utils",
90 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -070091 "libbinder",
92 "libcutils",
Steven Moreland55506402017-06-07 18:18:09 -070093 "libhidlbase",
Steven Moreland55506402017-06-07 18:18:09 -070094 "liblog",
95 "libstagefright_foundation",
96 "libui",
97 "libutils",
98 ],
Colin Crosseeb43632017-04-20 12:48:51 -070099
Steven Moreland55506402017-06-07 18:18:09 -0700100 export_shared_lib_headers: [
Steven Moreland55506402017-06-07 18:18:09 -0700101 "android.hidl.token@1.0-utils",
102 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -0700103 "libstagefright_foundation",
104 "libui",
105 ],
106
107 header_libs: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000108 "libstagefright_headers",
109 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700110 ],
111
112 export_header_lib_headers: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000113 "libstagefright_headers",
114 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700115 ],
116
117 export_include_dirs: [
118 "aidl",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000119 "include",
120 ],
121
122 cflags: [
123 "-Werror",
124 "-Wno-error=deprecated-declarations",
125 "-Wall",
126 ],
127
128 sanitize: {
129 misc_undefined: [
130 "unsigned-integer-overflow",
131 "signed-integer-overflow",
132 ],
133 cfi: true,
134 },
135}
136
Chong Zhang0fe4c472019-04-08 21:51:46 +0000137cc_library_shared {
138 name: "libmedia_omx_client",
139
140 srcs: [
141 "omx/1.0/WOmx.cpp",
142 ],
143
144 local_include_dirs: [
145 "include",
146 ],
147
148 shared_libs: [
149 "libbinder",
150 "libcutils",
151 "libgui",
152 "libhidlbase",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000153 "liblog",
154 "libmedia_omx",
155 "libstagefright_foundation",
156 "libui",
157 "libutils",
158 ],
159
160 export_shared_lib_headers: [
161 "libgui",
162 "libmedia_omx",
163 "libstagefright_foundation",
164 "libui",
165 ],
166
167 header_libs: [
168 "libstagefright_headers",
169 "media_plugin_headers",
170 ],
171
172 export_header_lib_headers: [
173 "libstagefright_headers",
174 "media_plugin_headers",
175 ],
176
177 export_include_dirs: [
178 "include",
Steven Moreland55506402017-06-07 18:18:09 -0700179 ],
180
181 cflags: [
182 "-Werror",
183 "-Wno-error=deprecated-declarations",
184 "-Wall",
185 ],
186
187 sanitize: {
188 misc_undefined: [
189 "unsigned-integer-overflow",
190 "signed-integer-overflow",
191 ],
192 cfi: true,
Steven Moreland55506402017-06-07 18:18:09 -0700193 },
194}
195
Dongwon Kangefe396f2017-10-17 17:23:30 -0700196cc_library_static {
197 name: "libmedia_midiiowrapper",
198
199 srcs: ["MidiIoWrapper.cpp"],
200
201 static_libs: [
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700202 "libsonivoxwithoutjet",
Dongwon Kangefe396f2017-10-17 17:23:30 -0700203 ],
204
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700205 header_libs: [
Marco Nelissen6b285942019-10-21 14:52:30 -0700206 "libmedia_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700207 "media_ndk_headers",
208 ],
209
Dongwon Kangefe396f2017-10-17 17:23:30 -0700210 cflags: [
211 "-Werror",
212 "-Wno-error=deprecated-declarations",
213 "-Wall",
214 ],
215
216 sanitize: {
217 misc_undefined: [
218 "unsigned-integer-overflow",
219 "signed-integer-overflow",
220 ],
221 cfi: true,
Dongwon Kangefe396f2017-10-17 17:23:30 -0700222 },
223}
224
Dongwon Kang23a180b2019-09-23 17:48:14 -0700225cc_library_shared {
226 name: "libmedia_codeclist",
227
228 srcs: [
229 "IMediaCodecList.cpp",
230 "MediaCodecInfo.cpp",
231 ],
232
233 local_include_dirs: [
234 "include",
235 ],
236
237 shared_libs: [
238 "android.hardware.media.omx@1.0",
239 "libbinder",
240 "liblog",
241 "libstagefright_foundation",
242 "libutils",
243 ],
244
245 include_dirs: [
246 "system/libhidl/transport/token/1.0/utils/include",
247 ],
248
249 export_include_dirs: [
250 "include",
251 ],
252
253 cflags: [
254 "-Werror",
255 "-Wno-error=deprecated-declarations",
256 "-Wall",
257 ],
258
259 sanitize: {
260 misc_undefined: [
261 "unsigned-integer-overflow",
262 "signed-integer-overflow",
263 ],
264 cfi: true,
265 },
266}
267
Wei Jia4049f132018-01-22 10:37:31 -0800268cc_library {
Steven Moreland55506402017-06-07 18:18:09 -0700269 name: "libmedia",
Steven Moreland55506402017-06-07 18:18:09 -0700270
271 srcs: [
Marco Nelissendab79b32019-11-18 08:25:47 -0800272 ":mediaextractorservice_aidl",
Colin Crosseeb43632017-04-20 12:48:51 -0700273 "IDataSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700274 "BufferingSettings.cpp",
275 "mediaplayer.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700276 "IMediaHTTPConnection.cpp",
277 "IMediaHTTPService.cpp",
278 "IMediaExtractor.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700279 "IMediaPlayerService.cpp",
280 "IMediaPlayerClient.cpp",
281 "IMediaRecorderClient.cpp",
282 "IMediaPlayer.cpp",
283 "IMediaRecorder.cpp",
284 "IMediaSource.cpp",
285 "IRemoteDisplay.cpp",
286 "IRemoteDisplayClient.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700287 "IStreamSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700288 "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: [
310 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700311 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100312 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700313 ],
314
315 export_header_lib_headers: [
316 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700317 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100318 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700319 ],
320
Colin Crosseeb43632017-04-20 12:48:51 -0700321 shared_libs: [
Lajos Molnar79c49ae2018-05-24 23:40:20 -0700322 "android.hidl.token@1.0-utils",
Colin Crosseeb43632017-04-20 12:48:51 -0700323 "liblog",
324 "libcutils",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -0800325 "libprocessgroup",
Colin Crosseeb43632017-04-20 12:48:51 -0700326 "libutils",
327 "libbinder",
Chong Zhangfdd512a2019-11-22 11:03:14 -0800328 "libbinder_ndk",
Marco Nelissen1ba10c42020-04-22 15:41:43 -0700329 //"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 Kang23a180b2019-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",
Marco Nelissen1ba10c42020-04-22 15:41:43 -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: [
Chong Zhangfdd512a2019-11-22 11:03:14 -0800350 "resourcemanager_aidl_interface-ndk_platform",
Chong Zhang181e6952019-10-09 13:23:39 -0700351 ],
352
353 export_static_lib_headers: [
Chong Zhangfdd512a2019-11-22 11:03:14 -0800354 "resourcemanager_aidl_interface-ndk_platform",
Colin Crosseeb43632017-04-20 12:48:51 -0700355 ],
356
Colin Crosseeb43632017-04-20 12:48:51 -0700357 export_include_dirs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700358 "include",
359 ],
Pawin Vongmasa255735a2017-07-19 11:24:56 -0700360
Colin Crosseeb43632017-04-20 12:48:51 -0700361 cflags: [
362 "-Werror",
363 "-Wno-error=deprecated-declarations",
364 "-Wall",
365 ],
366
Marco Nelissen7ffa0622017-12-15 16:07:12 -0800367 version_script: "exports.lds",
368
Colin Crosseeb43632017-04-20 12:48:51 -0700369 sanitize: {
370 misc_undefined: [
371 "unsigned-integer-overflow",
372 "signed-integer-overflow",
373 ],
374 cfi: true,
Colin Crosseeb43632017-04-20 12:48:51 -0700375 },
376}