blob: 9939ed1be048e5067f236e7697723e3ef7938476 [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 ],
21 include_dirs: [
22 "frameworks/av/media/libeffects/lvm/lib/Common/lib",
23 "frameworks/av/media/libeffects/lvm/wrapper/Reverb",
24 ],
25 static_libs: [
26 "libaudioutils",
27 "libreverb",
28 "libreverbwrapper",
29 ],
30 shared_libs: [
31 "liblog",
32 ],
33 header_libs: [
34 "libaudioeffects",
35 "libhardware_headers",
36 ],
37}
38
39cc_test {
Harish Mahendrakar9f33dba2021-02-17 18:25:21 -080040 name: "EffectBundleTest",
41 vendor: true,
42 gtest: true,
43 host_supported: true,
44 test_suites: ["device-tests"],
Harish Mahendrakar88de9c42021-03-03 12:39:09 -080045 srcs: [
46 "EffectBundleTest.cpp",
47 "EffectTestHelper.cpp",
48 ],
Harish Mahendrakar9f33dba2021-02-17 18:25:21 -080049 static_libs: [
50 "libaudioutils",
51 "libbundlewrapper",
52 "libmusicbundle",
53 ],
54 shared_libs: [
55 "liblog",
56 ],
57 header_libs: [
58 "libhardware_headers",
59 ],
60}
61
62cc_test {
Saketh Sathuvallib99e1bc2018-02-21 17:10:34 +053063 name: "lvmtest",
64 host_supported: false,
65 proprietary: true,
66
67 include_dirs: [
68 "frameworks/av/media/libeffects/lvm/lib/Bass/lib",
69 "frameworks/av/media/libeffects/lvm/lib/Bass/src",
70 "frameworks/av/media/libeffects/lvm/lib/Bundle/src",
71 "frameworks/av/media/libeffects/lvm/lib/Common/src",
72 "frameworks/av/media/libeffects/lvm/lib/Eq/lib",
73 "frameworks/av/media/libeffects/lvm/lib/Eq/src",
74 "frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/lib",
75 "frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src",
76 "frameworks/av/media/libeffects/lvm/lib/StereoWidening/lib",
77 "frameworks/av/media/libeffects/lvm/lib/StereoWidening/src",
78 "frameworks/av/media/libeffects/lvm/wrapper/Bundle",
79 ],
80
81 header_libs: [
82 "libaudioeffects",
83 ],
84
85 shared_libs: [
86 "libaudioutils",
87 "liblog",
88 ],
89
90 static_libs: [
91 "libmusicbundle",
92 ],
93
94 srcs: ["lvmtest.cpp"],
95
96 cflags: [
Saketh Sathuvallib99e1bc2018-02-21 17:10:34 +053097 "-DSUPPORT_MC",
98
99 "-Wall",
100 "-Werror",
101 "-Wextra",
102 ],
103}
Saketh Sathuvallib89991f2019-01-10 19:26:43 +0530104
105cc_test {
Saketh Sathuvalli927bea32020-08-16 19:18:28 +0530106 name: "reverb_test",
Harish Mahendrakar6d2e79b2021-02-17 13:47:44 -0800107 host_supported: true,
Saketh Sathuvalli927bea32020-08-16 19:18:28 +0530108 proprietary: true,
Julien Desprez3163a9f2021-02-20 00:56:48 +0000109 gtest: false,
Saketh Sathuvalli927bea32020-08-16 19:18:28 +0530110
111 include_dirs: [
Harish Mahendrakar0bbbe072020-10-01 23:28:48 +0530112 "frameworks/av/media/libeffects/lvm/wrapper/Reverb",
Saketh Sathuvalli927bea32020-08-16 19:18:28 +0530113 ],
114
115 header_libs: [
116 "libaudioeffects",
117 ],
118
119 shared_libs: [
120 "libaudioutils",
121 "liblog",
Saketh Sathuvalli927bea32020-08-16 19:18:28 +0530122 ],
123
Harish Mahendrakar3a3fcfe2020-12-30 14:54:04 -0800124 static_libs: [
125 "libreverb",
126 "libreverbwrapper",
127 ],
Saketh Sathuvalli927bea32020-08-16 19:18:28 +0530128 srcs: [
129 "reverb_test.cpp",
130 ],
131
132 cflags: [
133 "-Wall",
134 "-Werror",
135 "-Wextra",
136 ],
137}
138
139cc_test {
Saketh Sathuvallib89991f2019-01-10 19:26:43 +0530140 name: "snr",
141 host_supported: false,
142
143 srcs: ["snr.cpp"],
144
145 cflags: [
146 "-Wall",
147 "-Werror",
148 "-Wextra",
149 ],
150}