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