1package { 2 default_applicable_licenses: [ 3 "frameworks_av_media_libstagefright_mpeg2ts_license", 4 ], 5} 6 7// Added automatically by a large-scale-change 8// See: http://go/android-license-faq 9license { 10 name: "frameworks_av_media_libstagefright_mpeg2ts_license", 11 visibility: [":__subpackages__"], 12 license_kinds: [ 13 "SPDX-license-identifier-Apache-2.0", 14 ], 15 license_text: [ 16 "NOTICE", 17 ], 18} 19 20cc_defaults { 21 name: "libstagefright_mpeg2support_defaults", 22 23 srcs: [ 24 "AnotherPacketSource.cpp", 25 "ATSParser.cpp", 26 "CasManager.cpp", 27 "ESQueue.cpp", 28 ], 29 30 cflags: [ 31 "-Werror", 32 "-Wall", 33 ], 34 35 sanitize: { 36 misc_undefined: [ 37 "unsigned-integer-overflow", 38 "signed-integer-overflow", 39 ], 40 cfi: true, 41 }, 42 43 shared_libs: [ 44 "libhidlmemory", 45 "android.hardware.cas.native@1.0", 46 "android.hidl.memory@1.0", 47 ], 48 49 header_libs: [ 50 "libmedia_datasource_headers", 51 "libaudioclient_headers", 52 "media_ndk_headers", 53 "libstagefright_headers", 54 "libstagefright_foundation_headers", 55 ], 56 57 export_include_dirs: ["include"], 58 59 local_include_dirs: ["include/mpeg2ts"], 60 61 whole_static_libs: [ 62 "libstagefright_metadatautils", 63 ], 64 65} 66 67cc_defaults { 68 name: "libstagefright_mpeg2support_sdk_defaults", 69 70 min_sdk_version: "29", 71 host_supported: true, 72 target: { 73 darwin: { 74 enabled: false, 75 }, 76 }, 77} 78 79cc_library_headers { 80 name: "libstagefright_mpeg2support_headers", 81 defaults: [ 82 "libstagefright_mpeg2support_sdk_defaults", 83 ], 84 export_include_dirs: ["include"], 85} 86 87cc_library_static { 88 name: "libstagefright_mpeg2support", 89 defaults: [ 90 "libstagefright_mpeg2support_defaults", 91 "libstagefright_mpeg2support_sdk_defaults", 92 ], 93 cflags: [ 94 "-DENABLE_CRYPTO", 95 ], 96 shared_libs: [ 97 "libcrypto", 98 ], 99 srcs: [ 100 "HlsSampleDecryptor.cpp", 101 ], 102} 103 104cc_library_static { 105 name: "libstagefright_mpeg2support_nocrypto", 106 defaults: [ 107 "libstagefright_mpeg2support_defaults", 108 "libstagefright_mpeg2support_sdk_defaults", 109 ], 110 apex_available: [ 111 "com.android.media", 112 ], 113} 114