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