1// Build the unit tests for libaudioprocessing
2
3cc_defaults {
4    name: "libaudioprocessing_test_defaults",
5
6    header_libs: [
7        "libbase_headers",
8        "libmedia_headers",
9    ],
10
11    shared_libs: [
12        "libaudioclient",
13        "libaudioprocessing",
14        "libaudioutils",
15        "libcutils",
16        "liblog",
17        "libutils",
18        "libvibrator",
19    ],
20
21    cflags: [
22        "-Werror",
23        "-Wall",
24    ],
25}
26
27//
28// resampler unit test
29//
30cc_test {
31    name: "resampler_tests",
32    defaults: ["libaudioprocessing_test_defaults"],
33
34    srcs: ["resampler_tests.cpp"],
35}
36
37//
38// audio mixer test tool
39//
40cc_binary {
41    name: "test-mixer",
42    defaults: ["libaudioprocessing_test_defaults"],
43
44    srcs: ["test-mixer.cpp"],
45    static_libs: ["libsndfile"],
46}
47
48//
49// build audio resampler test tool
50//
51cc_binary {
52    name: "test-resampler",
53    defaults: ["libaudioprocessing_test_defaults"],
54
55    srcs: ["test-resampler.cpp"],
56    static_libs: ["libsndfile"],
57}
58