upload android base code part6
This commit is contained in:
parent
421e214c7d
commit
4e516ec6ed
35396 changed files with 9188716 additions and 0 deletions
123
android/system/media/audio_utils/Android.bp
Normal file
123
android/system/media/audio_utils/Android.bp
Normal file
|
@ -0,0 +1,123 @@
|
|||
subdirs = ["tests"]
|
||||
|
||||
cc_defaults {
|
||||
name: "audio_utils_defaults",
|
||||
|
||||
local_include_dirs: ["include"],
|
||||
export_include_dirs: ["include"],
|
||||
|
||||
cflags: [
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
],
|
||||
}
|
||||
|
||||
cc_library {
|
||||
name: "libaudioutils",
|
||||
vendor_available: true,
|
||||
vndk: {
|
||||
enabled: true,
|
||||
},
|
||||
host_supported: true,
|
||||
defaults: ["audio_utils_defaults"],
|
||||
|
||||
srcs: [
|
||||
"channels.c",
|
||||
"ErrorLog.cpp",
|
||||
"fifo.cpp",
|
||||
"fifo_index.cpp",
|
||||
"fifo_writer32.cpp",
|
||||
"format.c",
|
||||
"limiter.c",
|
||||
"minifloat.c",
|
||||
"power.cpp",
|
||||
"PowerLog.cpp",
|
||||
"primitives.c",
|
||||
"roundup.c",
|
||||
],
|
||||
|
||||
header_libs: [
|
||||
"libaudio_system_headers",
|
||||
"libutils_headers",
|
||||
],
|
||||
|
||||
export_header_lib_headers: [
|
||||
"libaudio_system_headers",
|
||||
"libutils_headers",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"liblog",
|
||||
],
|
||||
|
||||
target: {
|
||||
android: {
|
||||
srcs: [
|
||||
"mono_blend.cpp",
|
||||
"resampler.c",
|
||||
"echo_reference.c",
|
||||
],
|
||||
whole_static_libs: ["libaudioutils_fixedfft"],
|
||||
shared_libs: [
|
||||
"libspeexresampler",
|
||||
],
|
||||
},
|
||||
host: {
|
||||
cflags: ["-D__unused=__attribute__((unused))"],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libaudioutils_fixedfft",
|
||||
vendor_available: true,
|
||||
defaults: ["audio_utils_defaults"],
|
||||
|
||||
arch: {
|
||||
arm: {
|
||||
instruction_set: "arm",
|
||||
},
|
||||
},
|
||||
|
||||
srcs: ["fixedfft.cpp"],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libsndfile",
|
||||
defaults: ["audio_utils_defaults"],
|
||||
host_supported: true,
|
||||
srcs: ["tinysndfile.c"],
|
||||
cflags: [
|
||||
"-UHAVE_STDERR",
|
||||
],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libfifo",
|
||||
defaults: ["audio_utils_defaults"],
|
||||
srcs: [
|
||||
"fifo.cpp",
|
||||
"fifo_index.cpp",
|
||||
"primitives.c",
|
||||
"roundup.c",
|
||||
],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "libaudiospdif",
|
||||
defaults: ["audio_utils_defaults"],
|
||||
|
||||
srcs: [
|
||||
"spdif/BitFieldParser.cpp",
|
||||
"spdif/FrameScanner.cpp",
|
||||
"spdif/AC3FrameScanner.cpp",
|
||||
"spdif/DTSFrameScanner.cpp",
|
||||
"spdif/SPDIFEncoder.cpp",
|
||||
],
|
||||
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"liblog",
|
||||
],
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue