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", |
Mikhail Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 22 | "ValidateAudioEffectsConfiguration.cpp", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 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 | ], |
Mikhail Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 34 | test_suites: [ |
| 35 | "general-tests", |
| 36 | "vts", |
| 37 | ], |
Kevin Rocard | 1108d4a | 2018-11-15 18:51:07 -0800 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | cc_test { |
| 41 | name: "VtsHalAudioEffectV2_0TargetTest", |
| 42 | defaults: ["VtsHalAudioEffectTargetTest_default"], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame] | 43 | // Use test_config for vts suite. |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 44 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 45 | test_config: "VtsHalAudioEffectV2_0TargetTest.xml", |
Kevin Rocard | 1108d4a | 2018-11-15 18:51:07 -0800 | [diff] [blame] | 46 | static_libs: [ |
| 47 | "android.hardware.audio.common@2.0", |
| 48 | "android.hardware.audio.effect@2.0", |
| 49 | ], |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 50 | data: [ |
| 51 | ":audio_effects_conf_V2_0", |
| 52 | ], |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 53 | cflags: [ |
| 54 | "-DMAJOR_VERSION=2", |
| 55 | "-DMINOR_VERSION=0", |
| 56 | "-include common/all-versions/VersionMacro.h", |
Mikhail Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 57 | ], |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | cc_test { |
| 61 | name: "VtsHalAudioEffectV4_0TargetTest", |
Kevin Rocard | 1108d4a | 2018-11-15 18:51:07 -0800 | [diff] [blame] | 62 | defaults: ["VtsHalAudioEffectTargetTest_default"], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame] | 63 | // Use test_config for vts suite. |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 64 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 65 | test_config: "VtsHalAudioEffectV4_0TargetTest.xml", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 66 | static_libs: [ |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 67 | "android.hardware.audio.common@4.0", |
| 68 | "android.hardware.audio.effect@4.0", |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 69 | ], |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 70 | data: [ |
| 71 | ":audio_effects_conf_V4_0", |
| 72 | ], |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 73 | cflags: [ |
| 74 | "-DMAJOR_VERSION=4", |
| 75 | "-DMINOR_VERSION=0", |
| 76 | "-include common/all-versions/VersionMacro.h", |
Mikhail Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 77 | ], |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 78 | } |
Kevin Rocard | 20614ba | 2018-11-10 07:20:17 -0800 | [diff] [blame] | 79 | |
| 80 | cc_test { |
| 81 | name: "VtsHalAudioEffectV5_0TargetTest", |
| 82 | defaults: ["VtsHalAudioEffectTargetTest_default"], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame] | 83 | // Use test_config for vts suite. |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 84 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 85 | test_config: "VtsHalAudioEffectV5_0TargetTest.xml", |
Kevin Rocard | 20614ba | 2018-11-10 07:20:17 -0800 | [diff] [blame] | 86 | static_libs: [ |
| 87 | "android.hardware.audio.common@5.0", |
| 88 | "android.hardware.audio.effect@5.0", |
| 89 | ], |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 90 | data: [ |
| 91 | ":audio_effects_conf_V5_0", |
| 92 | ], |
Kevin Rocard | 20614ba | 2018-11-10 07:20:17 -0800 | [diff] [blame] | 93 | cflags: [ |
| 94 | "-DMAJOR_VERSION=5", |
| 95 | "-DMINOR_VERSION=0", |
| 96 | "-include common/all-versions/VersionMacro.h", |
Mikhail Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 97 | ], |
Kevin Rocard | 20614ba | 2018-11-10 07:20:17 -0800 | [diff] [blame] | 98 | } |
| 99 | |
Kevin Rocard | 2a515e1 | 2019-09-30 19:53:00 +0100 | [diff] [blame] | 100 | cc_test { |
| 101 | name: "VtsHalAudioEffectV6_0TargetTest", |
| 102 | defaults: ["VtsHalAudioEffectTargetTest_default"], |
Dan Shi | ba894f8 | 2020-03-26 00:06:39 -0700 | [diff] [blame] | 103 | // Use test_config for vts suite. |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 104 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 105 | test_config: "VtsHalAudioEffectV6_0TargetTest.xml", |
Kevin Rocard | 2a515e1 | 2019-09-30 19:53:00 +0100 | [diff] [blame] | 106 | static_libs: [ |
| 107 | "android.hardware.audio.common@6.0", |
| 108 | "android.hardware.audio.effect@6.0", |
| 109 | ], |
nelsonli | 3c12e58 | 2019-12-12 13:53:49 +0800 | [diff] [blame] | 110 | data: [ |
| 111 | ":audio_effects_conf_V6_0", |
| 112 | ], |
Kevin Rocard | 2a515e1 | 2019-09-30 19:53:00 +0100 | [diff] [blame] | 113 | cflags: [ |
| 114 | "-DMAJOR_VERSION=6", |
| 115 | "-DMINOR_VERSION=0", |
| 116 | "-include common/all-versions/VersionMacro.h", |
Mikhail Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 117 | ], |
Kevin Rocard | 2a515e1 | 2019-09-30 19:53:00 +0100 | [diff] [blame] | 118 | } |
Mikhail Naganov | 60ced76 | 2020-07-23 18:08:26 +0000 | [diff] [blame] | 119 | |
| 120 | cc_test { |
| 121 | name: "VtsHalAudioEffectV7_0TargetTest", |
| 122 | defaults: ["VtsHalAudioEffectTargetTest_default"], |
| 123 | // Use test_config for vts suite. |
| 124 | // TODO(b/146104851): Add auto-gen rules and remove it. |
| 125 | test_config: "VtsHalAudioEffectV7_0TargetTest.xml", |
| 126 | static_libs: [ |
| 127 | "android.hardware.audio.common@7.0", |
Mikhail Naganov | d72a7c2 | 2020-08-14 00:16:09 +0000 | [diff] [blame^] | 128 | "android.hardware.audio.common@7.0-enums", |
Mikhail Naganov | 60ced76 | 2020-07-23 18:08:26 +0000 | [diff] [blame] | 129 | "android.hardware.audio.effect@7.0", |
| 130 | ], |
| 131 | data: [ |
| 132 | ":audio_effects_conf_V7_0", |
| 133 | ], |
| 134 | cflags: [ |
| 135 | "-DMAJOR_VERSION=7", |
| 136 | "-DMINOR_VERSION=0", |
| 137 | "-include common/all-versions/VersionMacro.h", |
Mikhail Naganov | a8814e5 | 2020-08-06 23:34:26 +0000 | [diff] [blame] | 138 | ], |
Mikhail Naganov | 60ced76 | 2020-07-23 18:08:26 +0000 | [diff] [blame] | 139 | } |