1// 2// Copyright (C) 2017 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: "VtsHalAudioTargetTest_defaults", 19 defaults: ["VtsHalTargetTestDefaults"], 20 static_libs: [ 21 "android.hardware.audio.common.test.utility", 22 "libaudiofoundation", 23 "libaudiopolicycomponents", 24 "libmedia_helper", 25 "libxml2", 26 ], 27 shared_libs: [ 28 "libbinder", 29 "libfmq", 30 ], 31 header_libs: [ 32 "android.hardware.audio.common.util@all-versions", 33 ], 34 test_suites: [ 35 "general-tests", 36 "vts", 37 ], 38} 39 40cc_test { 41 name: "VtsHalAudioV2_0TargetTest", 42 defaults: ["VtsHalAudioTargetTest_defaults"], 43 srcs: [ 44 "2.0/AudioPrimaryHidlHalTest.cpp", 45 ], 46 static_libs: [ 47 "android.hardware.audio@2.0", 48 "android.hardware.audio.common@2.0", 49 ], 50 cflags: [ 51 "-DMAJOR_VERSION=2", 52 "-DMINOR_VERSION=0", 53 "-include common/all-versions/VersionMacro.h", 54 ], 55 data: [ 56 ":audio_policy_configuration_V2_0", 57 ], 58 // Use test_config for vts-core suite. 59 // TODO(b/146104851): Add auto-gen rules and remove it. 60 test_config: "VtsHalAudioV2_0TargetTest.xml", 61} 62 63cc_test { 64 name: "VtsHalAudioV4_0TargetTest", 65 defaults: ["VtsHalAudioTargetTest_defaults"], 66 srcs: [ 67 "4.0/AudioPrimaryHidlHalTest.cpp", 68 ], 69 static_libs: [ 70 "android.hardware.audio@4.0", 71 "android.hardware.audio.common@4.0", 72 ], 73 cflags: [ 74 "-DMAJOR_VERSION=4", 75 "-DMINOR_VERSION=0", 76 "-include common/all-versions/VersionMacro.h", 77 ], 78 data: [ 79 ":audio_policy_configuration_V4_0", 80 ], 81 // Use test_config for vts-core suite. 82 // TODO(b/146104851): Add auto-gen rules and remove it. 83 test_config: "VtsHalAudioV4_0TargetTest.xml", 84} 85 86cc_test { 87 name: "VtsHalAudioV5_0TargetTest", 88 defaults: ["VtsHalAudioTargetTest_defaults"], 89 srcs: [ 90 "5.0/AudioPrimaryHidlHalTest.cpp", 91 ], 92 static_libs: [ 93 "android.hardware.audio@5.0", 94 "android.hardware.audio.common@5.0", 95 ], 96 cflags: [ 97 "-DMAJOR_VERSION=5", 98 "-DMINOR_VERSION=0", 99 "-include common/all-versions/VersionMacro.h", 100 ], 101 data: [ 102 ":audio_policy_configuration_V5_0", 103 ], 104 // Use test_config for vts-core suite. 105 // TODO(b/146104851): Add auto-gen rules and remove it. 106 test_config: "VtsHalAudioV5_0TargetTest.xml", 107} 108 109cc_test { 110 name: "VtsHalAudioV6_0TargetTest", 111 defaults: ["VtsHalAudioTargetTest_defaults"], 112 srcs: [ 113 "6.0/AudioPrimaryHidlHalTest.cpp", 114 ], 115 static_libs: [ 116 "android.hardware.audio@6.0", 117 "android.hardware.audio.common@6.0", 118 ], 119 cflags: [ 120 "-DMAJOR_VERSION=6", 121 "-DMINOR_VERSION=0", 122 "-include common/all-versions/VersionMacro.h", 123 ], 124 data: [ 125 ":audio_policy_configuration_V6_0", 126 ], 127 // Use test_config for vts-core suite. 128 // TODO(b/146104851): Add auto-gen rules and remove it. 129 test_config: "VtsHalAudioV6_0TargetTest.xml", 130} 131