1// DO NOT DEPEND ON THIS DIRECTLY 2// use libcodec2_soft-defaults instead 3package { 4 // See: http://go/android-license-faq 5 // A large-scale-change added 'default_applicable_licenses' to import 6 // all of the 'license_kinds' from "frameworks_av_license" 7 // to get the below license kinds: 8 // SPDX-license-identifier-Apache-2.0 9 default_applicable_licenses: ["frameworks_av_license"], 10} 11 12cc_library_headers { 13 name: "libcodec2_soft_common_headers", 14 defaults: ["libcodec2-impl-defaults"], 15 vendor_available: true, 16 17 export_include_dirs: [ 18 "include", 19 ], 20} 21 22cc_library { 23 name: "libcodec2_soft_common", 24 defaults: ["libcodec2-impl-defaults"], 25 vendor_available: true, 26 27 srcs: [ 28 "SimpleC2Component.cpp", 29 "SimpleC2Interface.cpp", 30 ], 31 32 export_include_dirs: [ 33 "include", 34 ], 35 36 export_shared_lib_headers: [ 37 "libsfplugin_ccodec_utils", 38 ], 39 40 header_libs: [ 41 "libarect_headers", 42 "libnativewindow_headers", 43 ], 44 45 shared_libs: [ 46 "libcutils", // for properties 47 "liblog", // for ALOG 48 "libsfplugin_ccodec_utils", // for ImageCopy 49 "libstagefright_foundation", // for Mutexed 50 ], 51 52 min_sdk_version: "29", 53 apex_available: [ 54 "//apex_available:platform", 55 "com.android.media.swcodec", 56 ], 57 58 sanitize: { 59 misc_undefined: [ 60 "unsigned-integer-overflow", 61 "signed-integer-overflow", 62 ], 63 cfi: true, 64 }, 65 66 ldflags: ["-Wl,-Bsymbolic"], 67} 68 69filegroup { 70 name: "codec2_soft_exports", 71 srcs: ["exports.lds"], 72} 73 74// public dependency for software codec implementation 75// to be used by code under media/codecs/* only as its stability is not guaranteed 76cc_defaults { 77 name: "libcodec2_soft-defaults", 78 defaults: ["libcodec2-impl-defaults"], 79 vendor_available: true, 80 version_script: ":codec2_soft_exports", 81 export_shared_lib_headers: [ 82 "libsfplugin_ccodec_utils", 83 ], 84 85 header_libs: [ 86 "libarect_headers", 87 "libnativewindow_headers", 88 ], 89 90 shared_libs: [ 91 "libcodec2_soft_common", 92 "libcutils", // for properties 93 "liblog", // for ALOG 94 "libsfplugin_ccodec_utils", // for ImageCopy 95 "libstagefright_foundation", // for ColorUtils and MIME 96 ], 97 98 cflags: [ 99 "-Wall", 100 "-Werror", 101 ], 102 103 ldflags: ["-Wl,-Bsymbolic"], 104 105 min_sdk_version: "29", 106 apex_available: [ 107 "//apex_available:platform", 108 "com.android.media.swcodec", 109 ], 110} 111 112// public dependency for software codec implementation 113// to be used by code under media/codecs/* only 114cc_defaults { 115 name: "libcodec2_soft_sanitize_all-defaults", 116 117 sanitize: { 118 misc_undefined: [ 119 "unsigned-integer-overflow", 120 "signed-integer-overflow", 121 ], 122 cfi: true, 123 }, 124} 125 126// public dependency for software codec implementation 127// to be used by code under media/codecs/* only 128cc_defaults { 129 name: "libcodec2_soft_sanitize_signed-defaults", 130 131 sanitize: { 132 misc_undefined: [ 133 "signed-integer-overflow", 134 ], 135 }, 136} 137 138cc_defaults { 139 name: "libcodec2_soft_sanitize_cfi-defaults", 140 141 sanitize: { 142 cfi: true, 143 config: { 144 cfi_assembly_support: true, 145 }, 146 }, 147} 148 149// TEMP: used by cheets2 project - remove when no longer used 150cc_library { 151 name: "libcodec2_simple_component", 152 vendor_available: true, 153 154 srcs: [ 155 "SimpleC2Interface.cpp", 156 ], 157 158 local_include_dirs: [ 159 "include", 160 ], 161 162 export_include_dirs: [ 163 "include", 164 ], 165 166 shared_libs: [ 167 "libcodec2", 168 "libcodec2_vndk", 169 "libcutils", 170 "liblog", 171 "libstagefright_foundation", 172 "libutils", 173 ], 174 175 sanitize: { 176 misc_undefined: [ 177 "unsigned-integer-overflow", 178 "signed-integer-overflow", 179 ], 180 cfi: true, 181 }, 182 183 ldflags: ["-Wl,-Bsymbolic"], 184} 185