1package { 2 default_applicable_licenses: ["frameworks_av_media_libmedia_license"], 3} 4 5// Added automatically by a large-scale-change 6// See: http://go/android-license-faq 7license { 8 name: "frameworks_av_media_libmedia_license", 9 visibility: [":__subpackages__"], 10 license_kinds: [ 11 "SPDX-license-identifier-Apache-2.0", 12 ], 13 license_text: [ 14 "NOTICE", 15 ], 16} 17 18cc_library_headers { 19 name: "libmedia_headers", 20 vendor_available: true, 21 min_sdk_version: "29", 22 apex_available: [ 23 "//apex_available:platform", 24 "com.android.media.swcodec", 25 ], 26 27 export_include_dirs: ["include"], 28 header_libs: [ 29 "av-headers", 30 "libbase_headers", 31 "libgui_headers", 32 "libstagefright_headers", 33 "media_plugin_headers", 34 ], 35 export_header_lib_headers: [ 36 "av-headers", 37 "libgui_headers", 38 "libstagefright_headers", 39 "media_plugin_headers", 40 ], 41} 42 43cc_library_headers { 44 name: "libmedia_datasource_headers", 45 export_include_dirs: ["include"], 46 host_supported: true, 47 target: { 48 darwin: { 49 enabled: false, 50 }, 51 }, 52 header_libs: [ 53 "libbinder_headers", 54 ], 55 export_header_lib_headers: [ 56 "libbinder_headers", 57 ], 58 apex_available: [ 59 "//apex_available:platform", 60 "com.android.media", 61 ], 62 min_sdk_version: "29", 63} 64 65filegroup { 66 name: "libmedia_omx_aidl", 67 srcs: [ 68 "aidl/android/IOMXBufferSource.aidl", 69 ], 70 path: "aidl", 71} 72 73filegroup { 74 name: "mediaextractorservice_aidl", 75 srcs: [ 76 "aidl/android/IMediaExtractorService.aidl", 77 ], 78 path: "aidl", 79} 80 81cc_library_shared { 82 name: "libmedia_omx", 83 vendor_available: true, 84 double_loadable: true, 85 86 srcs: [ 87 ":libmedia_omx_aidl", 88 89 "IOMX.cpp", 90 "MediaCodecBuffer.cpp", 91 "OMXBuffer.cpp", 92 "omx/1.0/WOmxBufferSource.cpp", 93 "omx/1.0/WOmxNode.cpp", 94 "omx/1.0/WOmxObserver.cpp", 95 ], 96 97 aidl: { 98 local_include_dirs: ["aidl"], 99 export_aidl_headers: true, 100 }, 101 102 local_include_dirs: [ 103 "include", 104 ], 105 106 shared_libs: [ 107 "android.hardware.media.omx@1.0", 108 "android.hidl.token@1.0-utils", 109 "libbinder", 110 "libcutils", 111 "libhidlbase", 112 "liblog", 113 "libstagefright_foundation", 114 "libui", 115 "libutils", 116 ], 117 118 export_shared_lib_headers: [ 119 "android.hardware.media.omx@1.0", 120 "android.hidl.token@1.0-utils", 121 "libstagefright_foundation", 122 "libui", 123 ], 124 125 header_libs: [ 126 "libstagefright_headers", 127 "media_plugin_headers", 128 ], 129 130 export_header_lib_headers: [ 131 "libstagefright_headers", 132 "media_plugin_headers", 133 ], 134 135 export_include_dirs: [ 136 "aidl", 137 "include", 138 ], 139 140 cflags: [ 141 "-Wall", 142 "-Werror", 143 "-Wno-error=deprecated-declarations", 144 ], 145 146 sanitize: { 147 misc_undefined: [ 148 "signed-integer-overflow", 149 "unsigned-integer-overflow", 150 ], 151 cfi: true, 152 }, 153} 154 155cc_library_shared { 156 name: "libmedia_omx_client", 157 158 srcs: [ 159 "omx/1.0/WOmx.cpp", 160 ], 161 162 local_include_dirs: [ 163 "include", 164 ], 165 166 shared_libs: [ 167 "libbinder", 168 "libcutils", 169 "libgui", 170 "libhidlbase", 171 "liblog", 172 "libmedia_omx", 173 "libstagefright_foundation", 174 "libui", 175 "libutils", 176 ], 177 178 export_shared_lib_headers: [ 179 "libgui", 180 "libmedia_omx", 181 "libstagefright_foundation", 182 "libui", 183 ], 184 185 header_libs: [ 186 "libstagefright_headers", 187 "media_plugin_headers", 188 ], 189 190 export_header_lib_headers: [ 191 "libstagefright_headers", 192 "media_plugin_headers", 193 ], 194 195 export_include_dirs: [ 196 "include", 197 ], 198 199 cflags: [ 200 "-Wall", 201 "-Werror", 202 "-Wno-error=deprecated-declarations", 203 ], 204 205 sanitize: { 206 misc_undefined: [ 207 "signed-integer-overflow", 208 "unsigned-integer-overflow", 209 ], 210 cfi: true, 211 }, 212} 213 214cc_library_static { 215 name: "libmedia_midiiowrapper", 216 217 min_sdk_version: "29", 218 apex_available: [ 219 "//apex_available:platform", 220 "com.android.media", 221 ], 222 223 srcs: ["MidiIoWrapper.cpp"], 224 225 static_libs: [ 226 "libsonivoxwithoutjet", 227 ], 228 229 header_libs: [ 230 "libmedia_datasource_headers", 231 "media_ndk_headers", 232 ], 233 234 cflags: [ 235 "-Wall", 236 "-Werror", 237 "-Wno-error=deprecated-declarations", 238 ], 239 240 sanitize: { 241 misc_undefined: [ 242 "signed-integer-overflow", 243 "unsigned-integer-overflow", 244 ], 245 cfi: true, 246 }, 247 248 host_supported: true, 249 250 target: { 251 darwin: { 252 enabled: false, 253 }, 254 }, 255} 256 257cc_library_shared { 258 name: "libmedia_codeclist_capabilities", 259 260 srcs: [ 261 "AudioCapabilities.cpp", 262 "CodecCapabilities.cpp", 263 "CodecCapabilitiesUtils.cpp", 264 "EncoderCapabilities.cpp", 265 "VideoCapabilities.cpp", 266 ], 267 268 local_include_dirs: [ 269 "include", 270 ], 271 272 shared_libs: [ 273 "libaconfig_storage_read_api_cc", 274 "libbinder", 275 "liblog", 276 "libstagefright_foundation", 277 "libutils", 278 ], 279 280 static_libs: [ 281 "android.media.codec-aconfig-cc", 282 ], 283 284 export_include_dirs: [ 285 "include", 286 ], 287 288 cflags: [ 289 "-Wall", 290 "-Werror", 291 "-Wno-error=deprecated-declarations", 292 ], 293 294 sanitize: { 295 misc_undefined: [ 296 "signed-integer-overflow", 297 "unsigned-integer-overflow", 298 ], 299 cfi: true, 300 }, 301} 302 303cc_library_shared { 304 name: "libmedia_codeclist", 305 306 srcs: [ 307 "IMediaCodecList.cpp", 308 "MediaCodecInfo.cpp", 309 ], 310 311 local_include_dirs: [ 312 "include", 313 ], 314 315 shared_libs: [ 316 "android.hardware.media.omx@1.0", 317 "libbinder", 318 "liblog", 319 "libmedia_codeclist_capabilities", 320 "libstagefright_foundation", 321 "libutils", 322 ], 323 324 static_libs: [ 325 "android.media.codec-aconfig-cc", 326 ], 327 328 export_include_dirs: [ 329 "include", 330 ], 331 332 cflags: [ 333 "-Wall", 334 "-Werror", 335 "-Wno-error=deprecated-declarations", 336 ], 337 338 sanitize: { 339 misc_undefined: [ 340 "signed-integer-overflow", 341 "unsigned-integer-overflow", 342 ], 343 cfi: true, 344 }, 345} 346 347cc_library { 348 name: "libmedia", 349 350 defaults: [ 351 "latest_android_media_audio_common_types_cpp_shared", 352 ], 353 354 srcs: [ 355 ":mediaextractorservice_aidl", 356 "BufferingSettings.cpp", 357 "CharacterEncodingDetector.cpp", 358 "IDataSource.cpp", 359 "IMediaDeathNotifier.cpp", 360 "IMediaExtractor.cpp", 361 "IMediaHTTPConnection.cpp", 362 "IMediaHTTPService.cpp", 363 "IMediaMetadataRetriever.cpp", 364 "IMediaPlayer.cpp", 365 "IMediaPlayerClient.cpp", 366 "IMediaPlayerService.cpp", 367 "IMediaRecorder.cpp", 368 "IMediaRecorderClient.cpp", 369 "IMediaSource.cpp", 370 "IRemoteDisplay.cpp", 371 "IRemoteDisplayClient.cpp", 372 "IStreamSource.cpp", 373 "MediaProfiles.cpp", 374 "MediaResource.cpp", 375 "MediaResourcePolicy.cpp", 376 "MediaScanner.cpp", 377 "MediaScannerClient.cpp", 378 "Metadata.cpp", 379 "NdkMediaErrorPriv.cpp", 380 "NdkMediaFormatPriv.cpp", 381 "StringArray.cpp", 382 "mediametadataretriever.cpp", 383 "mediaplayer.cpp", 384 "mediarecorder.cpp", 385 ], 386 387 aidl: { 388 local_include_dirs: ["aidl"], 389 export_aidl_headers: true, 390 }, 391 392 header_libs: [ 393 "jni_headers", 394 "libstagefright_headers", 395 "media_ndk_headers", 396 ], 397 398 export_header_lib_headers: [ 399 "jni_headers", 400 "libstagefright_headers", 401 "media_ndk_headers", 402 ], 403 404 shared_libs: [ 405 "android.hidl.token@1.0-utils", 406 "audioclient-types-aidl-cpp", 407 "av-types-aidl-cpp", 408 "libbinder", 409 "libbinder_ndk", 410 //"libsonivox", 411 "framework-permission-aidl-cpp", 412 "libandroidicu", 413 "libaudioclient", 414 "libaudiofoundation", 415 "libcamera_client", 416 "libcutils", 417 "libdl", 418 "libexpat", 419 "libgui", 420 "liblog", 421 "libmedia_codeclist", 422 "libmedia_omx", 423 "libstagefright_foundation", 424 "libutils", 425 ], 426 427 export_shared_lib_headers: [ 428 "libaudioclient", 429 "libaudiofoundation", 430 "libbinder", 431 //"libsonivox", 432 "framework-permission-aidl-cpp", 433 "libmedia_omx", 434 ], 435 436 static_libs: [ 437 "framework-permission-aidl-cpp", 438 "resourcemanager_aidl_interface-ndk", 439 ], 440 441 export_static_lib_headers: [ 442 "framework-permission-aidl-cpp", 443 "resourcemanager_aidl_interface-ndk", 444 ], 445 446 export_include_dirs: [ 447 "include", 448 ], 449 450 cflags: [ 451 "-Wall", 452 "-Werror", 453 "-Wno-error=deprecated-declarations", 454 ], 455 456 version_script: "exports.lds", 457 458 sanitize: { 459 misc_undefined: [ 460 "signed-integer-overflow", 461 "unsigned-integer-overflow", 462 ], 463 cfi: true, 464 }, 465} 466 467cc_library_static { 468 name: "libmedia_ndkformatpriv", 469 470 host_supported: true, 471 472 srcs: [ 473 "NdkMediaErrorPriv.cpp", 474 "NdkMediaFormatPriv.cpp", 475 ], 476 477 header_libs: [ 478 "libstagefright_foundation_headers", 479 "libstagefright_headers", 480 "media_ndk_headers", 481 ], 482 483 cflags: [ 484 "-DEXPORT=__attribute__((visibility(\"default\")))", 485 "-Wall", 486 "-Werror", 487 ], 488 489 export_include_dirs: ["include"], 490 491 target: { 492 darwin: { 493 enabled: false, 494 }, 495 }, 496 497 apex_available: [ 498 "//apex_available:platform", 499 "com.android.media", 500 ], 501} 502