blob: 7d7f8b955e4c2c91fe0ee71078e127cf57fdbb8e [file] [log] [blame]
Saketh Sathuvallib99e1bc2018-02-21 17:10:34 +05301// Build the unit tests for effects
2
Bob Badour948e6aa2021-02-12 21:02:31 -08003package {
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 Sathuvallib99e1bc2018-02-21 17:10:34 +053012cc_test {
Rivukanta Bhattacharyadd7becb2021-02-19 02:43:06 +053013 name: "EffectReverbTest",
14 vendor: true,
15 gtest: true,
Harish Mahendrakar736791d2021-03-05 22:23:54 -080016 host_supported: true,
Rivukanta Bhattacharyadd7becb2021-02-19 02:43:06 +053017 srcs: [
18 "EffectReverbTest.cpp",
19 "EffectTestHelper.cpp",
20 ],
Rivukanta Bhattacharyadd7becb2021-02-19 02:43:06 +053021 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
35cc_test {
Harish Mahendrakar9f33dbaa2021-02-17 18:25:21 -080036 name: "EffectBundleTest",
37 vendor: true,
38 gtest: true,
39 host_supported: true,
40 test_suites: ["device-tests"],
Harish Mahendrakar88de9c42021-03-03 12:39:09 -080041 srcs: [
42 "EffectBundleTest.cpp",
43 "EffectTestHelper.cpp",
44 ],
Harish Mahendrakar9f33dbaa2021-02-17 18:25:21 -080045 static_libs: [
46 "libaudioutils",
47 "libbundlewrapper",
48 "libmusicbundle",
49 ],
50 shared_libs: [
51 "liblog",
52 ],
53 header_libs: [
54 "libhardware_headers",
55 ],
56}
57
58cc_test {
Saketh Sathuvallib99e1bc2018-02-21 17:10:34 +053059 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 Sathuvallib99e1bc2018-02-21 17:10:34 +053093 "-DSUPPORT_MC",
94
95 "-Wall",
96 "-Werror",
97 "-Wextra",
98 ],
99}
Saketh Sathuvallib89991f2019-01-10 19:26:43 +0530100
101cc_test {
Saketh Sathuvalli927bea32020-08-16 19:18:28 +0530102 name: "reverb_test",
Harish Mahendrakar6d2e79b2021-02-17 13:47:44 -0800103 host_supported: true,
Saketh Sathuvalli927bea32020-08-16 19:18:28 +0530104 proprietary: true,
Julien Desprez3163a9f2021-02-20 00:56:48 +0000105 gtest: false,
Saketh Sathuvalli927bea32020-08-16 19:18:28 +0530106
Saketh Sathuvalli927bea32020-08-16 19:18:28 +0530107 header_libs: [
108 "libaudioeffects",
109 ],
110
111 shared_libs: [
112 "libaudioutils",
113 "liblog",
Saketh Sathuvalli927bea32020-08-16 19:18:28 +0530114 ],
115
Harish Mahendrakar3a3fcfe2020-12-30 14:54:04 -0800116 static_libs: [
117 "libreverb",
118 "libreverbwrapper",
119 ],
Saketh Sathuvalli927bea32020-08-16 19:18:28 +0530120 srcs: [
121 "reverb_test.cpp",
122 ],
123
124 cflags: [
125 "-Wall",
126 "-Werror",
127 "-Wextra",
128 ],
129}
130
131cc_test {
Saketh Sathuvallib89991f2019-01-10 19:26:43 +0530132 name: "snr",
133 host_supported: false,
134
135 srcs: ["snr.cpp"],
136
137 cflags: [
138 "-Wall",
139 "-Werror",
140 "-Wextra",
141 ],
142}