blob: 6a1d6a3f04d412c929cfed2450965f5cc3bf2e46 [file] [log] [blame]
Kevin Rocard96d2cd92018-11-14 16:22:07 -08001//
2// Copyright (C) 2016 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Kevin Rocard1108d4a2018-11-15 18:51:07 -080017cc_defaults {
18 name: "VtsHalAudioEffectTargetTest_default",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080019 defaults: ["VtsHalTargetTestDefaults"],
20 srcs: [
21 "VtsHalAudioEffectTargetTest.cpp",
22 "ValidateAudioEffectsConfiguration.cpp"
23 ],
24 static_libs: [
25 "android.hardware.audio.common.test.utility",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080026 "android.hidl.allocator@1.0",
27 "android.hidl.memory@1.0",
28 "libeffectsconfig",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080029 "libxml2",
30 ],
31 header_libs: [
32 "android.hardware.audio.common.util@all-versions",
33 ],
Dan Shiba894f82020-03-26 00:06:39 -070034 test_suites: ["general-tests", "vts"],
Kevin Rocard1108d4a2018-11-15 18:51:07 -080035}
36
37cc_test {
38 name: "VtsHalAudioEffectV2_0TargetTest",
39 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shiba894f82020-03-26 00:06:39 -070040 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080041 // TODO(b/146104851): Add auto-gen rules and remove it.
42 test_config: "VtsHalAudioEffectV2_0TargetTest.xml",
Kevin Rocard1108d4a2018-11-15 18:51:07 -080043 static_libs: [
44 "android.hardware.audio.common@2.0",
45 "android.hardware.audio.effect@2.0",
46 ],
nelsonli3c12e582019-12-12 13:53:49 +080047 data: [
48 ":audio_effects_conf_V2_0",
49 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080050 cflags: [
51 "-DMAJOR_VERSION=2",
52 "-DMINOR_VERSION=0",
53 "-include common/all-versions/VersionMacro.h",
54 ]
55}
56
57cc_test {
58 name: "VtsHalAudioEffectV4_0TargetTest",
Kevin Rocard1108d4a2018-11-15 18:51:07 -080059 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shiba894f82020-03-26 00:06:39 -070060 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080061 // TODO(b/146104851): Add auto-gen rules and remove it.
62 test_config: "VtsHalAudioEffectV4_0TargetTest.xml",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080063 static_libs: [
Kevin Rocard96d2cd92018-11-14 16:22:07 -080064 "android.hardware.audio.common@4.0",
65 "android.hardware.audio.effect@4.0",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080066 ],
nelsonli3c12e582019-12-12 13:53:49 +080067 data: [
68 ":audio_effects_conf_V4_0",
69 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080070 cflags: [
71 "-DMAJOR_VERSION=4",
72 "-DMINOR_VERSION=0",
73 "-include common/all-versions/VersionMacro.h",
74 ]
75}
Kevin Rocard20614ba2018-11-10 07:20:17 -080076
77cc_test {
78 name: "VtsHalAudioEffectV5_0TargetTest",
79 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shiba894f82020-03-26 00:06:39 -070080 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080081 // TODO(b/146104851): Add auto-gen rules and remove it.
82 test_config: "VtsHalAudioEffectV5_0TargetTest.xml",
Kevin Rocard20614ba2018-11-10 07:20:17 -080083 static_libs: [
84 "android.hardware.audio.common@5.0",
85 "android.hardware.audio.effect@5.0",
86 ],
nelsonli3c12e582019-12-12 13:53:49 +080087 data: [
88 ":audio_effects_conf_V5_0",
89 ],
Kevin Rocard20614ba2018-11-10 07:20:17 -080090 cflags: [
91 "-DMAJOR_VERSION=5",
92 "-DMINOR_VERSION=0",
93 "-include common/all-versions/VersionMacro.h",
94 ]
95}
96
Kevin Rocard2a515e12019-09-30 19:53:00 +010097cc_test {
98 name: "VtsHalAudioEffectV6_0TargetTest",
99 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shiba894f82020-03-26 00:06:39 -0700100 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +0800101 // TODO(b/146104851): Add auto-gen rules and remove it.
102 test_config: "VtsHalAudioEffectV6_0TargetTest.xml",
Kevin Rocard2a515e12019-09-30 19:53:00 +0100103 static_libs: [
104 "android.hardware.audio.common@6.0",
105 "android.hardware.audio.effect@6.0",
106 ],
nelsonli3c12e582019-12-12 13:53:49 +0800107 data: [
108 ":audio_effects_conf_V6_0",
109 ],
Kevin Rocard2a515e12019-09-30 19:53:00 +0100110 cflags: [
111 "-DMAJOR_VERSION=6",
112 "-DMINOR_VERSION=0",
113 "-include common/all-versions/VersionMacro.h",
114 ]
115}
Mikhail Naganov60ced762020-07-23 18:08:26 +0000116
117cc_test {
118 name: "VtsHalAudioEffectV7_0TargetTest",
119 defaults: ["VtsHalAudioEffectTargetTest_default"],
120 // Use test_config for vts suite.
121 // TODO(b/146104851): Add auto-gen rules and remove it.
122 test_config: "VtsHalAudioEffectV7_0TargetTest.xml",
123 static_libs: [
124 "android.hardware.audio.common@7.0",
125 "android.hardware.audio.effect@7.0",
126 ],
127 data: [
128 ":audio_effects_conf_V7_0",
129 ],
130 cflags: [
131 "-DMAJOR_VERSION=7",
132 "-DMINOR_VERSION=0",
133 "-include common/all-versions/VersionMacro.h",
134 ]
135}