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 "device_generic_goldfish-opengl_license" 7 // to get the below license kinds: 8 // SPDX-license-identifier-Apache-2.0 9 default_applicable_licenses: ["device_generic_goldfish-opengl_license"], 10} 11 12cc_library_shared { 13 name: "libcodec2_goldfish_common", 14 defaults: ["libcodec2-impl-defaults"], 15 vendor: true, 16 17 srcs: [ 18 "SimpleC2Component.cpp", 19 "SimpleC2Interface.cpp", 20 "goldfish_media_utils.cpp", 21 "color_buffer_utils.cpp", 22 ], 23 24 export_include_dirs: [ 25 "include", 26 ], 27 28 export_shared_lib_headers: [ 29 "libsfplugin_ccodec_utils", 30 "libgoldfish_codec2_store", // for goldfish store 31 ], 32 33 shared_libs: [ 34 "libcutils", // for properties 35 "liblog", // for ALOG 36 "libdrm", // for ALOG 37 "libbase", // for properties, parseint 38 "libsfplugin_ccodec_utils", // for ImageCopy 39 "libstagefright_foundation", // for Mutexed 40 "libgoldfish_codec2_store", // for goldfish store 41 ], 42 43 static_libs: [ 44 "libplatform", 45 "libGoldfishAddressSpace", 46 ], 47 48 header_libs: [ 49 "libgralloc_cb.ranchu", 50 "libgralloc_cb3.ranchu", 51 ], 52 53 sanitize: { 54 misc_undefined: [ 55 "unsigned-integer-overflow", 56 "signed-integer-overflow", 57 ], 58 cfi: true, 59 }, 60 61 62 ldflags: ["-Wl,-Bsymbolic"], 63} 64 65// public dependency for software codec implementation 66// to be used by code under media/codecs/* only as its stability is not guaranteed 67cc_defaults { 68 name: "libcodec2_goldfish-defaults", 69 defaults: ["libcodec2-impl-defaults"], 70 export_shared_lib_headers: [ 71 "libsfplugin_ccodec_utils", 72 ], 73 74 shared_libs: [ 75 "libcodec2_goldfish_common", 76 "libcutils", // for properties 77 "liblog", // for ALOG 78 "libsfplugin_ccodec_utils", // for ImageCopy 79 "libstagefright_foundation", // for ColorUtils and MIME 80 ], 81 82 cflags: [ 83 "-Wall", 84 "-Werror", 85 ], 86 87 ldflags: ["-Wl,-Bsymbolic"], 88} 89