1// DO NOT DEPEND ON THIS DIRECTLY 2// use libstagefright_soft_c2-defaults instead 3cc_library_shared { 4 name: "libstagefright_soft_c2common", 5 defaults: ["libstagefright_codec2-impl-defaults"], 6 vendor_available: true, 7 8 srcs: [ 9 "SimpleC2Component.cpp", 10 "SimpleC2Interface.cpp", 11 ], 12 13 export_include_dirs: [ 14 "include", 15 ], 16 17 export_shared_lib_headers: [ 18 "libstagefright_ccodec_utils", 19 ], 20 21 shared_libs: [ 22 "libcutils", // for properties 23 "liblog", // for ALOG 24 "libstagefright_ccodec_utils", // for ImageCopy 25 "libstagefright_foundation", // for Mutexed 26 ], 27 28 sanitize: { 29 misc_undefined: [ 30 "unsigned-integer-overflow", 31 "signed-integer-overflow", 32 ], 33 cfi: true, 34 }, 35 36 ldflags: ["-Wl,-Bsymbolic"], 37} 38 39// public dependency for software codec implementation 40// to be used by code under media/codecs/* only as its stability is not guaranteed 41cc_defaults { 42 name: "libstagefright_soft_c2-defaults", 43 defaults: ["libstagefright_codec2-impl-defaults"], 44 vendor_available: true, 45 46 export_shared_lib_headers: [ 47 "libstagefright_ccodec_utils", 48 ], 49 50 shared_libs: [ 51 "libcutils", // for properties 52 "liblog", // for ALOG 53 "libstagefright_foundation", // for ColorUtils and MIME 54 "libstagefright_ccodec_utils", // for ImageCopy 55 "libstagefright_soft_c2common", 56 ], 57 58 cflags: [ 59 "-Wall", 60 "-Werror", 61 ], 62 63 ldflags: ["-Wl,-Bsymbolic"], 64} 65 66// public dependency for software codec implementation 67// to be used by code under media/codecs/* only 68cc_defaults { 69 name: "libstagefright_soft_c2_sanitize_all-defaults", 70 71 sanitize: { 72 misc_undefined: [ 73 "unsigned-integer-overflow", 74 "signed-integer-overflow", 75 ], 76 cfi: true, 77 }, 78} 79 80// public dependency for software codec implementation 81// to be used by code under media/codecs/* only 82cc_defaults { 83 name: "libstagefright_soft_c2_sanitize_signed-defaults", 84 85 sanitize: { 86 misc_undefined: [ 87 "signed-integer-overflow", 88 ], 89 cfi: true, 90 }, 91} 92 93// TEMP: used by cheets2 project - remove when no longer used 94cc_library_shared { 95 name: "libstagefright_simple_c2component", 96 vendor_available: true, 97 98 srcs: [ 99 "SimpleC2Interface.cpp", 100 ], 101 102 local_include_dirs: [ 103 "include", 104 ], 105 106 export_include_dirs: [ 107 "include", 108 ], 109 110 shared_libs: [ 111 "libcutils", 112 "liblog", 113 "libstagefright_codec2", 114 "libstagefright_codec2_vndk", 115 "libstagefright_foundation", 116 "libutils", 117 ], 118 119 sanitize: { 120 misc_undefined: [ 121 "unsigned-integer-overflow", 122 "signed-integer-overflow", 123 ], 124 cfi: true, 125 }, 126 127 ldflags: ["-Wl,-Bsymbolic"], 128} 129 130