148 lines
3.0 KiB
Plaintext
148 lines
3.0 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_defaults {
|
|
name: "libaudioprocessing_defaults",
|
|
|
|
export_include_dirs: ["include"],
|
|
|
|
header_libs: ["libaudioclient_headers"],
|
|
|
|
shared_libs: [
|
|
"libaudioutils",
|
|
"libcutils",
|
|
"liblog",
|
|
"libutils",
|
|
],
|
|
|
|
cflags: [
|
|
"-Werror",
|
|
"-Wall",
|
|
|
|
// uncomment to disable NEON on architectures that actually do support NEON, for benchmarking
|
|
// "-DUSE_NEON=false",
|
|
],
|
|
|
|
arch: {
|
|
x86: {
|
|
avx2: {
|
|
cflags: [
|
|
"-mavx2",
|
|
"-mfma",
|
|
],
|
|
},
|
|
},
|
|
x86_64: {
|
|
avx2: {
|
|
cflags: [
|
|
"-mavx2",
|
|
"-mfma",
|
|
],
|
|
},
|
|
},
|
|
},
|
|
|
|
defaults: ["mtk_libaudioprocessing_defaults"],
|
|
}
|
|
|
|
cc_library_shared {
|
|
name: "libaudioprocessing",
|
|
defaults: ["libaudioprocessing_defaults"],
|
|
|
|
srcs: [
|
|
"AudioMixer.cpp",
|
|
"BufferProviders.cpp",
|
|
"RecordBufferConverter.cpp",
|
|
],
|
|
|
|
header_libs: [
|
|
"libaudiohal_headers",
|
|
"libbase_headers",
|
|
"libmedia_headers"
|
|
],
|
|
|
|
shared_libs: [
|
|
"libaudiohal",
|
|
"libsonic",
|
|
"libvibrator",
|
|
"libaudioutilmtk",
|
|
],
|
|
|
|
whole_static_libs: ["libaudioprocessing_base"],
|
|
}
|
|
|
|
cc_library_static {
|
|
name: "libaudioprocessing_base",
|
|
defaults: ["libaudioprocessing_defaults"],
|
|
vendor_available: true,
|
|
|
|
srcs: [
|
|
"AudioMixerBase.cpp",
|
|
"AudioResampler.cpp",
|
|
"AudioResamplerCubic.cpp",
|
|
"AudioResamplerSinc.cpp",
|
|
"AudioResamplerDyn.cpp",
|
|
],
|
|
|
|
arch: {
|
|
arm: {
|
|
instruction_set: "arm",
|
|
},
|
|
},
|
|
}
|
|
|
|
// <MTK_AUDIO
|
|
bootstrap_go_package {
|
|
name:"soong-libaudioprocessing-mediatek",
|
|
pkgPath:"android/soong/libaudioprocessing/mediatek",
|
|
deps:[
|
|
"soong-android",
|
|
"soong-cc",
|
|
],
|
|
srcs:[
|
|
"libaudioprocessing.go",
|
|
],
|
|
pluginFor:["soong_build"],
|
|
}
|
|
|
|
mtk_libaudioprocessing_defaults {
|
|
name: "mtk_libaudioprocessing_defaults",
|
|
|
|
srcs: [
|
|
"MtkAudioResamplerDyn.cpp",
|
|
],
|
|
|
|
shared_libs: [
|
|
"libmedia_helper",
|
|
"libaudioutilmtk",
|
|
],
|
|
|
|
product_variables: {
|
|
debuggable: {
|
|
cflags: [
|
|
"-DCONFIG_MT_USERDEBUG_BUILD",
|
|
],
|
|
},
|
|
eng: {
|
|
cflags: [
|
|
"-UCONFIG_MT_USERDEBUG_BUILD",
|
|
"-DCONFIG_MT_ENG_BUILD",
|
|
],
|
|
},
|
|
},
|
|
|
|
header_libs: [
|
|
"libaudiocomponentengine_headers",
|
|
"audio_cfgfileinc_headers",
|
|
"libaudiocompensationfilter_headers",
|
|
"libbessound_hd_mtk_headers",
|
|
],
|
|
}
|
|
// MTK_AUDIO>
|