blob: 20c2c2ce184a2f5f9fc96111a1a210f99340a980 [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
Marco Nelissen6b285942019-10-21 14:52:30 -07006 header_libs: [
7 "libbase_headers",
8 "libmedia_headers",
9 ],
10
Dan Willemsen9c99f152018-11-16 15:30:38 -080011 shared_libs: [
Marco Nelissen3230ed82019-09-26 11:20:54 -070012 "libaudioclient",
Dan Willemsen9c99f152018-11-16 15:30:38 -080013 "libaudioprocessing",
Andy Hung3f692412019-04-02 15:48:22 -070014 "libaudioutils",
Dan Willemsen9c99f152018-11-16 15:30:38 -080015 "libcutils",
16 "liblog",
17 "libutils",
jiabinbf6b0ec2019-02-12 12:30:12 -080018 "libvibrator",
Dan Willemsen9c99f152018-11-16 15:30:38 -080019 ],
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}