xref: /aosp_15_r20/hardware/interfaces/audio/effect/all-versions/vts/functional/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1//
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
17package {
18    default_team: "trendy_team_android_media_audio_framework",
19    // See: http://go/android-license-faq
20    // A large-scale-change added 'default_applicable_licenses' to import
21    // all of the 'license_kinds' from "hardware_interfaces_license"
22    // to get the below license kinds:
23    //   SPDX-license-identifier-Apache-2.0
24    default_applicable_licenses: ["hardware_interfaces_license"],
25}
26
27cc_defaults {
28    name: "VtsHalAudioEffectTargetTest_default",
29    defaults: ["VtsHalTargetTestDefaults"],
30    tidy_timeout_srcs: [
31        "VtsHalAudioEffectTargetTest.cpp",
32    ],
33    srcs: [
34        "VtsHalAudioEffectTargetTest.cpp",
35        "ValidateAudioEffectsConfiguration.cpp",
36    ],
37    static_libs: [
38        "android.hardware.audio.common.test.utility",
39        "[email protected]",
40        "[email protected]",
41        "libeffectsconfig",
42        "libxml2",
43    ],
44    header_libs: [
45        "android.hardware.audio.common.util@all-versions",
46    ],
47    test_suites: [
48        "general-tests",
49        "vts",
50    ],
51}
52
53cc_test {
54    name: "VtsHalAudioEffectV2_0TargetTest",
55    defaults: ["VtsHalAudioEffectTargetTest_default"],
56    // Use test_config for vts suite.
57    // TODO(b/146104851): Add auto-gen rules and remove it.
58    test_config: "VtsHalAudioEffectV2_0TargetTest.xml",
59    static_libs: [
60        "[email protected]",
61        "[email protected]",
62    ],
63    data: [
64        ":audio_effects_conf_V2_0",
65    ],
66    cflags: [
67        "-DMAJOR_VERSION=2",
68        "-DMINOR_VERSION=0",
69        "-include common/all-versions/VersionMacro.h",
70    ],
71}
72
73cc_test {
74    name: "VtsHalAudioEffectV4_0TargetTest",
75    defaults: ["VtsHalAudioEffectTargetTest_default"],
76    // Use test_config for vts suite.
77    // TODO(b/146104851): Add auto-gen rules and remove it.
78    test_config: "VtsHalAudioEffectV4_0TargetTest.xml",
79    static_libs: [
80        "[email protected]",
81        "[email protected]",
82    ],
83    data: [
84        ":audio_effects_conf_V4_0",
85    ],
86    cflags: [
87        "-DMAJOR_VERSION=4",
88        "-DMINOR_VERSION=0",
89        "-include common/all-versions/VersionMacro.h",
90    ],
91}
92
93cc_test {
94    name: "VtsHalAudioEffectV5_0TargetTest",
95    defaults: ["VtsHalAudioEffectTargetTest_default"],
96    // Use test_config for vts suite.
97    // TODO(b/146104851): Add auto-gen rules and remove it.
98    test_config: "VtsHalAudioEffectV5_0TargetTest.xml",
99    static_libs: [
100        "[email protected]",
101        "[email protected]",
102    ],
103    data: [
104        ":audio_effects_conf_V5_0",
105    ],
106    cflags: [
107        "-DMAJOR_VERSION=5",
108        "-DMINOR_VERSION=0",
109        "-include common/all-versions/VersionMacro.h",
110    ],
111}
112
113cc_test {
114    name: "VtsHalAudioEffectV6_0TargetTest",
115    defaults: ["VtsHalAudioEffectTargetTest_default"],
116    // Use test_config for vts suite.
117    // TODO(b/146104851): Add auto-gen rules and remove it.
118    test_config: "VtsHalAudioEffectV6_0TargetTest.xml",
119    static_libs: [
120        "[email protected]",
121        "[email protected]",
122    ],
123    data: [
124        ":audio_effects_conf_V6_0",
125    ],
126    cflags: [
127        "-DMAJOR_VERSION=6",
128        "-DMINOR_VERSION=0",
129        "-include common/all-versions/VersionMacro.h",
130    ],
131}
132
133cc_test {
134    name: "VtsHalAudioEffectV7_0TargetTest",
135    defaults: ["VtsHalAudioEffectTargetTest_default"],
136    // Use test_config for vts suite.
137    // TODO(b/146104851): Add auto-gen rules and remove it.
138    test_config: "VtsHalAudioEffectV7_0TargetTest.xml",
139    static_libs: [
140        "[email protected]",
141        "[email protected]",
142        "[email protected]",
143    ],
144    data: [
145        ":audio_effects_conf_V7_0",
146    ],
147    cflags: [
148        "-DMAJOR_VERSION=7",
149        "-DMINOR_VERSION=0",
150        "-include common/all-versions/VersionMacro.h",
151    ],
152}
153