Steven Moreland | bf0cfe7 | 2017-04-14 04:12:13 -0700 | [diff] [blame] | 1 | cc_library_headers { |
| 2 | name: "libmedia_headers", |
| 3 | vendor_available: true, |
Pawin Vongmasa | 255735a | 2017-07-19 11:24:56 -0700 | [diff] [blame] | 4 | export_include_dirs: ["include"], |
| 5 | header_libs:[ |
| 6 | "libstagefright_headers", |
| 7 | "media_plugin_headers", |
| 8 | ], |
| 9 | export_header_lib_headers: [ |
| 10 | "libstagefright_headers", |
| 11 | "media_plugin_headers", |
| 12 | ], |
Steven Moreland | bf0cfe7 | 2017-04-14 04:12:13 -0700 | [diff] [blame] | 13 | } |
| 14 | |
Jaekyun Seok | 08dab5a | 2016-12-07 15:08:17 +0900 | [diff] [blame] | 15 | cc_library { |
Dan Willemsen | 442a2ee | 2016-08-26 17:52:29 -0700 | [diff] [blame] | 16 | name: "libmedia_helper", |
Steven Moreland | fbd30d0 | 2017-04-17 17:44:48 -0700 | [diff] [blame] | 17 | vendor_available: true, |
Justin Yun | 439bfbb | 2017-07-24 15:19:44 +0900 | [diff] [blame] | 18 | vndk: { |
| 19 | enabled: true, |
| 20 | }, |
Mikhail Naganov | 913d06c | 2016-11-01 12:49:22 -0700 | [diff] [blame] | 21 | srcs: ["AudioParameter.cpp", "TypeConverter.cpp"], |
Dan Willemsen | 442a2ee | 2016-08-26 17:52:29 -0700 | [diff] [blame] | 22 | cflags: [ |
| 23 | "-Werror", |
| 24 | "-Wno-error=deprecated-declarations", |
| 25 | "-Wall", |
| 26 | ], |
Marco Nelissen | 7522617 | 2016-11-16 14:10:52 -0800 | [diff] [blame] | 27 | shared_libs: ["libutils", "liblog"], |
Yifan Hong | 525eac3 | 2017-06-12 14:07:04 -0700 | [diff] [blame] | 28 | header_libs: [ |
| 29 | "libmedia_headers", |
| 30 | "libaudioclient_headers", |
| 31 | "libaudio_system_headers", |
| 32 | ], |
Dan Willemsen | 442a2ee | 2016-08-26 17:52:29 -0700 | [diff] [blame] | 33 | clang: true, |
| 34 | } |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 35 | |
Jae Shin | 8568cb9 | 2017-10-30 11:13:36 +0900 | [diff] [blame] | 36 | cc_library_shared { |
| 37 | name: "libmedia_omx", |
| 38 | vendor_available: true, |
| 39 | vndk: { |
| 40 | enabled: true, |
| 41 | }, |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 42 | |
| 43 | srcs: [ |
| 44 | "aidl/android/IGraphicBufferSource.aidl", |
| 45 | "aidl/android/IOMXBufferSource.aidl", |
| 46 | |
| 47 | "IMediaCodecList.cpp", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 48 | "IOMX.cpp", |
| 49 | "MediaCodecBuffer.cpp", |
| 50 | "MediaCodecInfo.cpp", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 51 | "OMXBuffer.cpp", |
| 52 | "omx/1.0/WGraphicBufferSource.cpp", |
| 53 | "omx/1.0/WOmx.cpp", |
| 54 | "omx/1.0/WOmxBufferSource.cpp", |
| 55 | "omx/1.0/WOmxNode.cpp", |
| 56 | "omx/1.0/WOmxObserver.cpp", |
| 57 | ], |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 58 | |
| 59 | aidl: { |
| 60 | local_include_dirs: ["aidl"], |
| 61 | export_aidl_headers: true, |
| 62 | }, |
| 63 | |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 64 | shared_libs: [ |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 65 | "android.hidl.token@1.0-utils", |
| 66 | "android.hardware.media.omx@1.0", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 67 | "libbinder", |
| 68 | "libcutils", |
| 69 | "libgui", |
| 70 | "libhidlbase", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 71 | "libhidltransport", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 72 | "liblog", |
| 73 | "libstagefright_foundation", |
| 74 | "libui", |
| 75 | "libutils", |
| 76 | ], |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 77 | |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 78 | export_shared_lib_headers: [ |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 79 | "android.hidl.token@1.0-utils", |
| 80 | "android.hardware.media.omx@1.0", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 81 | "libstagefright_foundation", |
| 82 | "libui", |
| 83 | ], |
| 84 | |
| 85 | header_libs: [ |
| 86 | "libmedia_headers", |
| 87 | ], |
| 88 | |
| 89 | export_header_lib_headers: [ |
| 90 | "libmedia_headers", |
| 91 | ], |
| 92 | |
| 93 | export_include_dirs: [ |
| 94 | "aidl", |
| 95 | ], |
| 96 | |
| 97 | cflags: [ |
| 98 | "-Werror", |
| 99 | "-Wno-error=deprecated-declarations", |
| 100 | "-Wall", |
| 101 | ], |
| 102 | |
| 103 | sanitize: { |
| 104 | misc_undefined: [ |
| 105 | "unsigned-integer-overflow", |
| 106 | "signed-integer-overflow", |
| 107 | ], |
| 108 | cfi: true, |
| 109 | diag: { |
| 110 | cfi: true, |
| 111 | }, |
| 112 | }, |
| 113 | } |
| 114 | |
Dongwon Kang | efe396f | 2017-10-17 17:23:30 -0700 | [diff] [blame] | 115 | cc_library_static { |
| 116 | name: "libmedia_midiiowrapper", |
| 117 | |
| 118 | srcs: ["MidiIoWrapper.cpp"], |
| 119 | |
| 120 | static_libs: [ |
| 121 | "libsonivox", |
| 122 | ], |
| 123 | |
| 124 | cflags: [ |
| 125 | "-Werror", |
| 126 | "-Wno-error=deprecated-declarations", |
| 127 | "-Wall", |
| 128 | ], |
| 129 | |
| 130 | sanitize: { |
| 131 | misc_undefined: [ |
| 132 | "unsigned-integer-overflow", |
| 133 | "signed-integer-overflow", |
| 134 | ], |
| 135 | cfi: true, |
| 136 | diag: { |
| 137 | cfi: true, |
| 138 | }, |
| 139 | }, |
| 140 | } |
| 141 | |
Dongwon Kang | 3e6d245 | 2017-06-29 15:21:53 -0700 | [diff] [blame^] | 142 | filegroup { |
| 143 | name: "mediaupdateservice_aidl", |
| 144 | srcs: [ |
| 145 | "aidl/android/media/IMediaExtractorUpdateService.aidl", |
| 146 | ], |
| 147 | } |
| 148 | |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 149 | cc_library_shared { |
| 150 | name: "libmedia", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 151 | |
| 152 | srcs: [ |
Dongwon Kang | 3e6d245 | 2017-06-29 15:21:53 -0700 | [diff] [blame^] | 153 | ":mediaupdateservice_aidl", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 154 | "IDataSource.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 155 | "BufferingSettings.cpp", |
| 156 | "mediaplayer.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 157 | "IMediaHTTPConnection.cpp", |
| 158 | "IMediaHTTPService.cpp", |
| 159 | "IMediaExtractor.cpp", |
| 160 | "IMediaExtractorService.cpp", |
| 161 | "IMediaPlayerService.cpp", |
| 162 | "IMediaPlayerClient.cpp", |
| 163 | "IMediaRecorderClient.cpp", |
| 164 | "IMediaPlayer.cpp", |
| 165 | "IMediaRecorder.cpp", |
| 166 | "IMediaSource.cpp", |
| 167 | "IRemoteDisplay.cpp", |
| 168 | "IRemoteDisplayClient.cpp", |
| 169 | "IResourceManagerClient.cpp", |
| 170 | "IResourceManagerService.cpp", |
| 171 | "IStreamSource.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 172 | "MediaUtils.cpp", |
| 173 | "Metadata.cpp", |
| 174 | "mediarecorder.cpp", |
| 175 | "IMediaMetadataRetriever.cpp", |
| 176 | "mediametadataretriever.cpp", |
| 177 | "MidiDeviceInfo.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 178 | "JetPlayer.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 179 | "MediaScanner.cpp", |
| 180 | "MediaScannerClient.cpp", |
| 181 | "CharacterEncodingDetector.cpp", |
| 182 | "IMediaDeathNotifier.cpp", |
| 183 | "MediaProfiles.cpp", |
| 184 | "MediaResource.cpp", |
| 185 | "MediaResourcePolicy.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 186 | "Visualizer.cpp", |
| 187 | "StringArray.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 188 | ], |
| 189 | |
Dongwon Kang | 3e6d245 | 2017-06-29 15:21:53 -0700 | [diff] [blame^] | 190 | aidl: { |
| 191 | local_include_dirs: ["aidl"], |
| 192 | export_aidl_headers: true, |
| 193 | }, |
| 194 | |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 195 | shared_libs: [ |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 196 | "liblog", |
| 197 | "libcutils", |
| 198 | "libutils", |
| 199 | "libbinder", |
| 200 | "libsonivox", |
| 201 | "libicuuc", |
| 202 | "libicui18n", |
| 203 | "libexpat", |
| 204 | "libcamera_client", |
| 205 | "libstagefright_foundation", |
Dongwon Kang | d91dc5a | 2017-10-10 00:07:09 -0700 | [diff] [blame] | 206 | "libmediaextractor", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 207 | "libgui", |
| 208 | "libdl", |
| 209 | "libaudioutils", |
| 210 | "libaudioclient", |
Jae Shin | 8568cb9 | 2017-10-30 11:13:36 +0900 | [diff] [blame] | 211 | "libmedia_omx", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 212 | ], |
| 213 | |
| 214 | export_shared_lib_headers: [ |
Ivan Lozano | ff6900d | 2017-08-01 15:47:38 -0700 | [diff] [blame] | 215 | "libaudioclient", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 216 | "libbinder", |
Colin Cross | 6f82b4d | 2017-04-20 17:30:33 -0700 | [diff] [blame] | 217 | "libicuuc", |
| 218 | "libicui18n", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 219 | "libsonivox", |
Jae Shin | 8568cb9 | 2017-10-30 11:13:36 +0900 | [diff] [blame] | 220 | "libmedia_omx", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 221 | ], |
| 222 | |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 223 | static_libs: [ |
Dongwon Kang | efe396f | 2017-10-17 17:23:30 -0700 | [diff] [blame] | 224 | "libc_malloc_debug_backtrace", // for memory heap analysis |
| 225 | "libmedia_midiiowrapper", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 226 | ], |
| 227 | |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 228 | export_include_dirs: [ |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 229 | "include", |
| 230 | ], |
Pawin Vongmasa | 255735a | 2017-07-19 11:24:56 -0700 | [diff] [blame] | 231 | |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 232 | cflags: [ |
| 233 | "-Werror", |
| 234 | "-Wno-error=deprecated-declarations", |
| 235 | "-Wall", |
| 236 | ], |
| 237 | |
| 238 | sanitize: { |
| 239 | misc_undefined: [ |
| 240 | "unsigned-integer-overflow", |
| 241 | "signed-integer-overflow", |
| 242 | ], |
| 243 | cfi: true, |
| 244 | diag: { |
| 245 | cfi: true, |
| 246 | }, |
| 247 | }, |
| 248 | } |
Wei Jia | 53692fa | 2017-12-11 10:33:46 -0800 | [diff] [blame] | 249 | |
| 250 | cc_library_shared { |
| 251 | name: "libmedia_player2_util", |
| 252 | |
| 253 | srcs: [ |
| 254 | "BufferingSettings.cpp", |
| 255 | "IDataSource.cpp", |
| 256 | "IMediaExtractor.cpp", |
| 257 | "IMediaExtractorService.cpp", |
| 258 | "IMediaSource.cpp", |
| 259 | "IStreamSource.cpp", |
| 260 | "MediaUtils.cpp", |
| 261 | "Metadata.cpp", |
Wei Jia | 28288fb | 2017-12-15 13:45:29 -0800 | [diff] [blame] | 262 | "NdkWrapper.cpp", |
Wei Jia | 53692fa | 2017-12-11 10:33:46 -0800 | [diff] [blame] | 263 | ], |
| 264 | |
| 265 | shared_libs: [ |
| 266 | "libbinder", |
| 267 | "libcutils", |
| 268 | "libgui", |
| 269 | "liblog", |
| 270 | "libmediaextractor", |
Wei Jia | 28288fb | 2017-12-15 13:45:29 -0800 | [diff] [blame] | 271 | "libmediandk", |
| 272 | "libnativewindow", |
Wei Jia | 53692fa | 2017-12-11 10:33:46 -0800 | [diff] [blame] | 273 | "libstagefright_foundation", |
| 274 | "libui", |
| 275 | "libutils", |
| 276 | ], |
| 277 | |
| 278 | export_shared_lib_headers: [ |
| 279 | "libbinder", |
Wei Jia | 28288fb | 2017-12-15 13:45:29 -0800 | [diff] [blame] | 280 | "libmediandk", |
Wei Jia | 53692fa | 2017-12-11 10:33:46 -0800 | [diff] [blame] | 281 | ], |
| 282 | |
| 283 | header_libs: [ |
| 284 | "media_plugin_headers", |
| 285 | ], |
| 286 | |
| 287 | static_libs: [ |
| 288 | "libc_malloc_debug_backtrace", // for memory heap analysis |
| 289 | |
| 290 | "libstagefright_nuplayer2", |
| 291 | "libstagefright_rtsp", |
| 292 | "libstagefright_timedtext", |
| 293 | ], |
| 294 | |
| 295 | export_include_dirs: [ |
| 296 | "include", |
| 297 | ], |
| 298 | |
| 299 | cflags: [ |
| 300 | "-Werror", |
| 301 | "-Wno-error=deprecated-declarations", |
| 302 | "-Wall", |
| 303 | ], |
| 304 | |
| 305 | sanitize: { |
| 306 | misc_undefined: [ |
| 307 | "unsigned-integer-overflow", |
| 308 | "signed-integer-overflow", |
| 309 | ], |
| 310 | cfi: true, |
| 311 | diag: { |
| 312 | cfi: true, |
| 313 | }, |
| 314 | }, |
| 315 | } |
| 316 | |
| 317 | cc_library_shared { |
| 318 | name: "libmedia_player2", |
| 319 | |
| 320 | srcs: [ |
| 321 | "AudioParameter.cpp", |
| 322 | "MediaPlayer2Factory.cpp", |
| 323 | "MediaPlayer2Manager.cpp", |
| 324 | "TestPlayerStub.cpp", |
| 325 | "TypeConverter.cpp", |
| 326 | "mediaplayer2.cpp", |
| 327 | ], |
| 328 | |
| 329 | shared_libs: [ |
| 330 | "libaudioclient", |
| 331 | "libbinder", |
| 332 | "libcutils", |
| 333 | "libgui", |
| 334 | "liblog", |
| 335 | "libmedia_omx", |
| 336 | "libmedia_player2_util", |
| 337 | "libmediaextractor", |
| 338 | "libstagefright_foundation", |
| 339 | "libui", |
| 340 | "libutils", |
| 341 | |
| 342 | "libcrypto", |
| 343 | "libmediadrm", |
| 344 | "libmediametrics", |
| 345 | "libmediandk", |
| 346 | "libmediautils", |
| 347 | "libmemunreachable", |
Wei Jia | 28288fb | 2017-12-15 13:45:29 -0800 | [diff] [blame] | 348 | "libnativewindow", |
Wei Jia | 53692fa | 2017-12-11 10:33:46 -0800 | [diff] [blame] | 349 | "libpowermanager", |
| 350 | "libstagefright_httplive", |
| 351 | "libstagefright_player2", |
| 352 | ], |
| 353 | |
| 354 | export_shared_lib_headers: [ |
| 355 | "libaudioclient", |
| 356 | "libbinder", |
| 357 | "libmedia_omx", |
| 358 | ], |
| 359 | |
| 360 | header_libs: [ |
| 361 | "media_plugin_headers", |
| 362 | ], |
| 363 | |
| 364 | static_libs: [ |
| 365 | "libc_malloc_debug_backtrace", // for memory heap analysis |
| 366 | |
| 367 | "libstagefright_nuplayer2", |
| 368 | "libstagefright_rtsp", |
| 369 | "libstagefright_timedtext", |
| 370 | ], |
| 371 | |
| 372 | export_include_dirs: [ |
| 373 | "include", |
| 374 | ], |
| 375 | |
| 376 | cflags: [ |
| 377 | "-Werror", |
| 378 | "-Wno-error=deprecated-declarations", |
| 379 | "-Wall", |
| 380 | ], |
| 381 | |
| 382 | sanitize: { |
| 383 | misc_undefined: [ |
| 384 | "unsigned-integer-overflow", |
| 385 | "signed-integer-overflow", |
| 386 | ], |
| 387 | cfi: true, |
| 388 | diag: { |
| 389 | cfi: true, |
| 390 | }, |
| 391 | }, |
| 392 | } |