Saketh Sathuvalli | b99e1bc | 2018-02-21 17:10:34 +0530 | [diff] [blame] | 1 | // Build the unit tests for effects |
| 2 | |
Bob Badour | 948e6aa | 2021-02-12 21:02:31 -0800 | [diff] [blame] | 3 | package { |
| 4 | // See: http://go/android-license-faq |
| 5 | // A large-scale-change added 'default_applicable_licenses' to import |
| 6 | // all of the 'license_kinds' from "frameworks_av_license" |
| 7 | // to get the below license kinds: |
| 8 | // SPDX-license-identifier-Apache-2.0 |
| 9 | default_applicable_licenses: ["frameworks_av_license"], |
| 10 | } |
| 11 | |
Saketh Sathuvalli | b99e1bc | 2018-02-21 17:10:34 +0530 | [diff] [blame] | 12 | cc_test { |
Rivukanta Bhattacharya | dd7becb | 2021-02-19 02:43:06 +0530 | [diff] [blame] | 13 | name: "EffectReverbTest", |
| 14 | vendor: true, |
| 15 | gtest: true, |
Harish Mahendrakar | 736791d | 2021-03-05 22:23:54 -0800 | [diff] [blame] | 16 | host_supported: true, |
Rivukanta Bhattacharya | dd7becb | 2021-02-19 02:43:06 +0530 | [diff] [blame] | 17 | srcs: [ |
| 18 | "EffectReverbTest.cpp", |
| 19 | "EffectTestHelper.cpp", |
| 20 | ], |
Rivukanta Bhattacharya | dd7becb | 2021-02-19 02:43:06 +0530 | [diff] [blame] | 21 | static_libs: [ |
| 22 | "libaudioutils", |
| 23 | "libreverb", |
| 24 | "libreverbwrapper", |
| 25 | ], |
| 26 | shared_libs: [ |
| 27 | "liblog", |
| 28 | ], |
| 29 | header_libs: [ |
| 30 | "libaudioeffects", |
| 31 | "libhardware_headers", |
| 32 | ], |
| 33 | } |
| 34 | |
| 35 | cc_test { |
Harish Mahendrakar | 9f33dbaa | 2021-02-17 18:25:21 -0800 | [diff] [blame] | 36 | name: "EffectBundleTest", |
| 37 | vendor: true, |
| 38 | gtest: true, |
| 39 | host_supported: true, |
| 40 | test_suites: ["device-tests"], |
Harish Mahendrakar | 88de9c4 | 2021-03-03 12:39:09 -0800 | [diff] [blame] | 41 | srcs: [ |
| 42 | "EffectBundleTest.cpp", |
| 43 | "EffectTestHelper.cpp", |
| 44 | ], |
Harish Mahendrakar | 9f33dbaa | 2021-02-17 18:25:21 -0800 | [diff] [blame] | 45 | static_libs: [ |
| 46 | "libaudioutils", |
| 47 | "libbundlewrapper", |
| 48 | "libmusicbundle", |
| 49 | ], |
| 50 | shared_libs: [ |
| 51 | "liblog", |
| 52 | ], |
| 53 | header_libs: [ |
| 54 | "libhardware_headers", |
| 55 | ], |
| 56 | } |
| 57 | |
| 58 | cc_test { |
Saketh Sathuvalli | b99e1bc | 2018-02-21 17:10:34 +0530 | [diff] [blame] | 59 | name: "lvmtest", |
| 60 | host_supported: false, |
| 61 | proprietary: true, |
| 62 | |
| 63 | include_dirs: [ |
| 64 | "frameworks/av/media/libeffects/lvm/lib/Bass/lib", |
| 65 | "frameworks/av/media/libeffects/lvm/lib/Bass/src", |
| 66 | "frameworks/av/media/libeffects/lvm/lib/Bundle/src", |
| 67 | "frameworks/av/media/libeffects/lvm/lib/Common/src", |
| 68 | "frameworks/av/media/libeffects/lvm/lib/Eq/lib", |
| 69 | "frameworks/av/media/libeffects/lvm/lib/Eq/src", |
| 70 | "frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/lib", |
| 71 | "frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src", |
| 72 | "frameworks/av/media/libeffects/lvm/lib/StereoWidening/lib", |
| 73 | "frameworks/av/media/libeffects/lvm/lib/StereoWidening/src", |
| 74 | "frameworks/av/media/libeffects/lvm/wrapper/Bundle", |
| 75 | ], |
| 76 | |
| 77 | header_libs: [ |
| 78 | "libaudioeffects", |
| 79 | ], |
| 80 | |
| 81 | shared_libs: [ |
| 82 | "libaudioutils", |
| 83 | "liblog", |
| 84 | ], |
| 85 | |
| 86 | static_libs: [ |
| 87 | "libmusicbundle", |
| 88 | ], |
| 89 | |
| 90 | srcs: ["lvmtest.cpp"], |
| 91 | |
| 92 | cflags: [ |
Saketh Sathuvalli | b99e1bc | 2018-02-21 17:10:34 +0530 | [diff] [blame] | 93 | "-DSUPPORT_MC", |
| 94 | |
| 95 | "-Wall", |
| 96 | "-Werror", |
| 97 | "-Wextra", |
| 98 | ], |
| 99 | } |
Saketh Sathuvalli | b89991f | 2019-01-10 19:26:43 +0530 | [diff] [blame] | 100 | |
| 101 | cc_test { |
Saketh Sathuvalli | 927bea3 | 2020-08-16 19:18:28 +0530 | [diff] [blame] | 102 | name: "reverb_test", |
Harish Mahendrakar | 6d2e79b | 2021-02-17 13:47:44 -0800 | [diff] [blame] | 103 | host_supported: true, |
Saketh Sathuvalli | 927bea3 | 2020-08-16 19:18:28 +0530 | [diff] [blame] | 104 | proprietary: true, |
Julien Desprez | 3163a9f | 2021-02-20 00:56:48 +0000 | [diff] [blame] | 105 | gtest: false, |
Saketh Sathuvalli | 927bea3 | 2020-08-16 19:18:28 +0530 | [diff] [blame] | 106 | |
Saketh Sathuvalli | 927bea3 | 2020-08-16 19:18:28 +0530 | [diff] [blame] | 107 | header_libs: [ |
| 108 | "libaudioeffects", |
| 109 | ], |
| 110 | |
| 111 | shared_libs: [ |
| 112 | "libaudioutils", |
| 113 | "liblog", |
Saketh Sathuvalli | 927bea3 | 2020-08-16 19:18:28 +0530 | [diff] [blame] | 114 | ], |
| 115 | |
Harish Mahendrakar | 3a3fcfe | 2020-12-30 14:54:04 -0800 | [diff] [blame] | 116 | static_libs: [ |
| 117 | "libreverb", |
| 118 | "libreverbwrapper", |
| 119 | ], |
Saketh Sathuvalli | 927bea3 | 2020-08-16 19:18:28 +0530 | [diff] [blame] | 120 | srcs: [ |
| 121 | "reverb_test.cpp", |
| 122 | ], |
| 123 | |
| 124 | cflags: [ |
| 125 | "-Wall", |
| 126 | "-Werror", |
| 127 | "-Wextra", |
| 128 | ], |
| 129 | } |
| 130 | |
| 131 | cc_test { |
Saketh Sathuvalli | b89991f | 2019-01-10 19:26:43 +0530 | [diff] [blame] | 132 | name: "snr", |
| 133 | host_supported: false, |
| 134 | |
| 135 | srcs: ["snr.cpp"], |
| 136 | |
| 137 | cflags: [ |
| 138 | "-Wall", |
| 139 | "-Werror", |
| 140 | "-Wextra", |
| 141 | ], |
| 142 | } |