blob: c9921f52b91a8b71c021c17ba6a94be839f3513e [file] [log] [blame]
// DO NOT DEPEND ON THIS DIRECTLY
// use libcodec2_soft-defaults instead
cc_library_shared {
name: "libcodec2_goldfish_common",
defaults: ["libcodec2-impl-defaults"],
vendor: true,
srcs: [
"SimpleC2Component.cpp",
"SimpleC2Interface.cpp",
"goldfish_media_utils.cpp",
],
export_include_dirs: [
"include",
],
export_shared_lib_headers: [
"libsfplugin_ccodec_utils",
"libgoldfish_codec2_store", // for goldfish store
],
shared_libs: [
"libcutils", // for properties
"liblog", // for ALOG
"libdrm", // for ALOG
"libsfplugin_ccodec_utils", // for ImageCopy
"libstagefright_foundation", // for Mutexed
"libgoldfish_codec2_store", // for goldfish store
],
static_libs: [
"libGoldfishAddressSpace",
],
sanitize: {
misc_undefined: [
"unsigned-integer-overflow",
"signed-integer-overflow",
],
cfi: true,
},
ldflags: ["-Wl,-Bsymbolic"],
}
// public dependency for software codec implementation
// to be used by code under media/codecs/* only as its stability is not guaranteed
cc_defaults {
name: "libcodec2_goldfish-defaults",
defaults: ["libcodec2-impl-defaults"],
export_shared_lib_headers: [
"libsfplugin_ccodec_utils",
],
shared_libs: [
"libcodec2_goldfish_common",
"libcutils", // for properties
"liblog", // for ALOG
"libsfplugin_ccodec_utils", // for ImageCopy
"libstagefright_foundation", // for ColorUtils and MIME
],
cflags: [
"-Wall",
"-Werror",
],
ldflags: ["-Wl,-Bsymbolic"],
}