blob: 536eb9344fdbca19696f5c2ea40c0272fcb63929 [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) \
Ricardo Garciaf097cae2015-04-13 12:17:21 -070047 frameworks/av/services/audioflinger \
48 external/sonic
Andy Hunge4fc4232014-06-17 15:10:51 -070049
50LOCAL_STATIC_LIBRARIES := \
51 libsndfile
52
53LOCAL_SHARED_LIBRARIES := \
Andy Hunge4fc4232014-06-17 15:10:51 -070054 libeffects \
55 libnbaio \
56 libcommon_time_client \
57 libaudioresampler \
58 libaudioutils \
59 libdl \
60 libcutils \
61 libutils \
Ricardo Garciaf097cae2015-04-13 12:17:21 -070062 liblog \
63 libsonic
Andy Hunge4fc4232014-06-17 15:10:51 -070064
65LOCAL_MODULE:= test-mixer
66
67LOCAL_MODULE_TAGS := optional
68
Dan Alberteffaa782014-11-10 14:47:41 -080069LOCAL_CXX_STL := libc++
70
Andy Hunge4fc4232014-06-17 15:10:51 -070071include $(BUILD_EXECUTABLE)