1// Build testbench for downmix module. 2package { 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "frameworks_av_media_libeffects_downmix_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: [ 9 "frameworks_av_media_libeffects_downmix_license", 10 ], 11} 12 13// This is a gtest unit test. 14// 15// Use "atest downmix_tests" to run. 16cc_test { 17 name:"downmix_tests", 18 gtest: true, 19 host_supported: true, 20 vendor: true, 21 include_dirs: [ 22 "frameworks/av/media/libeffects/downmix", 23 ], 24 header_libs: [ 25 "libaudioeffects", 26 ], 27 shared_libs: [ 28 "liblog", 29 ], 30 static_libs: [ 31 "libaudioutils", 32 "libdownmix", 33 ], 34 srcs: [ 35 "downmix_tests.cpp", 36 ], 37 cflags: [ 38 "-Wall", 39 "-Werror", 40 "-Wextra", 41 ], 42} 43 44// This is a test application which generates downmixed files for regression 45// analysis. 46// 47// See build_and_run_all_unit_tests.sh for a test script that uses this 48// test application and outputs then compares files in a local directory 49// on device (/data/local/tmp/downmixtest/). 50cc_test { 51 name:"downmixtest", 52 host_supported: false, 53 proprietary: true, 54 include_dirs: [ 55 "frameworks/av/media/libeffects/downmix", 56 ], 57 58 header_libs: [ 59 "libaudioeffects", 60 ], 61 62 shared_libs: [ 63 "libaudioutils", 64 "libdownmix", 65 "liblog", 66 ], 67 68 relative_install_path: "soundfx", 69 70 srcs: [ 71 "downmixtest.cpp", 72 ], 73 74 cflags: [ 75 "-Werror", 76 "-Wextra", 77 ], 78} 79