Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 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 | |
Kevin Rocard | 1108d4a | 2018-11-15 18:51:07 -0800 | [diff] [blame] | 17 | cc_defaults { |
| 18 | name: "VtsHalAudioEffectTargetTest_default", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 19 | defaults: ["VtsHalTargetTestDefaults"], |
| 20 | srcs: [ |
| 21 | "VtsHalAudioEffectTargetTest.cpp", |
| 22 | "ValidateAudioEffectsConfiguration.cpp" |
| 23 | ], |
| 24 | static_libs: [ |
| 25 | "android.hardware.audio.common.test.utility", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 26 | "android.hidl.allocator@1.0", |
| 27 | "android.hidl.memory@1.0", |
| 28 | "libeffectsconfig", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 29 | "libxml2", |
| 30 | ], |
| 31 | header_libs: [ |
| 32 | "android.hardware.audio.common.util@all-versions", |
| 33 | ], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame^] | 34 | test_suites: ["general-tests", "vts"], |
Kevin Rocard | 1108d4a | 2018-11-15 18:51:07 -0800 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | cc_test { |
| 38 | name: "VtsHalAudioEffectV2_0TargetTest", |
| 39 | defaults: ["VtsHalAudioEffectTargetTest_default"], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame^] | 40 | // Use test_config for vts suite. |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 41 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 42 | test_config: "VtsHalAudioEffectV2_0TargetTest.xml", |
Kevin Rocard | 1108d4a | 2018-11-15 18:51:07 -0800 | [diff] [blame] | 43 | static_libs: [ |
| 44 | "android.hardware.audio.common@2.0", |
| 45 | "android.hardware.audio.effect@2.0", |
| 46 | ], |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 47 | data: [ |
| 48 | ":audio_effects_conf_V2_0", |
| 49 | ], |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 50 | cflags: [ |
| 51 | "-DMAJOR_VERSION=2", |
| 52 | "-DMINOR_VERSION=0", |
| 53 | "-include common/all-versions/VersionMacro.h", |
| 54 | ] |
| 55 | } |
| 56 | |
| 57 | cc_test { |
| 58 | name: "VtsHalAudioEffectV4_0TargetTest", |
Kevin Rocard | 1108d4a | 2018-11-15 18:51:07 -0800 | [diff] [blame] | 59 | defaults: ["VtsHalAudioEffectTargetTest_default"], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame^] | 60 | // Use test_config for vts suite. |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 61 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 62 | test_config: "VtsHalAudioEffectV4_0TargetTest.xml", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 63 | static_libs: [ |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 64 | "android.hardware.audio.common@4.0", |
| 65 | "android.hardware.audio.effect@4.0", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 66 | ], |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 67 | data: [ |
| 68 | ":audio_effects_conf_V4_0", |
| 69 | ], |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 70 | cflags: [ |
| 71 | "-DMAJOR_VERSION=4", |
| 72 | "-DMINOR_VERSION=0", |
| 73 | "-include common/all-versions/VersionMacro.h", |
| 74 | ] |
| 75 | } |
Kevin Rocard | 20614ba | 2018-11-10 07:20:17 -0800 | [diff] [blame] | 76 | |
| 77 | cc_test { |
| 78 | name: "VtsHalAudioEffectV5_0TargetTest", |
| 79 | defaults: ["VtsHalAudioEffectTargetTest_default"], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame^] | 80 | // Use test_config for vts suite. |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 81 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 82 | test_config: "VtsHalAudioEffectV5_0TargetTest.xml", |
Kevin Rocard | 20614ba | 2018-11-10 07:20:17 -0800 | [diff] [blame] | 83 | static_libs: [ |
| 84 | "android.hardware.audio.common@5.0", |
| 85 | "android.hardware.audio.effect@5.0", |
| 86 | ], |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 87 | data: [ |
| 88 | ":audio_effects_conf_V5_0", |
| 89 | ], |
Kevin Rocard | 20614ba | 2018-11-10 07:20:17 -0800 | [diff] [blame] | 90 | cflags: [ |
| 91 | "-DMAJOR_VERSION=5", |
| 92 | "-DMINOR_VERSION=0", |
| 93 | "-include common/all-versions/VersionMacro.h", |
| 94 | ] |
| 95 | } |
| 96 | |
Kevin Rocard | 2a515e1 | 2019-09-30 19:53:00 +0100 | [diff] [blame] | 97 | cc_test { |
| 98 | name: "VtsHalAudioEffectV6_0TargetTest", |
| 99 | defaults: ["VtsHalAudioEffectTargetTest_default"], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame^] | 100 | // Use test_config for vts suite. |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 101 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 102 | test_config: "VtsHalAudioEffectV6_0TargetTest.xml", |
Kevin Rocard | 2a515e1 | 2019-09-30 19:53:00 +0100 | [diff] [blame] | 103 | static_libs: [ |
| 104 | "android.hardware.audio.common@6.0", |
| 105 | "android.hardware.audio.effect@6.0", |
| 106 | ], |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 107 | data: [ |
| 108 | ":audio_effects_conf_V6_0", |
| 109 | ], |
Kevin Rocard | 2a515e1 | 2019-09-30 19:53:00 +0100 | [diff] [blame] | 110 | cflags: [ |
| 111 | "-DMAJOR_VERSION=6", |
| 112 | "-DMINOR_VERSION=0", |
| 113 | "-include common/all-versions/VersionMacro.h", |
| 114 | ] |
| 115 | } |