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 // 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 26cc_defaults { 27 name: "VtsHalAudioEffectTargetTest_default", 28 defaults: ["VtsHalTargetTestDefaults"], 29 srcs: [ 30 "VtsHalAudioEffectTargetTest.cpp", 31 "ValidateAudioEffectsConfiguration.cpp", 32 ], 33 static_libs: [ 34 "android.hardware.audio.common.test.utility", 35 "android.hidl.allocator@1.0", 36 "android.hidl.memory@1.0", 37 "libeffectsconfig", 38 "libxml2", 39 ], 40 header_libs: [ 41 "android.hardware.audio.common.util@all-versions", 42 ], 43 test_suites: [ 44 "general-tests", 45 "vts", 46 ], 47} 48 49cc_test { 50 name: "VtsHalAudioEffectV2_0TargetTest", 51 defaults: ["VtsHalAudioEffectTargetTest_default"], 52 // Use test_config for vts suite. 53 // TODO(b/146104851): Add auto-gen rules and remove it. 54 test_config: "VtsHalAudioEffectV2_0TargetTest.xml", 55 static_libs: [ 56 "android.hardware.audio.common@2.0", 57 "android.hardware.audio.effect@2.0", 58 ], 59 data: [ 60 ":audio_effects_conf_V2_0", 61 ], 62 cflags: [ 63 "-DMAJOR_VERSION=2", 64 "-DMINOR_VERSION=0", 65 "-include common/all-versions/VersionMacro.h", 66 ], 67} 68 69cc_test { 70 name: "VtsHalAudioEffectV4_0TargetTest", 71 defaults: ["VtsHalAudioEffectTargetTest_default"], 72 // Use test_config for vts suite. 73 // TODO(b/146104851): Add auto-gen rules and remove it. 74 test_config: "VtsHalAudioEffectV4_0TargetTest.xml", 75 static_libs: [ 76 "android.hardware.audio.common@4.0", 77 "android.hardware.audio.effect@4.0", 78 ], 79 data: [ 80 ":audio_effects_conf_V4_0", 81 ], 82 cflags: [ 83 "-DMAJOR_VERSION=4", 84 "-DMINOR_VERSION=0", 85 "-include common/all-versions/VersionMacro.h", 86 ], 87} 88 89cc_test { 90 name: "VtsHalAudioEffectV5_0TargetTest", 91 defaults: ["VtsHalAudioEffectTargetTest_default"], 92 // Use test_config for vts suite. 93 // TODO(b/146104851): Add auto-gen rules and remove it. 94 test_config: "VtsHalAudioEffectV5_0TargetTest.xml", 95 static_libs: [ 96 "android.hardware.audio.common@5.0", 97 "android.hardware.audio.effect@5.0", 98 ], 99 data: [ 100 ":audio_effects_conf_V5_0", 101 ], 102 cflags: [ 103 "-DMAJOR_VERSION=5", 104 "-DMINOR_VERSION=0", 105 "-include common/all-versions/VersionMacro.h", 106 ], 107} 108 109cc_test { 110 name: "VtsHalAudioEffectV6_0TargetTest", 111 defaults: ["VtsHalAudioEffectTargetTest_default"], 112 // Use test_config for vts suite. 113 // TODO(b/146104851): Add auto-gen rules and remove it. 114 test_config: "VtsHalAudioEffectV6_0TargetTest.xml", 115 static_libs: [ 116 "android.hardware.audio.common@6.0", 117 "android.hardware.audio.effect@6.0", 118 ], 119 data: [ 120 ":audio_effects_conf_V6_0", 121 ], 122 cflags: [ 123 "-DMAJOR_VERSION=6", 124 "-DMINOR_VERSION=0", 125 "-include common/all-versions/VersionMacro.h", 126 ], 127} 128 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", 137 "android.hardware.audio.common@7.0-enums", 138 "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", 147 ], 148} 149