blob: 76f3ff851646c983450cb8d94554423960cd4c74 [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
Kevin Rocard07be14f2018-01-24 06:14:03 +000018cc_library {
19 name: "libmedia_helper",
20 vendor_available: true,
21 vndk: {
22 enabled: true,
23 },
Jooyung Han2334e002019-01-18 18:06:49 +090024 double_loadable: true,
Eric Laurent39b09b52018-06-29 12:24:40 -070025 srcs: ["AudioParameter.cpp", "TypeConverter.cpp"],
Dan Willemsen442a2ee2016-08-26 17:52:29 -070026 cflags: [
27 "-Werror",
28 "-Wno-error=deprecated-declarations",
29 "-Wall",
30 ],
Marco Nelissen75226172016-11-16 14:10:52 -080031 shared_libs: ["libutils", "liblog"],
Yifan Hong525eac32017-06-12 14:07:04 -070032 header_libs: [
33 "libmedia_headers",
34 "libaudioclient_headers",
Kevin Rocardf8ad7f82018-01-17 15:57:39 -080035 "libaudio_system_headers",
36 ],
Mickey Keeleyb1243bf2018-05-21 09:08:22 -070037 export_header_lib_headers: [
38 "libmedia_headers",
39 ],
Kevin Rocard07be14f2018-01-24 06:14:03 +000040 clang: true,
Kevin Rocardf8ad7f82018-01-17 15:57:39 -080041}
Colin Crosseeb43632017-04-20 12:48:51 -070042
Dan Willemsenfaeab0f2018-09-14 21:17:46 -070043filegroup {
44 name: "libmedia_omx_aidl",
45 srcs: [
46 "aidl/android/IGraphicBufferSource.aidl",
47 "aidl/android/IOMXBufferSource.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
63 "IMediaCodecList.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070064 "IOMX.cpp",
65 "MediaCodecBuffer.cpp",
66 "MediaCodecInfo.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070067 "OMXBuffer.cpp",
68 "omx/1.0/WGraphicBufferSource.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070069 "omx/1.0/WOmxBufferSource.cpp",
70 "omx/1.0/WOmxNode.cpp",
71 "omx/1.0/WOmxObserver.cpp",
72 ],
Colin Crosseeb43632017-04-20 12:48:51 -070073
74 aidl: {
75 local_include_dirs: ["aidl"],
76 export_aidl_headers: true,
77 },
Marco Nelissen3230ed82019-09-26 11:20:54 -070078
Chong Zhang0fe4c472019-04-08 21:51:46 +000079 local_include_dirs: [
80 "include",
81 ],
Colin Crosseeb43632017-04-20 12:48:51 -070082
Steven Moreland55506402017-06-07 18:18:09 -070083 shared_libs: [
Steven Moreland55506402017-06-07 18:18:09 -070084 "android.hidl.token@1.0-utils",
85 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -070086 "libbinder",
87 "libcutils",
Steven Moreland55506402017-06-07 18:18:09 -070088 "libhidlbase",
Steven Moreland55506402017-06-07 18:18:09 -070089 "liblog",
90 "libstagefright_foundation",
91 "libui",
92 "libutils",
93 ],
Colin Crosseeb43632017-04-20 12:48:51 -070094
Steven Moreland55506402017-06-07 18:18:09 -070095 export_shared_lib_headers: [
Steven Moreland55506402017-06-07 18:18:09 -070096 "android.hidl.token@1.0-utils",
97 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -070098 "libstagefright_foundation",
99 "libui",
100 ],
101
102 header_libs: [
Chong Zhang0fe4c472019-04-08 21:51:46 +0000103 "libstagefright_headers",
104 "media_plugin_headers",
Steven Moreland55506402017-06-07 18:18:09 -0700105 ],
106
107 export_header_lib_headers: [
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_include_dirs: [
113 "aidl",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000114 "include",
115 ],
116
117 cflags: [
118 "-Werror",
119 "-Wno-error=deprecated-declarations",
120 "-Wall",
121 ],
122
123 sanitize: {
124 misc_undefined: [
125 "unsigned-integer-overflow",
126 "signed-integer-overflow",
127 ],
128 cfi: true,
129 },
130}
131
132
133cc_library_shared {
134 name: "libmedia_omx_client",
135
136 srcs: [
137 "omx/1.0/WOmx.cpp",
138 ],
139
140 local_include_dirs: [
141 "include",
142 ],
143
144 shared_libs: [
145 "libbinder",
146 "libcutils",
147 "libgui",
148 "libhidlbase",
Chong Zhang0fe4c472019-04-08 21:51:46 +0000149 "liblog",
150 "libmedia_omx",
151 "libstagefright_foundation",
152 "libui",
153 "libutils",
154 ],
155
156 export_shared_lib_headers: [
157 "libgui",
158 "libmedia_omx",
159 "libstagefright_foundation",
160 "libui",
161 ],
162
163 header_libs: [
164 "libstagefright_headers",
165 "media_plugin_headers",
166 ],
167
168 export_header_lib_headers: [
169 "libstagefright_headers",
170 "media_plugin_headers",
171 ],
172
173 export_include_dirs: [
174 "include",
Steven Moreland55506402017-06-07 18:18:09 -0700175 ],
176
177 cflags: [
178 "-Werror",
179 "-Wno-error=deprecated-declarations",
180 "-Wall",
181 ],
182
183 sanitize: {
184 misc_undefined: [
185 "unsigned-integer-overflow",
186 "signed-integer-overflow",
187 ],
188 cfi: true,
Steven Moreland55506402017-06-07 18:18:09 -0700189 },
190}
191
Dongwon Kangefe396f2017-10-17 17:23:30 -0700192cc_library_static {
193 name: "libmedia_midiiowrapper",
194
195 srcs: ["MidiIoWrapper.cpp"],
196
197 static_libs: [
198 "libsonivox",
199 ],
200
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700201 header_libs: [
202 "media_ndk_headers",
203 ],
204
Dongwon Kangefe396f2017-10-17 17:23:30 -0700205 cflags: [
206 "-Werror",
207 "-Wno-error=deprecated-declarations",
208 "-Wall",
209 ],
210
211 sanitize: {
212 misc_undefined: [
213 "unsigned-integer-overflow",
214 "signed-integer-overflow",
215 ],
216 cfi: true,
Dongwon Kangefe396f2017-10-17 17:23:30 -0700217 },
218}
219
Dongwon Kanga42a62d2019-09-23 17:48:14 -0700220cc_library_shared {
221 name: "libmedia_codeclist",
222
223 srcs: [
224 "IMediaCodecList.cpp",
225 "MediaCodecInfo.cpp",
226 ],
227
228 local_include_dirs: [
229 "include",
230 ],
231
232 shared_libs: [
233 "android.hardware.media.omx@1.0",
234 "libbinder",
235 "liblog",
236 "libstagefright_foundation",
237 "libutils",
238 ],
239
240 include_dirs: [
241 "system/libhidl/transport/token/1.0/utils/include",
242 ],
243
244 export_include_dirs: [
245 "include",
246 ],
247
248 cflags: [
249 "-Werror",
250 "-Wno-error=deprecated-declarations",
251 "-Wall",
252 ],
253
254 sanitize: {
255 misc_undefined: [
256 "unsigned-integer-overflow",
257 "signed-integer-overflow",
258 ],
259 cfi: true,
260 },
261}
262
Wei Jia4049f132018-01-22 10:37:31 -0800263cc_library {
Steven Moreland55506402017-06-07 18:18:09 -0700264 name: "libmedia",
Steven Moreland55506402017-06-07 18:18:09 -0700265
266 srcs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700267 "IDataSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700268 "BufferingSettings.cpp",
269 "mediaplayer.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700270 "IMediaHTTPConnection.cpp",
271 "IMediaHTTPService.cpp",
272 "IMediaExtractor.cpp",
273 "IMediaExtractorService.cpp",
274 "IMediaPlayerService.cpp",
275 "IMediaPlayerClient.cpp",
276 "IMediaRecorderClient.cpp",
277 "IMediaPlayer.cpp",
278 "IMediaRecorder.cpp",
279 "IMediaSource.cpp",
280 "IRemoteDisplay.cpp",
281 "IRemoteDisplayClient.cpp",
282 "IResourceManagerClient.cpp",
283 "IResourceManagerService.cpp",
284 "IStreamSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700285 "MediaUtils.cpp",
286 "Metadata.cpp",
287 "mediarecorder.cpp",
288 "IMediaMetadataRetriever.cpp",
289 "mediametadataretriever.cpp",
290 "MidiDeviceInfo.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700291 "JetPlayer.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 "Visualizer.cpp",
300 "StringArray.cpp",
Marco Nelissen98603d82018-07-17 11:06:55 -0700301 "NdkMediaFormatPriv.cpp",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700302 "NdkMediaErrorPriv.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700303 ],
304
Dongwon Kang3e6d2452017-06-29 15:21:53 -0700305 aidl: {
306 local_include_dirs: ["aidl"],
307 export_aidl_headers: true,
308 },
309
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700310 header_libs: [
Christopher Ferris9d2e0082019-09-11 19:08:13 -0700311 "bionic_libc_platform_headers",
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700312 "libstagefright_headers",
Marco Nelissen5dcf85a2018-10-11 09:49:02 -0700313 "media_ndk_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",
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",
328 "libsonivox",
Victor Changb6826d92018-11-20 19:11:07 +0000329 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700330 "libexpat",
331 "libcamera_client",
332 "libstagefright_foundation",
333 "libgui",
334 "libdl",
Kevin Rocard07be14f2018-01-24 06:14:03 +0000335 "libaudioutils",
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
351 "libmedia_midiiowrapper",
Colin Crosseeb43632017-04-20 12:48:51 -0700352 ],
353
Colin Crosseeb43632017-04-20 12:48:51 -0700354 export_include_dirs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700355 "include",
356 ],
Pawin Vongmasa255735a2017-07-19 11:24:56 -0700357
Colin Crosseeb43632017-04-20 12:48:51 -0700358 cflags: [
359 "-Werror",
360 "-Wno-error=deprecated-declarations",
361 "-Wall",
362 ],
363
Marco Nelissen7ffa0622017-12-15 16:07:12 -0800364 version_script: "exports.lds",
365
Colin Crosseeb43632017-04-20 12:48:51 -0700366 sanitize: {
367 misc_undefined: [
368 "unsigned-integer-overflow",
369 "signed-integer-overflow",
370 ],
371 cfi: true,
Colin Crosseeb43632017-04-20 12:48:51 -0700372 },
373}