blob: f4e497b9e7e460330b804bd2cf969c55aad6e244 [file] [log] [blame]
Dan Willemsen9c99f152018-11-16 15:30:38 -08001// Build the unit tests for libaudioprocessing
2
3cc_defaults {
4 name: "libaudioprocessing_test_defaults",
5
6 header_libs: ["libbase_headers"],
7 shared_libs: [
Marco Nelissen3230ed82019-09-26 11:20:54 -07008 "libaudioclient",
Dan Willemsen9c99f152018-11-16 15:30:38 -08009 "libaudioprocessing",
Andy Hung3f692412019-04-02 15:48:22 -070010 "libaudioutils",
Dan Willemsen9c99f152018-11-16 15:30:38 -080011 "libcutils",
12 "liblog",
13 "libutils",
jiabinbf6b0ec2019-02-12 12:30:12 -080014 "libvibrator",
Dan Willemsen9c99f152018-11-16 15:30:38 -080015 ],
16
17 cflags: [
18 "-Werror",
19 "-Wall",
20 ],
21}
22
23//
24// resampler unit test
25//
26cc_test {
27 name: "resampler_tests",
28 defaults: ["libaudioprocessing_test_defaults"],
29
30 srcs: ["resampler_tests.cpp"],
31}
32
33//
34// audio mixer test tool
35//
36cc_binary {
37 name: "test-mixer",
38 defaults: ["libaudioprocessing_test_defaults"],
39
40 srcs: ["test-mixer.cpp"],
41 static_libs: ["libsndfile"],
42}
43
44//
45// build audio resampler test tool
46//
47cc_binary {
48 name: "test-resampler",
49 defaults: ["libaudioprocessing_test_defaults"],
50
51 srcs: ["test-resampler.cpp"],
52 static_libs: ["libsndfile"],
53}