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