See build/soong/README.md for more information Test: cd frameworks/av/media/libaudioprocessing; mma Test: atest resampler_tests Change-Id: Icae927b3d4692f7cf15b296e6bf5529329b22325gugelfrei
parent
a864ea5f2d
commit
9c99f15f44
@ -0,0 +1,54 @@
|
||||
cc_defaults {
|
||||
name: "libaudioprocessing_defaults",
|
||||
|
||||
export_include_dirs: ["include"],
|
||||
|
||||
shared_libs: [
|
||||
"libaudiohal",
|
||||
"libaudioutils",
|
||||
"libcutils",
|
||||
"liblog",
|
||||
"libnbaio",
|
||||
"libnblog",
|
||||
"libsonic",
|
||||
"libutils",
|
||||
],
|
||||
|
||||
cflags: [
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
|
||||
// uncomment to disable NEON on architectures that actually do support NEON, for benchmarking
|
||||
// "-DUSE_NEON=false",
|
||||
],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "libaudioprocessing",
|
||||
defaults: ["libaudioprocessing_defaults"],
|
||||
|
||||
srcs: [
|
||||
"BufferProviders.cpp",
|
||||
"RecordBufferConverter.cpp",
|
||||
],
|
||||
whole_static_libs: ["libaudioprocessing_arm"],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libaudioprocessing_arm",
|
||||
defaults: ["libaudioprocessing_defaults"],
|
||||
|
||||
srcs: [
|
||||
"AudioMixer.cpp",
|
||||
"AudioResampler.cpp",
|
||||
"AudioResamplerCubic.cpp",
|
||||
"AudioResamplerSinc.cpp",
|
||||
"AudioResamplerDyn.cpp",
|
||||
],
|
||||
|
||||
arch: {
|
||||
arm: {
|
||||
instruction_set: "arm",
|
||||
},
|
||||
},
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
AudioMixer.cpp.arm \
|
||||
AudioResampler.cpp.arm \
|
||||
AudioResamplerCubic.cpp.arm \
|
||||
AudioResamplerSinc.cpp.arm \
|
||||
AudioResamplerDyn.cpp.arm \
|
||||
BufferProviders.cpp \
|
||||
RecordBufferConverter.cpp \
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(TOP) \
|
||||
$(call include-path-for, audio-utils) \
|
||||
$(LOCAL_PATH)/include \
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libaudiohal \
|
||||
libaudioutils \
|
||||
libcutils \
|
||||
liblog \
|
||||
libnbaio \
|
||||
libnblog \
|
||||
libsonic \
|
||||
libutils \
|
||||
|
||||
LOCAL_MODULE := libaudioprocessing
|
||||
|
||||
LOCAL_CFLAGS := -Werror -Wall
|
||||
|
||||
# uncomment to disable NEON on architectures that actually do support NEON, for benchmarking
|
||||
#LOCAL_CFLAGS += -DUSE_NEON=false
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
@ -0,0 +1,15 @@
|
||||
cc_library_shared {
|
||||
name: "libaudio-resampler",
|
||||
|
||||
srcs: ["AudioResamplerCoefficients.cpp"],
|
||||
|
||||
shared_libs: [
|
||||
"libutils",
|
||||
"liblog",
|
||||
],
|
||||
|
||||
cflags: [
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
],
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
AudioResamplerCoefficients.cpp
|
||||
|
||||
LOCAL_MODULE := libaudio-resampler
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := libutils liblog
|
||||
|
||||
LOCAL_CFLAGS += -Werror -Wall
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
@ -0,0 +1,51 @@
|
||||
// Build the unit tests for libaudioprocessing
|
||||
|
||||
cc_defaults {
|
||||
name: "libaudioprocessing_test_defaults",
|
||||
|
||||
header_libs: ["libbase_headers"],
|
||||
shared_libs: [
|
||||
"libaudioutils",
|
||||
"libaudioprocessing",
|
||||
"libcutils",
|
||||
"liblog",
|
||||
"libutils",
|
||||
],
|
||||
|
||||
cflags: [
|
||||
"-Werror",
|
||||
"-Wall",
|
||||
],
|
||||
}
|
||||
|
||||
//
|
||||
// resampler unit test
|
||||
//
|
||||
cc_test {
|
||||
name: "resampler_tests",
|
||||
defaults: ["libaudioprocessing_test_defaults"],
|
||||
|
||||
srcs: ["resampler_tests.cpp"],
|
||||
}
|
||||
|
||||
//
|
||||
// audio mixer test tool
|
||||
//
|
||||
cc_binary {
|
||||
name: "test-mixer",
|
||||
defaults: ["libaudioprocessing_test_defaults"],
|
||||
|
||||
srcs: ["test-mixer.cpp"],
|
||||
static_libs: ["libsndfile"],
|
||||
}
|
||||
|
||||
//
|
||||
// build audio resampler test tool
|
||||
//
|
||||
cc_binary {
|
||||
name: "test-resampler",
|
||||
defaults: ["libaudioprocessing_test_defaults"],
|
||||
|
||||
srcs: ["test-resampler.cpp"],
|
||||
static_libs: ["libsndfile"],
|
||||
}
|
@ -1,93 +0,0 @@
|
||||
# Build the unit tests for libaudioprocessing
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
#
|
||||
# resampler unit test
|
||||
#
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libaudioutils \
|
||||
libaudioprocessing \
|
||||
libcutils \
|
||||
liblog \
|
||||
libutils \
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(call include-path-for, audio-utils) \
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
resampler_tests.cpp
|
||||
|
||||
LOCAL_HEADER_LIBRARIES := libbase_headers
|
||||
|
||||
LOCAL_MODULE := resampler_tests
|
||||
|
||||
LOCAL_MODULE_TAGS := tests
|
||||
|
||||
LOCAL_CFLAGS := -Werror -Wall
|
||||
|
||||
include $(BUILD_NATIVE_TEST)
|
||||
|
||||
#
|
||||
# audio mixer test tool
|
||||
#
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
test-mixer.cpp \
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(call include-path-for, audio-utils) \
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
libsndfile \
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libaudioprocessing \
|
||||
libaudioutils \
|
||||
libcutils \
|
||||
liblog \
|
||||
libutils \
|
||||
|
||||
LOCAL_HEADER_LIBRARIES := libbase_headers
|
||||
|
||||
LOCAL_MODULE := test-mixer
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_CFLAGS := -Werror -Wall
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
||||
#
|
||||
# build audio resampler test tool
|
||||
#
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
test-resampler.cpp \
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(call include-path-for, audio-utils) \
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
libsndfile \
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libaudioprocessing \
|
||||
libaudioutils \
|
||||
libcutils \
|
||||
liblog \
|
||||
libutils \
|
||||
|
||||
LOCAL_HEADER_LIBRARIES := libbase_headers
|
||||
|
||||
LOCAL_MODULE := test-resampler
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_CFLAGS := -Werror -Wall
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
Loading…
Reference in new issue