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 | |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 142 | cc_library_shared { |
| 143 | name: "libmedia", |
Steven Moreland | 5550640 | 2017-06-07 18:18:09 -0700 | [diff] [blame] | 144 | |
| 145 | srcs: [ |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 146 | "IDataSource.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 147 | "BufferingSettings.cpp", |
| 148 | "mediaplayer.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 149 | "IMediaHTTPConnection.cpp", |
| 150 | "IMediaHTTPService.cpp", |
| 151 | "IMediaExtractor.cpp", |
| 152 | "IMediaExtractorService.cpp", |
| 153 | "IMediaPlayerService.cpp", |
| 154 | "IMediaPlayerClient.cpp", |
| 155 | "IMediaRecorderClient.cpp", |
| 156 | "IMediaPlayer.cpp", |
| 157 | "IMediaRecorder.cpp", |
| 158 | "IMediaSource.cpp", |
| 159 | "IRemoteDisplay.cpp", |
| 160 | "IRemoteDisplayClient.cpp", |
| 161 | "IResourceManagerClient.cpp", |
| 162 | "IResourceManagerService.cpp", |
| 163 | "IStreamSource.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 164 | "MediaUtils.cpp", |
| 165 | "Metadata.cpp", |
| 166 | "mediarecorder.cpp", |
| 167 | "IMediaMetadataRetriever.cpp", |
| 168 | "mediametadataretriever.cpp", |
| 169 | "MidiDeviceInfo.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 170 | "JetPlayer.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 171 | "MediaScanner.cpp", |
| 172 | "MediaScannerClient.cpp", |
| 173 | "CharacterEncodingDetector.cpp", |
| 174 | "IMediaDeathNotifier.cpp", |
| 175 | "MediaProfiles.cpp", |
| 176 | "MediaResource.cpp", |
| 177 | "MediaResourcePolicy.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 178 | "Visualizer.cpp", |
| 179 | "StringArray.cpp", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 180 | ], |
| 181 | |
| 182 | shared_libs: [ |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 183 | "liblog", |
| 184 | "libcutils", |
| 185 | "libutils", |
| 186 | "libbinder", |
| 187 | "libsonivox", |
| 188 | "libicuuc", |
| 189 | "libicui18n", |
| 190 | "libexpat", |
| 191 | "libcamera_client", |
| 192 | "libstagefright_foundation", |
Dongwon Kang | d91dc5a | 2017-10-10 00:07:09 -0700 | [diff] [blame] | 193 | "libmediaextractor", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 194 | "libgui", |
| 195 | "libdl", |
| 196 | "libaudioutils", |
| 197 | "libaudioclient", |
Jae Shin | 8568cb9 | 2017-10-30 11:13:36 +0900 | [diff] [blame] | 198 | "libmedia_omx", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 199 | ], |
| 200 | |
| 201 | export_shared_lib_headers: [ |
Ivan Lozano | ff6900d | 2017-08-01 15:47:38 -0700 | [diff] [blame] | 202 | "libaudioclient", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 203 | "libbinder", |
Colin Cross | 6f82b4d | 2017-04-20 17:30:33 -0700 | [diff] [blame] | 204 | "libicuuc", |
| 205 | "libicui18n", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 206 | "libsonivox", |
Jae Shin | 8568cb9 | 2017-10-30 11:13:36 +0900 | [diff] [blame] | 207 | "libmedia_omx", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 208 | ], |
| 209 | |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 210 | static_libs: [ |
Dongwon Kang | efe396f | 2017-10-17 17:23:30 -0700 | [diff] [blame] | 211 | "libc_malloc_debug_backtrace", // for memory heap analysis |
| 212 | "libmedia_midiiowrapper", |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 213 | ], |
| 214 | |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 215 | export_include_dirs: [ |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 216 | "include", |
| 217 | ], |
Pawin Vongmasa | 255735a | 2017-07-19 11:24:56 -0700 | [diff] [blame] | 218 | |
Colin Cross | eeb4363 | 2017-04-20 12:48:51 -0700 | [diff] [blame] | 219 | cflags: [ |
| 220 | "-Werror", |
| 221 | "-Wno-error=deprecated-declarations", |
| 222 | "-Wall", |
| 223 | ], |
| 224 | |
| 225 | sanitize: { |
| 226 | misc_undefined: [ |
| 227 | "unsigned-integer-overflow", |
| 228 | "signed-integer-overflow", |
| 229 | ], |
| 230 | cfi: true, |
| 231 | diag: { |
| 232 | cfi: true, |
| 233 | }, |
| 234 | }, |
| 235 | } |
Wei Jia | 53692fa | 2017-12-11 10:33:46 -0800 | [diff] [blame] | 236 | |
| 237 | cc_library_shared { |
| 238 | name: "libmedia_player2_util", |
| 239 | |
| 240 | srcs: [ |
| 241 | "BufferingSettings.cpp", |
| 242 | "IDataSource.cpp", |
| 243 | "IMediaExtractor.cpp", |
| 244 | "IMediaExtractorService.cpp", |
| 245 | "IMediaSource.cpp", |
| 246 | "IStreamSource.cpp", |
| 247 | "MediaUtils.cpp", |
| 248 | "Metadata.cpp", |
Wei Jia | 28288fb | 2017-12-15 13:45:29 -0800 | [diff] [blame] | 249 | "NdkWrapper.cpp", |
Wei Jia | 53692fa | 2017-12-11 10:33:46 -0800 | [diff] [blame] | 250 | ], |
| 251 | |
| 252 | shared_libs: [ |
| 253 | "libbinder", |
| 254 | "libcutils", |
| 255 | "libgui", |
| 256 | "liblog", |
| 257 | "libmediaextractor", |
Wei Jia | 28288fb | 2017-12-15 13:45:29 -0800 | [diff] [blame] | 258 | "libmediandk", |
| 259 | "libnativewindow", |
Wei Jia | 53692fa | 2017-12-11 10:33:46 -0800 | [diff] [blame] | 260 | "libstagefright_foundation", |
| 261 | "libui", |
| 262 | "libutils", |
| 263 | ], |
| 264 | |
| 265 | export_shared_lib_headers: [ |
| 266 | "libbinder", |
Wei Jia | 28288fb | 2017-12-15 13:45:29 -0800 | [diff] [blame] | 267 | "libmediandk", |
Wei Jia | 53692fa | 2017-12-11 10:33:46 -0800 | [diff] [blame] | 268 | ], |
| 269 | |
| 270 | header_libs: [ |
| 271 | "media_plugin_headers", |
| 272 | ], |
| 273 | |
| 274 | static_libs: [ |
| 275 | "libc_malloc_debug_backtrace", // for memory heap analysis |
| 276 | |
| 277 | "libstagefright_nuplayer2", |
| 278 | "libstagefright_rtsp", |
| 279 | "libstagefright_timedtext", |
| 280 | ], |
| 281 | |
| 282 | export_include_dirs: [ |
| 283 | "include", |
| 284 | ], |
| 285 | |
| 286 | cflags: [ |
| 287 | "-Werror", |
| 288 | "-Wno-error=deprecated-declarations", |
| 289 | "-Wall", |
| 290 | ], |
| 291 | |
| 292 | sanitize: { |
| 293 | misc_undefined: [ |
| 294 | "unsigned-integer-overflow", |
| 295 | "signed-integer-overflow", |
| 296 | ], |
| 297 | cfi: true, |
| 298 | diag: { |
| 299 | cfi: true, |
| 300 | }, |
| 301 | }, |
| 302 | } |
| 303 | |
| 304 | cc_library_shared { |
| 305 | name: "libmedia_player2", |
| 306 | |
| 307 | srcs: [ |
| 308 | "AudioParameter.cpp", |
Hyundo Moon | 660a74e | 2017-12-13 11:29:45 +0900 | [diff] [blame^] | 309 | "JAudioTrack.cpp", |
Wei Jia | 53692fa | 2017-12-11 10:33:46 -0800 | [diff] [blame] | 310 | "MediaPlayer2Factory.cpp", |
| 311 | "MediaPlayer2Manager.cpp", |
| 312 | "TestPlayerStub.cpp", |
| 313 | "TypeConverter.cpp", |
| 314 | "mediaplayer2.cpp", |
| 315 | ], |
| 316 | |
| 317 | shared_libs: [ |
Hyundo Moon | 660a74e | 2017-12-13 11:29:45 +0900 | [diff] [blame^] | 318 | "libandroid_runtime", |
Wei Jia | 53692fa | 2017-12-11 10:33:46 -0800 | [diff] [blame] | 319 | "libaudioclient", |
| 320 | "libbinder", |
| 321 | "libcutils", |
| 322 | "libgui", |
| 323 | "liblog", |
| 324 | "libmedia_omx", |
| 325 | "libmedia_player2_util", |
| 326 | "libmediaextractor", |
| 327 | "libstagefright_foundation", |
| 328 | "libui", |
| 329 | "libutils", |
| 330 | |
| 331 | "libcrypto", |
| 332 | "libmediadrm", |
| 333 | "libmediametrics", |
| 334 | "libmediandk", |
| 335 | "libmediautils", |
| 336 | "libmemunreachable", |
Wei Jia | 28288fb | 2017-12-15 13:45:29 -0800 | [diff] [blame] | 337 | "libnativewindow", |
Wei Jia | 53692fa | 2017-12-11 10:33:46 -0800 | [diff] [blame] | 338 | "libpowermanager", |
| 339 | "libstagefright_httplive", |
| 340 | "libstagefright_player2", |
| 341 | ], |
| 342 | |
| 343 | export_shared_lib_headers: [ |
| 344 | "libaudioclient", |
| 345 | "libbinder", |
| 346 | "libmedia_omx", |
| 347 | ], |
| 348 | |
| 349 | header_libs: [ |
| 350 | "media_plugin_headers", |
| 351 | ], |
| 352 | |
| 353 | static_libs: [ |
| 354 | "libc_malloc_debug_backtrace", // for memory heap analysis |
| 355 | |
| 356 | "libstagefright_nuplayer2", |
| 357 | "libstagefright_rtsp", |
| 358 | "libstagefright_timedtext", |
| 359 | ], |
| 360 | |
| 361 | export_include_dirs: [ |
| 362 | "include", |
| 363 | ], |
| 364 | |
| 365 | cflags: [ |
| 366 | "-Werror", |
| 367 | "-Wno-error=deprecated-declarations", |
| 368 | "-Wall", |
| 369 | ], |
| 370 | |
| 371 | sanitize: { |
| 372 | misc_undefined: [ |
| 373 | "unsigned-integer-overflow", |
| 374 | "signed-integer-overflow", |
| 375 | ], |
| 376 | cfi: true, |
| 377 | diag: { |
| 378 | cfi: true, |
| 379 | }, |
| 380 | }, |
| 381 | } |