blob: 7cdb18f95feb2b0eac052697195592d287d974f4 [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",
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +000022 "ValidateAudioEffectsConfiguration.cpp",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080023 ],
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 ],
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +000034 test_suites: [
35 "general-tests",
36 "vts",
37 ],
Kevin Rocard1108d4a2018-11-15 18:51:07 -080038}
39
40cc_test {
41 name: "VtsHalAudioEffectV2_0TargetTest",
42 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shi3a8a6502020-03-26 00:06:39 -070043 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080044 // TODO(b/146104851): Add auto-gen rules and remove it.
45 test_config: "VtsHalAudioEffectV2_0TargetTest.xml",
Kevin Rocard1108d4a2018-11-15 18:51:07 -080046 static_libs: [
47 "android.hardware.audio.common@2.0",
48 "android.hardware.audio.effect@2.0",
49 ],
nelsonli3c12e582019-12-12 13:53:49 +080050 data: [
51 ":audio_effects_conf_V2_0",
52 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080053 cflags: [
54 "-DMAJOR_VERSION=2",
55 "-DMINOR_VERSION=0",
56 "-include common/all-versions/VersionMacro.h",
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +000057 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080058}
59
60cc_test {
61 name: "VtsHalAudioEffectV4_0TargetTest",
Kevin Rocard1108d4a2018-11-15 18:51:07 -080062 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shi3a8a6502020-03-26 00:06:39 -070063 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080064 // TODO(b/146104851): Add auto-gen rules and remove it.
65 test_config: "VtsHalAudioEffectV4_0TargetTest.xml",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080066 static_libs: [
Kevin Rocard96d2cd92018-11-14 16:22:07 -080067 "android.hardware.audio.common@4.0",
68 "android.hardware.audio.effect@4.0",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080069 ],
nelsonli3c12e582019-12-12 13:53:49 +080070 data: [
71 ":audio_effects_conf_V4_0",
72 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080073 cflags: [
74 "-DMAJOR_VERSION=4",
75 "-DMINOR_VERSION=0",
76 "-include common/all-versions/VersionMacro.h",
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +000077 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080078}
Kevin Rocard20614ba2018-11-10 07:20:17 -080079
80cc_test {
81 name: "VtsHalAudioEffectV5_0TargetTest",
82 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shi3a8a6502020-03-26 00:06:39 -070083 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080084 // TODO(b/146104851): Add auto-gen rules and remove it.
85 test_config: "VtsHalAudioEffectV5_0TargetTest.xml",
Kevin Rocard20614ba2018-11-10 07:20:17 -080086 static_libs: [
87 "android.hardware.audio.common@5.0",
88 "android.hardware.audio.effect@5.0",
89 ],
nelsonli3c12e582019-12-12 13:53:49 +080090 data: [
91 ":audio_effects_conf_V5_0",
92 ],
Kevin Rocard20614ba2018-11-10 07:20:17 -080093 cflags: [
94 "-DMAJOR_VERSION=5",
95 "-DMINOR_VERSION=0",
96 "-include common/all-versions/VersionMacro.h",
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +000097 ],
Kevin Rocard20614ba2018-11-10 07:20:17 -080098}
99
Kevin Rocard2a515e12019-09-30 19:53:00 +0100100cc_test {
101 name: "VtsHalAudioEffectV6_0TargetTest",
102 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shi3a8a6502020-03-26 00:06:39 -0700103 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +0800104 // TODO(b/146104851): Add auto-gen rules and remove it.
105 test_config: "VtsHalAudioEffectV6_0TargetTest.xml",
Kevin Rocard2a515e12019-09-30 19:53:00 +0100106 static_libs: [
107 "android.hardware.audio.common@6.0",
108 "android.hardware.audio.effect@6.0",
109 ],
nelsonli3c12e582019-12-12 13:53:49 +0800110 data: [
111 ":audio_effects_conf_V6_0",
112 ],
Kevin Rocard2a515e12019-09-30 19:53:00 +0100113 cflags: [
114 "-DMAJOR_VERSION=6",
115 "-DMINOR_VERSION=0",
116 "-include common/all-versions/VersionMacro.h",
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +0000117 ],
Kevin Rocard2a515e12019-09-30 19:53:00 +0100118}
Mikhail Naganov159260c2020-07-23 18:08:26 +0000119
120cc_test {
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +0000121 enabled: false,
Mikhail Naganov159260c2020-07-23 18:08:26 +0000122 name: "VtsHalAudioEffectV7_0TargetTest",
123 defaults: ["VtsHalAudioEffectTargetTest_default"],
124 // Use test_config for vts suite.
125 // TODO(b/146104851): Add auto-gen rules and remove it.
126 test_config: "VtsHalAudioEffectV7_0TargetTest.xml",
127 static_libs: [
128 "android.hardware.audio.common@7.0",
129 "android.hardware.audio.effect@7.0",
130 ],
131 data: [
132 ":audio_effects_conf_V7_0",
133 ],
134 cflags: [
135 "-DMAJOR_VERSION=7",
136 "-DMINOR_VERSION=0",
137 "-include common/all-versions/VersionMacro.h",
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +0000138 ],
Mikhail Naganov159260c2020-07-23 18:08:26 +0000139}