blob: 3505e0ff3bb5ec767b1e63ee68e863d8b0e35c27 [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
Glenn Kastene875c802016-03-18 14:52:27 -070026LOCAL_CFLAGS := -Werror -Wall
27
Dan Alberteffaa782014-11-10 14:47:41 -080028include $(BUILD_NATIVE_TEST)
Andy Hunge4fc4232014-06-17 15:10:51 -070029
30#
31# audio mixer test tool
32#
33include $(CLEAR_VARS)
34
35LOCAL_SRC_FILES:= \
36 test-mixer.cpp \
37 ../AudioMixer.cpp.arm \
Andy Hung857d5a22015-03-26 18:46:00 -070038 ../BufferProviders.cpp
Andy Hunge4fc4232014-06-17 15:10:51 -070039
40LOCAL_C_INCLUDES := \
Andy Hunge4fc4232014-06-17 15:10:51 -070041 $(call include-path-for, audio-effects) \
42 $(call include-path-for, audio-utils) \
Ricardo Garciaf097cae2015-04-13 12:17:21 -070043 frameworks/av/services/audioflinger \
44 external/sonic
Andy Hunge4fc4232014-06-17 15:10:51 -070045
46LOCAL_STATIC_LIBRARIES := \
47 libsndfile
48
49LOCAL_SHARED_LIBRARIES := \
Andy Hunge4fc4232014-06-17 15:10:51 -070050 libeffects \
51 libnbaio \
Andy Hunge4fc4232014-06-17 15:10:51 -070052 libaudioresampler \
53 libaudioutils \
54 libdl \
55 libcutils \
56 libutils \
Ricardo Garciaf097cae2015-04-13 12:17:21 -070057 liblog \
58 libsonic
Andy Hunge4fc4232014-06-17 15:10:51 -070059
60LOCAL_MODULE:= test-mixer
61
62LOCAL_MODULE_TAGS := optional
63
Dan Alberteffaa782014-11-10 14:47:41 -080064LOCAL_CXX_STL := libc++
65
Glenn Kastene875c802016-03-18 14:52:27 -070066LOCAL_CFLAGS := -Werror -Wall
67
Andy Hunge4fc4232014-06-17 15:10:51 -070068include $(BUILD_EXECUTABLE)