blob: 6a8f9816602d4ca15fa8068213603368a485d0d4 [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"],
5 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: [
33 "aidl/android/IGraphicBufferSource.aidl",
34 "aidl/android/IOMXBufferSource.aidl",
35 ],
36 path: "aidl",
37}
38
Jae Shin8568cb92017-10-30 11:13:36 +090039cc_library_shared {
40 name: "libmedia_omx",
41 vendor_available: true,
42 vndk: {
43 enabled: true,
44 },
Jiyong Parkfcd15372018-04-09 12:13:06 +090045 double_loadable: true,
Steven Moreland55506402017-06-07 18:18:09 -070046
47 srcs: [
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070048 ":libmedia_omx_aidl",
Steven Moreland55506402017-06-07 18:18:09 -070049
Steven Moreland55506402017-06-07 18:18:09 -070050 "IOMX.cpp",
51 "MediaCodecBuffer.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070052 "OMXBuffer.cpp",
53 "omx/1.0/WGraphicBufferSource.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070054 "omx/1.0/WOmxBufferSource.cpp",
55 "omx/1.0/WOmxNode.cpp",
56 "omx/1.0/WOmxObserver.cpp",
57 ],
Colin Crosseeb43632017-04-20 12:48:51 -070058
59 aidl: {
60 local_include_dirs: ["aidl"],
61 export_aidl_headers: true,
62 },
Marco Nelissen3230ed82019-09-26 11:20:54 -070063
Chong Zhang0fe4c472019-04-08 21:51:46 +000064 local_include_dirs: [
65 "include",
66 ],
Colin Crosseeb43632017-04-20 12:48:51 -070067
Steven Moreland55506402017-06-07 18:18:09 -070068 shared_libs: [
Steven Moreland55506402017-06-07 18:18:09 -070069 "android.hidl.token@1.0-utils",
70 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -070071 "libbinder",
72 "libcutils",
Steven Moreland55506402017-06-07 18:18:09 -070073 "libhidlbase",
Steven Moreland55506402017-06-07 18:18:09 -070074 "liblog",
75 "libstagefright_foundation",
76 "libui",
77 "libutils",
78 ],
Colin Crosseeb43632017-04-20 12:48:51 -070079
Steven Moreland55506402017-06-07 18:18:09 -070080 export_shared_lib_headers: [
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 "libstagefright_foundation",
84 "libui",
85 ],
86
87 header_libs: [
Chong Zhang0fe4c472019-04-08 21:51:46 +000088 "libstagefright_headers",
89 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -070090 ],
91
92 export_header_lib_headers: [
Chong Zhang0fe4c472019-04-08 21:51:46 +000093 "libstagefright_headers",
94 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -070095 ],
96
97 export_include_dirs: [
98 "aidl",
Chong Zhang0fe4c472019-04-08 21:51:46 +000099 "include",
100 ],
101
102 cflags: [
103 "-Werror",
104 "-Wno-error=deprecated-declarations",
105 "-Wall",
106 ],
107
108 sanitize: {
109 misc_undefined: [
110 "unsigned-integer-overflow",
111 "signed-integer-overflow",
112 ],
113 cfi: true,
114 },
115}
116
117
118cc_library_shared {
119 name: "libmedia_omx_client",
120
121 srcs: [
122 "omx/1.0/WOmx.cpp",
123 ],
124
125 local_include_dirs: [
126 "include",
127 ],
128
129 shared_libs: [
130 "libbinder",
131 "libcutils",
132 "libgui",
133 "libhidlbase",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000134 "liblog",
135 "libmedia_omx",
136 "libstagefright_foundation",
137 "libui",
138 "libutils",
139 ],
140
141 export_shared_lib_headers: [
142 "libgui",
143 "libmedia_omx",
144 "libstagefright_foundation",
145 "libui",
146 ],
147
148 header_libs: [
149 "libstagefright_headers",
150 "media_plugin_headers",
151 ],
152
153 export_header_lib_headers: [
154 "libstagefright_headers",
155 "media_plugin_headers",
156 ],
157
158 export_include_dirs: [
159 "include",
Steven Moreland55506402017-06-07 18:18:09 -0700160 ],
161
162 cflags: [
163 "-Werror",
164 "-Wno-error=deprecated-declarations",
165 "-Wall",
166 ],
167
168 sanitize: {
169 misc_undefined: [
170 "unsigned-integer-overflow",
171 "signed-integer-overflow",
172 ],
173 cfi: true,
Steven Moreland55506402017-06-07 18:18:09 -0700174 },
175}
176
Dongwon Kangefe396f2017-10-17 17:23:30 -0700177cc_library_static {
178 name: "libmedia_midiiowrapper",
179
180 srcs: ["MidiIoWrapper.cpp"],
181
182 static_libs: [
183 "libsonivox",
184 ],
185
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700186 header_libs: [
Marco Nelissen6b285942019-10-21 14:52:30 -0700187 "libmedia_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700188 "media_ndk_headers",
189 ],
190
Dongwon Kangefe396f2017-10-17 17:23:30 -0700191 cflags: [
192 "-Werror",
193 "-Wno-error=deprecated-declarations",
194 "-Wall",
195 ],
196
197 sanitize: {
198 misc_undefined: [
199 "unsigned-integer-overflow",
200 "signed-integer-overflow",
201 ],
202 cfi: true,
Dongwon Kangefe396f2017-10-17 17:23:30 -0700203 },
204}
205
Dongwon Kanga42a62d2019-09-23 17:48:14 -0700206cc_library_shared {
207 name: "libmedia_codeclist",
208
209 srcs: [
210 "IMediaCodecList.cpp",
211 "MediaCodecInfo.cpp",
212 ],
213
214 local_include_dirs: [
215 "include",
216 ],
217
218 shared_libs: [
219 "android.hardware.media.omx@1.0",
220 "libbinder",
221 "liblog",
222 "libstagefright_foundation",
223 "libutils",
224 ],
225
226 include_dirs: [
227 "system/libhidl/transport/token/1.0/utils/include",
228 ],
229
230 export_include_dirs: [
231 "include",
232 ],
233
234 cflags: [
235 "-Werror",
236 "-Wno-error=deprecated-declarations",
237 "-Wall",
238 ],
239
240 sanitize: {
241 misc_undefined: [
242 "unsigned-integer-overflow",
243 "signed-integer-overflow",
244 ],
245 cfi: true,
246 },
247}
248
Wei Jia4049f132018-01-22 10:37:31 -0800249cc_library {
Steven Moreland55506402017-06-07 18:18:09 -0700250 name: "libmedia",
Steven Moreland55506402017-06-07 18:18:09 -0700251
252 srcs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700253 "IDataSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700254 "BufferingSettings.cpp",
255 "mediaplayer.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700256 "IMediaHTTPConnection.cpp",
257 "IMediaHTTPService.cpp",
258 "IMediaExtractor.cpp",
259 "IMediaExtractorService.cpp",
260 "IMediaPlayerService.cpp",
261 "IMediaPlayerClient.cpp",
262 "IMediaRecorderClient.cpp",
263 "IMediaPlayer.cpp",
264 "IMediaRecorder.cpp",
265 "IMediaSource.cpp",
266 "IRemoteDisplay.cpp",
267 "IRemoteDisplayClient.cpp",
268 "IResourceManagerClient.cpp",
269 "IResourceManagerService.cpp",
270 "IStreamSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700271 "MediaUtils.cpp",
272 "Metadata.cpp",
273 "mediarecorder.cpp",
274 "IMediaMetadataRetriever.cpp",
275 "mediametadataretriever.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700276 "MediaScanner.cpp",
277 "MediaScannerClient.cpp",
278 "CharacterEncodingDetector.cpp",
279 "IMediaDeathNotifier.cpp",
280 "MediaProfiles.cpp",
281 "MediaResource.cpp",
282 "MediaResourcePolicy.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700283 "StringArray.cpp",
Marco Nelissen98603d82018-07-17 11:06:55 -0700284 "NdkMediaFormatPriv.cpp",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700285 "NdkMediaErrorPriv.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700286 ],
287
Dongwon Kang3e6d2452017-06-29 15:21:53 -0700288 aidl: {
289 local_include_dirs: ["aidl"],
290 export_aidl_headers: true,
291 },
292
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700293 header_libs: [
Christopher Ferris9d2e0082019-09-11 19:08:13 -0700294 "bionic_libc_platform_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700295 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700296 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100297 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700298 ],
299
300 export_header_lib_headers: [
301 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700302 "media_ndk_headers",
Orion Hodsond3fd1ae2020-04-03 09:42:02 +0100303 "jni_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700304 ],
305
Colin Crosseeb43632017-04-20 12:48:51 -0700306 shared_libs: [
Lajos Molnar79c49ae2018-05-24 23:40:20 -0700307 "android.hidl.token@1.0-utils",
Colin Crosseeb43632017-04-20 12:48:51 -0700308 "liblog",
309 "libcutils",
Suren Baghdasaryan7435e7d2018-12-19 17:09:28 -0800310 "libprocessgroup",
Colin Crosseeb43632017-04-20 12:48:51 -0700311 "libutils",
312 "libbinder",
313 "libsonivox",
Victor Changb6826d92018-11-20 19:11:07 +0000314 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700315 "libexpat",
316 "libcamera_client",
317 "libstagefright_foundation",
318 "libgui",
319 "libdl",
Colin Crosseeb43632017-04-20 12:48:51 -0700320 "libaudioclient",
Dongwon Kanga42a62d2019-09-23 17:48:14 -0700321 "libmedia_codeclist",
Jae Shin8568cb92017-10-30 11:13:36 +0900322 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700323 ],
324
325 export_shared_lib_headers: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -0700326 "libaudioclient",
Colin Crosseeb43632017-04-20 12:48:51 -0700327 "libbinder",
Victor Changb6826d92018-11-20 19:11:07 +0000328 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700329 "libsonivox",
Jae Shin8568cb92017-10-30 11:13:36 +0900330 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700331 ],
332
Colin Crosseeb43632017-04-20 12:48:51 -0700333 static_libs: [
Dongwon Kangefe396f2017-10-17 17:23:30 -0700334 "libc_malloc_debug_backtrace", // for memory heap analysis
Colin Crosseeb43632017-04-20 12:48:51 -0700335 ],
336
Colin Crosseeb43632017-04-20 12:48:51 -0700337 export_include_dirs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700338 "include",
339 ],
Pawin Vongmasa255735a2017-07-19 11:24:56 -0700340
Colin Crosseeb43632017-04-20 12:48:51 -0700341 cflags: [
342 "-Werror",
343 "-Wno-error=deprecated-declarations",
344 "-Wall",
345 ],
346
Marco Nelissen7ffa0622017-12-15 16:07:12 -0800347 version_script: "exports.lds",
348
Colin Crosseeb43632017-04-20 12:48:51 -0700349 sanitize: {
350 misc_undefined: [
351 "unsigned-integer-overflow",
352 "signed-integer-overflow",
353 ],
354 cfi: true,
Colin Crosseeb43632017-04-20 12:48:51 -0700355 },
356}