1# Build the unit tests for libaudioprocessing
2
3LOCAL_PATH := $(call my-dir)
4
5#
6# resampler unit test
7#
8include $(CLEAR_VARS)
9
10LOCAL_SHARED_LIBRARIES := \
11    libaudioutils \
12    libaudioprocessing \
13    libcutils \
14    liblog \
15    libutils \
16
17LOCAL_C_INCLUDES := \
18    $(call include-path-for, audio-utils) \
19
20LOCAL_SRC_FILES := \
21    resampler_tests.cpp
22
23LOCAL_MODULE := resampler_tests
24
25LOCAL_MODULE_TAGS := tests
26
27LOCAL_CFLAGS := -Werror -Wall
28
29include $(BUILD_NATIVE_TEST)
30
31#
32# audio mixer test tool
33#
34include $(CLEAR_VARS)
35
36LOCAL_SRC_FILES := \
37    test-mixer.cpp \
38
39LOCAL_C_INCLUDES := \
40    $(call include-path-for, audio-utils) \
41
42LOCAL_STATIC_LIBRARIES := \
43    libsndfile \
44
45LOCAL_SHARED_LIBRARIES := \
46    libaudioprocessing \
47    libaudioutils \
48    libcutils \
49    liblog \
50    libutils \
51
52LOCAL_MODULE := test-mixer
53
54LOCAL_MODULE_TAGS := optional
55
56LOCAL_CFLAGS := -Werror -Wall
57
58include $(BUILD_EXECUTABLE)
59
60#
61# build audio resampler test tool
62#
63include $(CLEAR_VARS)
64
65LOCAL_SRC_FILES := \
66    test-resampler.cpp \
67
68LOCAL_C_INCLUDES := \
69    $(call include-path-for, audio-utils) \
70
71LOCAL_STATIC_LIBRARIES := \
72    libsndfile \
73
74LOCAL_SHARED_LIBRARIES := \
75    libaudioprocessing \
76    libaudioutils \
77    libcutils \
78    liblog \
79    libutils \
80
81LOCAL_MODULE := test-resampler
82
83LOCAL_MODULE_TAGS := optional
84
85LOCAL_CFLAGS := -Werror -Wall
86
87include $(BUILD_EXECUTABLE)
88