1// Build the unit tests for libaudioprocessing 2 3package { 4 default_team: "trendy_team_media_framework_audio", 5 // See: http://go/android-license-faq 6 // A large-scale-change added 'default_applicable_licenses' to import 7 // all of the 'license_kinds' from "frameworks_av_license" 8 // to get the below license kinds: 9 // SPDX-license-identifier-Apache-2.0 10 default_applicable_licenses: ["frameworks_av_license"], 11} 12 13cc_defaults { 14 name: "libaudioprocessing_test_defaults", 15 16 header_libs: [ 17 "libbase_headers", 18 "libmedia_headers", 19 ], 20 21 shared_libs: [ 22 "libaudioclient", 23 "libaudioprocessing", 24 "libaudioutils", 25 "libcutils", 26 "liblog", 27 "libutils", 28 "libvibrator", 29 ], 30 31 cflags: [ 32 "-Wall", 33 "-Werror", 34 ], 35} 36 37// 38// resampler unit test 39// 40cc_test { 41 name: "resampler_tests", 42 defaults: ["libaudioprocessing_test_defaults"], 43 44 srcs: ["resampler_tests.cpp"], 45} 46 47// 48// audio mixer test tool 49// 50cc_binary { 51 name: "test-mixer", 52 defaults: ["libaudioprocessing_test_defaults"], 53 54 srcs: ["test-mixer.cpp"], 55 static_libs: ["libsndfile"], 56} 57 58// 59// build audio resampler test tool 60// 61cc_binary { 62 name: "test-resampler", 63 defaults: ["libaudioprocessing_test_defaults"], 64 65 srcs: ["test-resampler.cpp"], 66 static_libs: ["libsndfile"], 67} 68 69// 70// build mixerops objdump 71// 72// This is used to verify proper optimization of the code. 73// 74// For example, use: 75// ./prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-objdump 76// -d --source ./out/target/product/crosshatch/symbols/system/bin/mixerops_objdump 77// 78cc_binary { 79 name: "mixerops_objdump", 80 header_libs: ["libaudioutils_headers"], 81 srcs: ["mixerops_objdump.cpp"], 82} 83 84// 85// build mixerops benchmark 86// 87cc_benchmark { 88 name: "mixerops_benchmark", 89 header_libs: ["libaudioutils_headers"], 90 srcs: ["mixerops_benchmark.cpp"], 91 static_libs: ["libgoogle-benchmark"], 92} 93 94// 95// mixerops unit test 96// 97cc_test { 98 name: "mixerops_tests", 99 defaults: ["libaudioprocessing_test_defaults"], 100 srcs: ["mixerops_tests.cpp"], 101} 102