blob: 48d6474b41c1b6c66050197f5c67e0574f322327 [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
Bob Badourc22b35b2021-02-23 14:26:20 -080017package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "hardware_interfaces_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
Kevin Rocard1108d4a2018-11-15 18:51:07 -080026cc_defaults {
27 name: "VtsHalAudioEffectTargetTest_default",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080028 defaults: ["VtsHalTargetTestDefaults"],
29 srcs: [
30 "VtsHalAudioEffectTargetTest.cpp",
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +000031 "ValidateAudioEffectsConfiguration.cpp",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080032 ],
33 static_libs: [
34 "android.hardware.audio.common.test.utility",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080035 "android.hidl.allocator@1.0",
36 "android.hidl.memory@1.0",
37 "libeffectsconfig",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080038 "libxml2",
39 ],
40 header_libs: [
41 "android.hardware.audio.common.util@all-versions",
42 ],
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +000043 test_suites: [
44 "general-tests",
45 "vts",
46 ],
Kevin Rocard1108d4a2018-11-15 18:51:07 -080047}
48
49cc_test {
50 name: "VtsHalAudioEffectV2_0TargetTest",
51 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shi3a8a6502020-03-26 00:06:39 -070052 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080053 // TODO(b/146104851): Add auto-gen rules and remove it.
54 test_config: "VtsHalAudioEffectV2_0TargetTest.xml",
Kevin Rocard1108d4a2018-11-15 18:51:07 -080055 static_libs: [
56 "android.hardware.audio.common@2.0",
57 "android.hardware.audio.effect@2.0",
58 ],
nelsonli3c12e582019-12-12 13:53:49 +080059 data: [
60 ":audio_effects_conf_V2_0",
61 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080062 cflags: [
63 "-DMAJOR_VERSION=2",
64 "-DMINOR_VERSION=0",
65 "-include common/all-versions/VersionMacro.h",
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +000066 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080067}
68
69cc_test {
70 name: "VtsHalAudioEffectV4_0TargetTest",
Kevin Rocard1108d4a2018-11-15 18:51:07 -080071 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shi3a8a6502020-03-26 00:06:39 -070072 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080073 // TODO(b/146104851): Add auto-gen rules and remove it.
74 test_config: "VtsHalAudioEffectV4_0TargetTest.xml",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080075 static_libs: [
Kevin Rocard96d2cd92018-11-14 16:22:07 -080076 "android.hardware.audio.common@4.0",
77 "android.hardware.audio.effect@4.0",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080078 ],
nelsonli3c12e582019-12-12 13:53:49 +080079 data: [
80 ":audio_effects_conf_V4_0",
81 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080082 cflags: [
83 "-DMAJOR_VERSION=4",
84 "-DMINOR_VERSION=0",
85 "-include common/all-versions/VersionMacro.h",
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +000086 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080087}
Kevin Rocard20614ba2018-11-10 07:20:17 -080088
89cc_test {
90 name: "VtsHalAudioEffectV5_0TargetTest",
91 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shi3a8a6502020-03-26 00:06:39 -070092 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +080093 // TODO(b/146104851): Add auto-gen rules and remove it.
94 test_config: "VtsHalAudioEffectV5_0TargetTest.xml",
Kevin Rocard20614ba2018-11-10 07:20:17 -080095 static_libs: [
96 "android.hardware.audio.common@5.0",
97 "android.hardware.audio.effect@5.0",
98 ],
nelsonli3c12e582019-12-12 13:53:49 +080099 data: [
100 ":audio_effects_conf_V5_0",
101 ],
Kevin Rocard20614ba2018-11-10 07:20:17 -0800102 cflags: [
103 "-DMAJOR_VERSION=5",
104 "-DMINOR_VERSION=0",
105 "-include common/all-versions/VersionMacro.h",
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +0000106 ],
Kevin Rocard20614ba2018-11-10 07:20:17 -0800107}
108
Kevin Rocard2a515e12019-09-30 19:53:00 +0100109cc_test {
110 name: "VtsHalAudioEffectV6_0TargetTest",
111 defaults: ["VtsHalAudioEffectTargetTest_default"],
Dan Shi3a8a6502020-03-26 00:06:39 -0700112 // Use test_config for vts suite.
nelsonli3c12e582019-12-12 13:53:49 +0800113 // TODO(b/146104851): Add auto-gen rules and remove it.
114 test_config: "VtsHalAudioEffectV6_0TargetTest.xml",
Kevin Rocard2a515e12019-09-30 19:53:00 +0100115 static_libs: [
116 "android.hardware.audio.common@6.0",
117 "android.hardware.audio.effect@6.0",
118 ],
nelsonli3c12e582019-12-12 13:53:49 +0800119 data: [
120 ":audio_effects_conf_V6_0",
121 ],
Kevin Rocard2a515e12019-09-30 19:53:00 +0100122 cflags: [
123 "-DMAJOR_VERSION=6",
124 "-DMINOR_VERSION=0",
125 "-include common/all-versions/VersionMacro.h",
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +0000126 ],
Kevin Rocard2a515e12019-09-30 19:53:00 +0100127}
Mikhail Naganov159260c2020-07-23 18:08:26 +0000128
129cc_test {
130 name: "VtsHalAudioEffectV7_0TargetTest",
131 defaults: ["VtsHalAudioEffectTargetTest_default"],
132 // Use test_config for vts suite.
133 // TODO(b/146104851): Add auto-gen rules and remove it.
134 test_config: "VtsHalAudioEffectV7_0TargetTest.xml",
135 static_libs: [
136 "android.hardware.audio.common@7.0",
Mikhail Naganov343450a2020-08-14 00:16:09 +0000137 "android.hardware.audio.common@7.0-enums",
Mikhail Naganov159260c2020-07-23 18:08:26 +0000138 "android.hardware.audio.effect@7.0",
139 ],
140 data: [
141 ":audio_effects_conf_V7_0",
142 ],
143 cflags: [
144 "-DMAJOR_VERSION=7",
145 "-DMINOR_VERSION=0",
146 "-include common/all-versions/VersionMacro.h",
Mikhail Naganov6cd03bf2020-08-06 23:34:26 +0000147 ],
Mikhail Naganov159260c2020-07-23 18:08:26 +0000148}