blob: 8604ef54effab2aa42d23f6f9da9de581b56c32f [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 \
42
43LOCAL_C_INCLUDES := \
Andy Hunge4fc4232014-06-17 15:10:51 -070044 $(call include-path-for, audio-effects) \
45 $(call include-path-for, audio-utils) \
46 frameworks/av/services/audioflinger
47
48LOCAL_STATIC_LIBRARIES := \
49 libsndfile
50
51LOCAL_SHARED_LIBRARIES := \
Andy Hunge4fc4232014-06-17 15:10:51 -070052 libeffects \
53 libnbaio \
54 libcommon_time_client \
55 libaudioresampler \
56 libaudioutils \
57 libdl \
58 libcutils \
59 libutils \
60 liblog
61
62LOCAL_MODULE:= test-mixer
63
64LOCAL_MODULE_TAGS := optional
65
Dan Alberteffaa782014-11-10 14:47:41 -080066LOCAL_CXX_STL := libc++
67
Andy Hunge4fc4232014-06-17 15:10:51 -070068include $(BUILD_EXECUTABLE)