blob: 7deab05cf47a7f21b29eab7c63b033571116cad3 [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 Han605a7af2019-01-18 18:06:49 +090024 double_loadable: true,
Eric Laurent3528c932018-02-23 17:17:22 -080025 srcs: ["AudioParameter.cpp", "TypeConverter.cpp", "TimeCheck.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 ],
Kevin Rocard07be14f2018-01-24 06:14:03 +000037 clang: true,
Kevin Rocardf8ad7f82018-01-17 15:57:39 -080038}
Colin Crosseeb43632017-04-20 12:48:51 -070039
Jae Shin8568cb92017-10-30 11:13:36 +090040cc_library_shared {
41 name: "libmedia_omx",
42 vendor_available: true,
43 vndk: {
44 enabled: true,
45 },
Jiyong Parkb3358a72018-04-21 11:40:21 +090046 double_loadable: true,
Steven Moreland55506402017-06-07 18:18:09 -070047
48 srcs: [
49 "aidl/android/IGraphicBufferSource.aidl",
50 "aidl/android/IOMXBufferSource.aidl",
51
52 "IMediaCodecList.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070053 "IOMX.cpp",
54 "MediaCodecBuffer.cpp",
55 "MediaCodecInfo.cpp",
Steven Moreland55506402017-06-07 18:18:09 -070056 "OMXBuffer.cpp",
57 "omx/1.0/WGraphicBufferSource.cpp",
58 "omx/1.0/WOmx.cpp",
59 "omx/1.0/WOmxBufferSource.cpp",
60 "omx/1.0/WOmxNode.cpp",
61 "omx/1.0/WOmxObserver.cpp",
62 ],
Colin Crosseeb43632017-04-20 12:48:51 -070063
64 aidl: {
65 local_include_dirs: ["aidl"],
66 export_aidl_headers: true,
67 },
68
Steven Moreland55506402017-06-07 18:18:09 -070069 shared_libs: [
Steven Moreland55506402017-06-07 18:18:09 -070070 "android.hidl.token@1.0-utils",
71 "android.hardware.media.omx@1.0",
Steven Moreland55506402017-06-07 18:18:09 -070072 "libbinder",
73 "libcutils",
74 "libgui",
75 "libhidlbase",
Steven Moreland55506402017-06-07 18:18:09 -070076 "libhidltransport",
Steven Moreland55506402017-06-07 18:18:09 -070077 "liblog",
78 "libstagefright_foundation",
79 "libui",
80 "libutils",
81 ],
Colin Crosseeb43632017-04-20 12:48:51 -070082
Steven Moreland55506402017-06-07 18:18:09 -070083 export_shared_lib_headers: [
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 "libstagefright_foundation",
87 "libui",
88 ],
89
90 header_libs: [
91 "libmedia_headers",
92 ],
93
94 export_header_lib_headers: [
95 "libmedia_headers",
96 ],
97
98 export_include_dirs: [
99 "aidl",
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,
Steven Moreland55506402017-06-07 18:18:09 -0700114 },
115}
116
Dongwon Kangefe396f2017-10-17 17:23:30 -0700117cc_library_static {
118 name: "libmedia_midiiowrapper",
119
120 srcs: ["MidiIoWrapper.cpp"],
121
122 static_libs: [
123 "libsonivox",
124 ],
125
126 cflags: [
127 "-Werror",
128 "-Wno-error=deprecated-declarations",
129 "-Wall",
130 ],
131
132 sanitize: {
133 misc_undefined: [
134 "unsigned-integer-overflow",
135 "signed-integer-overflow",
136 ],
137 cfi: true,
Dongwon Kangefe396f2017-10-17 17:23:30 -0700138 },
139}
140
Dongwon Kang3e6d2452017-06-29 15:21:53 -0700141filegroup {
142 name: "mediaupdateservice_aidl",
143 srcs: [
144 "aidl/android/media/IMediaExtractorUpdateService.aidl",
145 ],
146}
147
Wei Jia4049f132018-01-22 10:37:31 -0800148cc_library {
Steven Moreland55506402017-06-07 18:18:09 -0700149 name: "libmedia",
Steven Moreland55506402017-06-07 18:18:09 -0700150
151 srcs: [
Dongwon Kang3e6d2452017-06-29 15:21:53 -0700152 ":mediaupdateservice_aidl",
Colin Crosseeb43632017-04-20 12:48:51 -0700153 "IDataSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700154 "BufferingSettings.cpp",
155 "mediaplayer.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700156 "IMediaHTTPConnection.cpp",
157 "IMediaHTTPService.cpp",
158 "IMediaExtractor.cpp",
159 "IMediaExtractorService.cpp",
160 "IMediaPlayerService.cpp",
161 "IMediaPlayerClient.cpp",
162 "IMediaRecorderClient.cpp",
163 "IMediaPlayer.cpp",
164 "IMediaRecorder.cpp",
165 "IMediaSource.cpp",
166 "IRemoteDisplay.cpp",
167 "IRemoteDisplayClient.cpp",
168 "IResourceManagerClient.cpp",
169 "IResourceManagerService.cpp",
170 "IStreamSource.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700171 "MediaUtils.cpp",
172 "Metadata.cpp",
173 "mediarecorder.cpp",
174 "IMediaMetadataRetriever.cpp",
175 "mediametadataretriever.cpp",
176 "MidiDeviceInfo.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700177 "JetPlayer.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700178 "MediaScanner.cpp",
179 "MediaScannerClient.cpp",
180 "CharacterEncodingDetector.cpp",
181 "IMediaDeathNotifier.cpp",
182 "MediaProfiles.cpp",
183 "MediaResource.cpp",
184 "MediaResourcePolicy.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700185 "Visualizer.cpp",
186 "StringArray.cpp",
Colin Crosseeb43632017-04-20 12:48:51 -0700187 ],
188
Dongwon Kang3e6d2452017-06-29 15:21:53 -0700189 aidl: {
190 local_include_dirs: ["aidl"],
191 export_aidl_headers: true,
192 },
193
Pawin Vongmasa4c7a5b92018-03-30 18:53:29 -0700194 header_libs: [
195 "libstagefright_headers",
196 ],
197
198 export_header_lib_headers: [
199 "libstagefright_headers",
200 ],
201
Colin Crosseeb43632017-04-20 12:48:51 -0700202 shared_libs: [
Lajos Molnar79c49ae2018-05-24 23:40:20 -0700203 "android.hidl.token@1.0-utils",
Colin Crosseeb43632017-04-20 12:48:51 -0700204 "liblog",
205 "libcutils",
Suren Baghdasaryan69b73292019-01-25 05:34:47 +0000206 "libprocessgroup",
Colin Crosseeb43632017-04-20 12:48:51 -0700207 "libutils",
208 "libbinder",
209 "libsonivox",
Victor Changf36cccb2018-11-20 19:11:07 +0000210 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700211 "libexpat",
212 "libcamera_client",
213 "libstagefright_foundation",
Dongwon Kangd91dc5a2017-10-10 00:07:09 -0700214 "libmediaextractor",
Colin Crosseeb43632017-04-20 12:48:51 -0700215 "libgui",
216 "libdl",
Kevin Rocard07be14f2018-01-24 06:14:03 +0000217 "libaudioutils",
Colin Crosseeb43632017-04-20 12:48:51 -0700218 "libaudioclient",
Jae Shin8568cb92017-10-30 11:13:36 +0900219 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700220 ],
221
222 export_shared_lib_headers: [
Ivan Lozanoff6900d2017-08-01 15:47:38 -0700223 "libaudioclient",
Colin Crosseeb43632017-04-20 12:48:51 -0700224 "libbinder",
Victor Changf36cccb2018-11-20 19:11:07 +0000225 "libandroidicu",
Colin Crosseeb43632017-04-20 12:48:51 -0700226 "libsonivox",
Jae Shin8568cb92017-10-30 11:13:36 +0900227 "libmedia_omx",
Colin Crosseeb43632017-04-20 12:48:51 -0700228 ],
229
Colin Crosseeb43632017-04-20 12:48:51 -0700230 static_libs: [
Dongwon Kangefe396f2017-10-17 17:23:30 -0700231 "libc_malloc_debug_backtrace", // for memory heap analysis
232 "libmedia_midiiowrapper",
Colin Crosseeb43632017-04-20 12:48:51 -0700233 ],
234
Colin Crosseeb43632017-04-20 12:48:51 -0700235 export_include_dirs: [
Colin Crosseeb43632017-04-20 12:48:51 -0700236 "include",
237 ],
Pawin Vongmasa255735a2017-07-19 11:24:56 -0700238
Colin Crosseeb43632017-04-20 12:48:51 -0700239 cflags: [
240 "-Werror",
241 "-Wno-error=deprecated-declarations",
242 "-Wall",
243 ],
244
Marco Nelissen7ffa0622017-12-15 16:07:12 -0800245 version_script: "exports.lds",
246
Colin Crosseeb43632017-04-20 12:48:51 -0700247 sanitize: {
248 misc_undefined: [
249 "unsigned-integer-overflow",
250 "signed-integer-overflow",
251 ],
252 cfi: true,
Colin Crosseeb43632017-04-20 12:48:51 -0700253 },
254}
Wei Jia53692fa2017-12-11 10:33:46 -0800255
Wei Jia4049f132018-01-22 10:37:31 -0800256cc_library {
Wei Jia53692fa2017-12-11 10:33:46 -0800257 name: "libmedia_player2_util",
258
259 srcs: [
260 "BufferingSettings.cpp",
Wei Jiac2636032018-02-01 09:15:25 -0800261 "DataSourceDesc.cpp",
Wei Jia53692fa2017-12-11 10:33:46 -0800262 "IDataSource.cpp",
263 "IMediaExtractor.cpp",
264 "IMediaExtractorService.cpp",
265 "IMediaSource.cpp",
Wei Jia4049f132018-01-22 10:37:31 -0800266 "MediaCodecBuffer.cpp",
Wei Jia53692fa2017-12-11 10:33:46 -0800267 "MediaUtils.cpp",
268 "Metadata.cpp",
Wei Jia28288fb2017-12-15 13:45:29 -0800269 "NdkWrapper.cpp",
Wei Jia53692fa2017-12-11 10:33:46 -0800270 ],
271
272 shared_libs: [
273 "libbinder",
274 "libcutils",
Wei Jia53692fa2017-12-11 10:33:46 -0800275 "liblog",
276 "libmediaextractor",
Wei Jia28288fb2017-12-15 13:45:29 -0800277 "libmediandk",
278 "libnativewindow",
Dongwon Kang5dcd67b2018-12-11 10:50:13 -0800279 "libstagefright",
Wei Jia53692fa2017-12-11 10:33:46 -0800280 "libstagefright_foundation",
281 "libui",
282 "libutils",
283 ],
284
285 export_shared_lib_headers: [
286 "libbinder",
Wei Jia28288fb2017-12-15 13:45:29 -0800287 "libmediandk",
Wei Jia53692fa2017-12-11 10:33:46 -0800288 ],
289
290 header_libs: [
291 "media_plugin_headers",
292 ],
293
294 static_libs: [
Wei Jia53692fa2017-12-11 10:33:46 -0800295 "libstagefright_rtsp",
296 "libstagefright_timedtext",
297 ],
298
299 export_include_dirs: [
300 "include",
301 ],
302
303 cflags: [
304 "-Werror",
305 "-Wno-error=deprecated-declarations",
306 "-Wall",
307 ],
308
309 sanitize: {
310 misc_undefined: [
311 "unsigned-integer-overflow",
312 "signed-integer-overflow",
313 ],
314 cfi: true,
Wei Jia53692fa2017-12-11 10:33:46 -0800315 },
316}