blob: 75fc6f5cf18caa1fc104743b06368f8a2b58310b [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 \
Mikhail Naganov4a3d5c22016-08-15 13:47:42 -070037 ../AudioMixer.cpp.arm \
Mikhail Naganova0c91332016-09-19 10:01:12 -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 := \
Mikhail Naganova0c91332016-09-19 10:01:12 -070050 libaudiohal \
Andy Hunge4fc4232014-06-17 15:10:51 -070051 libeffects \
52 libnbaio \
Andy Hunge4fc4232014-06-17 15:10:51 -070053 libaudioresampler \
54 libaudioutils \
55 libdl \
56 libcutils \
57 libutils \
Ricardo Garciaf097cae2015-04-13 12:17:21 -070058 liblog \
59 libsonic
Andy Hunge4fc4232014-06-17 15:10:51 -070060
61LOCAL_MODULE:= test-mixer
62
63LOCAL_MODULE_TAGS := optional
64
Dan Alberteffaa782014-11-10 14:47:41 -080065LOCAL_CXX_STL := libc++
66
Glenn Kastene875c802016-03-18 14:52:27 -070067LOCAL_CFLAGS := -Werror -Wall
68
Andy Hunge4fc4232014-06-17 15:10:51 -070069include $(BUILD_EXECUTABLE)