• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17cc_defaults {
18    name: "VtsHalAudioEffectTargetTest_default",
19    defaults: ["VtsHalTargetTestDefaults"],
20    srcs: [
21        "VtsHalAudioEffectTargetTest.cpp",
22        "ValidateAudioEffectsConfiguration.cpp"
23    ],
24    static_libs: [
25        "android.hardware.audio.common.test.utility",
26        "android.hidl.allocator@1.0",
27        "android.hidl.memory@1.0",
28        "libeffectsconfig",
29        "libxml2",
30    ],
31    header_libs: [
32        "android.hardware.audio.common.util@all-versions",
33    ],
34    test_suites: ["general-tests", "vts"],
35}
36
37cc_test {
38    name: "VtsHalAudioEffectV2_0TargetTest",
39    defaults: ["VtsHalAudioEffectTargetTest_default"],
40    // Use test_config for vts suite.
41    // TODO(b/146104851): Add auto-gen rules and remove it.
42    test_config: "VtsHalAudioEffectV2_0TargetTest.xml",
43    static_libs: [
44        "android.hardware.audio.common@2.0",
45        "android.hardware.audio.effect@2.0",
46    ],
47    data: [
48        ":audio_effects_conf_V2_0",
49    ],
50    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",
59    defaults: ["VtsHalAudioEffectTargetTest_default"],
60    // Use test_config for vts suite.
61    // TODO(b/146104851): Add auto-gen rules and remove it.
62    test_config: "VtsHalAudioEffectV4_0TargetTest.xml",
63    static_libs: [
64        "android.hardware.audio.common@4.0",
65        "android.hardware.audio.effect@4.0",
66    ],
67    data: [
68        ":audio_effects_conf_V4_0",
69    ],
70    cflags: [
71        "-DMAJOR_VERSION=4",
72        "-DMINOR_VERSION=0",
73        "-include common/all-versions/VersionMacro.h",
74    ]
75}
76
77cc_test {
78    name: "VtsHalAudioEffectV5_0TargetTest",
79    defaults: ["VtsHalAudioEffectTargetTest_default"],
80    // Use test_config for vts suite.
81    // TODO(b/146104851): Add auto-gen rules and remove it.
82    test_config: "VtsHalAudioEffectV5_0TargetTest.xml",
83    static_libs: [
84        "android.hardware.audio.common@5.0",
85        "android.hardware.audio.effect@5.0",
86    ],
87    data: [
88        ":audio_effects_conf_V5_0",
89    ],
90    cflags: [
91        "-DMAJOR_VERSION=5",
92        "-DMINOR_VERSION=0",
93        "-include common/all-versions/VersionMacro.h",
94    ]
95}
96
97cc_test {
98    name: "VtsHalAudioEffectV6_0TargetTest",
99    defaults: ["VtsHalAudioEffectTargetTest_default"],
100    // Use test_config for vts suite.
101    // TODO(b/146104851): Add auto-gen rules and remove it.
102    test_config: "VtsHalAudioEffectV6_0TargetTest.xml",
103    static_libs: [
104        "android.hardware.audio.common@6.0",
105        "android.hardware.audio.effect@6.0",
106    ],
107    data: [
108        ":audio_effects_conf_V6_0",
109    ],
110    cflags: [
111        "-DMAJOR_VERSION=6",
112        "-DMINOR_VERSION=0",
113        "-include common/all-versions/VersionMacro.h",
114    ]
115}
116