unplugged-vendor/frameworks/av/media/libaudiofoundation/Android.bp

122 lines
2.6 KiB
Plaintext

package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_av_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_av_license"],
}
cc_library_headers {
name: "libaudiofoundation_headers",
vendor_available: true,
min_sdk_version: "29",
export_include_dirs: ["include"],
header_libs: [
"libaudioclient_aidl_conversion_util",
"libaudio_system_headers",
"libmedia_helper_headers",
],
export_header_lib_headers: [
"libaudioclient_aidl_conversion_util",
"libaudio_system_headers",
"libmedia_helper_headers",
],
static_libs: [
"audioclient-types-aidl-cpp",
],
export_static_lib_headers: [
"audioclient-types-aidl-cpp",
],
host_supported: true,
target: {
darwin: {
enabled: false,
},
},
}
cc_library {
name: "libaudiofoundation",
vendor_available: true,
double_loadable: true,
srcs: [
"AudioContainers.cpp",
"AudioDeviceTypeAddr.cpp",
"AudioGain.cpp",
"AudioPort.cpp",
"AudioProfile.cpp",
"DeviceDescriptorBase.cpp",
],
shared_libs: [
"audioclient-types-aidl-cpp",
"libaudioclient_aidl_conversion",
"libaudioutils",
"libbase",
"libbinder",
"liblog",
"libmedia_helper",
"libutils",
],
export_shared_lib_headers: [
"audioclient-types-aidl-cpp",
"libaudioclient_aidl_conversion",
],
header_libs: [
"libaudiofoundation_headers",
],
export_header_lib_headers: [
"libaudiofoundation_headers",
],
cflags: [
"-Werror",
"-Wall",
],
defaults: [
"mtk_libaudiofoundation_defaults",
],
}
// <MTK_AUDIO
bootstrap_go_package {
name:"soong-libaudiofoundation-mediatek",
pkgPath:"android/soong/libaudiofoundation/mediatek",
deps:[
"soong-android",
"soong-cc",
],
srcs:[
"libaudiofoundation.go",
],
pluginFor:["soong_build"],
}
mtk_libaudiofoundation_defaults {
name: "mtk_libaudiofoundation_defaults",
shared_libs: [
"libmedia_helper",
],
product_variables: {
debuggable: {
cflags: [
"-DCONFIG_MT_USERDEBUG_BUILD",
],
},
eng: {
cflags: [
"-UCONFIG_MT_USERDEBUG_BUILD",
"-DCONFIG_MT_ENG_BUILD",
],
},
},
}
// MTK_AUDIO>