Dan Willemsen | 9c99f15 | 2018-11-16 15:30:38 -0800 | [diff] [blame] | 1 | // Build the unit tests for libaudioprocessing |
| 2 | |
| 3 | cc_defaults { |
| 4 | name: "libaudioprocessing_test_defaults", |
| 5 | |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 6 | header_libs: [ |
| 7 | "libbase_headers", |
| 8 | "libmedia_headers", |
| 9 | ], |
| 10 | |
Dan Willemsen | 9c99f15 | 2018-11-16 15:30:38 -0800 | [diff] [blame] | 11 | shared_libs: [ |
Marco Nelissen | 3230ed8 | 2019-09-26 11:20:54 -0700 | [diff] [blame] | 12 | "libaudioclient", |
Dan Willemsen | 9c99f15 | 2018-11-16 15:30:38 -0800 | [diff] [blame] | 13 | "libaudioprocessing", |
Andy Hung | 3f69241 | 2019-04-02 15:48:22 -0700 | [diff] [blame] | 14 | "libaudioutils", |
Dan Willemsen | 9c99f15 | 2018-11-16 15:30:38 -0800 | [diff] [blame] | 15 | "libcutils", |
| 16 | "liblog", |
| 17 | "libutils", |
jiabin | bf6b0ec | 2019-02-12 12:30:12 -0800 | [diff] [blame] | 18 | "libvibrator", |
Dan Willemsen | 9c99f15 | 2018-11-16 15:30:38 -0800 | [diff] [blame] | 19 | ], |
| 20 | |
| 21 | cflags: [ |
| 22 | "-Werror", |
| 23 | "-Wall", |
| 24 | ], |
| 25 | } |
| 26 | |
| 27 | // |
| 28 | // resampler unit test |
| 29 | // |
| 30 | cc_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 | // |
| 40 | cc_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 | // |
| 51 | cc_binary { |
| 52 | name: "test-resampler", |
| 53 | defaults: ["libaudioprocessing_test_defaults"], |
| 54 | |
| 55 | srcs: ["test-resampler.cpp"], |
| 56 | static_libs: ["libsndfile"], |
| 57 | } |
Judy Hsiao | 19e533c | 2019-08-14 16:52:51 +0800 | [diff] [blame^] | 58 | |
| 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 | // |
| 68 | cc_binary { |
| 69 | name: "mixerops_objdump", |
| 70 | srcs: ["mixerops_objdump.cpp"], |
| 71 | } |
| 72 | |
| 73 | // |
| 74 | // build mixerops benchmark |
| 75 | // |
| 76 | cc_benchmark { |
| 77 | name: "mixerops_benchmark", |
| 78 | srcs: ["mixerops_benchmark.cpp"], |
| 79 | static_libs: ["libgoogle-benchmark"], |
| 80 | } |