blob: 18acef7be53008e449acb237ab5e48aab95e594c [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}
Judy Hsiao19e533c2019-08-14 16:52:51 +080058
59//
60// build mixerops objdump
61//
62// This is used to verify proper optimization of the code.
63//
64// For example, use:
65// ./prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-objdump
66// -d --source ./out/target/product/crosshatch/symbols/system/bin/mixerops_objdump
67//
68cc_binary {
69 name: "mixerops_objdump",
70 srcs: ["mixerops_objdump.cpp"],
71}
72
73//
74// build mixerops benchmark
75//
76cc_benchmark {
77 name: "mixerops_benchmark",
78 srcs: ["mixerops_benchmark.cpp"],
79 static_libs: ["libgoogle-benchmark"],
80}