blob: bf94f71383656a34c6e09bb1a50c181e30252820 [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 \
38 ../BufferProviders.cpp \
39 ../EffectHalLocal.cpp \
40 ../EffectsFactoryHalLocal.cpp
Andy Hunge4fc4232014-06-17 15:10:51 -070041
42LOCAL_C_INCLUDES := \
Andy Hunge4fc4232014-06-17 15:10:51 -070043 $(call include-path-for, audio-effects) \
44 $(call include-path-for, audio-utils) \
Ricardo Garciaf097cae2015-04-13 12:17:21 -070045 frameworks/av/services/audioflinger \
46 external/sonic
Andy Hunge4fc4232014-06-17 15:10:51 -070047
48LOCAL_STATIC_LIBRARIES := \
49 libsndfile
50
51LOCAL_SHARED_LIBRARIES := \
Andy Hunge4fc4232014-06-17 15:10:51 -070052 libeffects \
53 libnbaio \
Andy Hunge4fc4232014-06-17 15:10:51 -070054 libaudioresampler \
55 libaudioutils \
56 libdl \
57 libcutils \
58 libutils \
Ricardo Garciaf097cae2015-04-13 12:17:21 -070059 liblog \
60 libsonic
Andy Hunge4fc4232014-06-17 15:10:51 -070061
62LOCAL_MODULE:= test-mixer
63
64LOCAL_MODULE_TAGS := optional
65
Dan Alberteffaa782014-11-10 14:47:41 -080066LOCAL_CXX_STL := libc++
67
Glenn Kastene875c802016-03-18 14:52:27 -070068LOCAL_CFLAGS := -Werror -Wall
69
Andy Hunge4fc4232014-06-17 15:10:51 -070070include $(BUILD_EXECUTABLE)