blob: 76997be9774607cf65601063a6841df7bc4837b5 [file] [log] [blame]
Andy Hung546734b2014-04-01 18:31:42 -07001# Build the unit tests for audioflinger
2
Andy Hungc0e5ec82014-06-17 14:33:39 -07003#
4# resampler unit test
5#
Andy Hung546734b2014-04-01 18:31:42 -07006LOCAL_PATH:= $(call my-dir)
7include $(CLEAR_VARS)
8
9LOCAL_SHARED_LIBRARIES := \
10 liblog \
11 libutils \
12 libcutils \
Andy Hung546734b2014-04-01 18:31:42 -070013 libaudioutils \
14 libaudioresampler
15
Andy Hung546734b2014-04-01 18:31:42 -070016LOCAL_C_INCLUDES := \
Andy Hungc0e5ec82014-06-17 14:33:39 -070017 $(call include-path-for, audio-utils) \
Andy Hung546734b2014-04-01 18:31:42 -070018 frameworks/av/services/audioflinger
19
20LOCAL_SRC_FILES := \
21 resampler_tests.cpp
22
23LOCAL_MODULE := resampler_tests
24LOCAL_MODULE_TAGS := tests
25
Dan Alberteffaa782014-11-10 14:47:41 -080026include $(BUILD_NATIVE_TEST)
Andy Hunge4fc4232014-06-17 15:10:51 -070027
28#
29# audio mixer test tool
30#
31include $(CLEAR_VARS)
32
Chih-Hung Hsieh42e5a1e2014-11-14 09:57:36 -080033# Clang++ aborts on AudioMixer.cpp,
34# b/18373866, "do not know how to split this operator."
35ifeq ($(filter $(TARGET_ARCH),arm arm64),$(TARGET_ARCH))
36 LOCAL_CLANG := false
37endif
38
Andy Hunge4fc4232014-06-17 15:10:51 -070039LOCAL_SRC_FILES:= \
40 test-mixer.cpp \
41 ../AudioMixer.cpp.arm \
Andy Hung857d5a22015-03-26 18:46:00 -070042 ../BufferProviders.cpp
Andy Hunge4fc4232014-06-17 15:10:51 -070043
44LOCAL_C_INCLUDES := \
Andy Hunge4fc4232014-06-17 15:10:51 -070045 $(call include-path-for, audio-effects) \
46 $(call include-path-for, audio-utils) \
47 frameworks/av/services/audioflinger
48
49LOCAL_STATIC_LIBRARIES := \
50 libsndfile
51
52LOCAL_SHARED_LIBRARIES := \
Andy Hunge4fc4232014-06-17 15:10:51 -070053 libeffects \
54 libnbaio \
55 libcommon_time_client \
56 libaudioresampler \
57 libaudioutils \
58 libdl \
59 libcutils \
60 libutils \
61 liblog
62
63LOCAL_MODULE:= test-mixer
64
65LOCAL_MODULE_TAGS := optional
66
Dan Alberteffaa782014-11-10 14:47:41 -080067LOCAL_CXX_STL := libc++
68
Andy Hunge4fc4232014-06-17 15:10:51 -070069include $(BUILD_EXECUTABLE)