Gabriel Biren | f3262f9 | 2022-07-15 23:25:39 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2022 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 | |
| 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 | |
| 26 | cc_test { |
| 27 | name: "VtsHalWifiChipTargetTest", |
| 28 | defaults: [ |
| 29 | "VtsHalTargetTestDefaults", |
| 30 | "use_libaidlvintf_gtest_helper_static", |
| 31 | ], |
| 32 | srcs: [ |
| 33 | "wifi_chip_aidl_test.cpp", |
| 34 | ], |
| 35 | shared_libs: [ |
| 36 | "libbinder", |
| 37 | "libbinder_ndk", |
| 38 | "libvndksupport", |
| 39 | ], |
| 40 | static_libs: [ |
| 41 | "VtsHalWifiTargetTestUtil", |
| 42 | "android.hardware.wifi-V1-ndk", |
| 43 | "libwifi-system-iface", |
| 44 | ], |
| 45 | test_suites: [ |
| 46 | "general-tests", |
| 47 | "vts", |
| 48 | ], |
| 49 | } |
| 50 | |
| 51 | cc_test { |
| 52 | name: "VtsHalWifiStaIfaceTargetTest", |
| 53 | defaults: [ |
| 54 | "VtsHalTargetTestDefaults", |
| 55 | "use_libaidlvintf_gtest_helper_static", |
| 56 | ], |
| 57 | srcs: [ |
| 58 | "wifi_sta_iface_aidl_test.cpp", |
| 59 | ], |
| 60 | shared_libs: [ |
| 61 | "libbinder", |
| 62 | "libbinder_ndk", |
| 63 | "libvndksupport", |
| 64 | ], |
| 65 | static_libs: [ |
| 66 | "VtsHalWifiTargetTestUtil", |
| 67 | "android.hardware.wifi-V1-ndk", |
| 68 | "libwifi-system-iface", |
| 69 | ], |
| 70 | test_suites: [ |
| 71 | "general-tests", |
| 72 | "vts", |
| 73 | ], |
| 74 | } |
| 75 | |
| 76 | cc_test { |
| 77 | name: "VtsHalWifiApIfaceTargetTest", |
| 78 | defaults: [ |
| 79 | "VtsHalTargetTestDefaults", |
| 80 | "use_libaidlvintf_gtest_helper_static", |
| 81 | ], |
| 82 | srcs: [ |
| 83 | "wifi_ap_iface_aidl_test.cpp", |
| 84 | ], |
| 85 | shared_libs: [ |
| 86 | "libbinder", |
| 87 | "libbinder_ndk", |
| 88 | "libvndksupport", |
| 89 | ], |
| 90 | static_libs: [ |
| 91 | "VtsHalWifiTargetTestUtil", |
| 92 | "android.hardware.wifi-V1-ndk", |
| 93 | "libwifi-system-iface", |
| 94 | ], |
| 95 | test_suites: [ |
| 96 | "general-tests", |
| 97 | "vts", |
| 98 | ], |
| 99 | } |
| 100 | |
| 101 | cc_test { |
| 102 | name: "VtsHalWifiNanIfaceTargetTest", |
| 103 | defaults: [ |
| 104 | "VtsHalTargetTestDefaults", |
| 105 | "use_libaidlvintf_gtest_helper_static", |
| 106 | ], |
| 107 | srcs: [ |
| 108 | "wifi_nan_iface_aidl_test.cpp", |
| 109 | ], |
| 110 | shared_libs: [ |
| 111 | "libbinder", |
| 112 | "libbinder_ndk", |
| 113 | "libvndksupport", |
| 114 | ], |
| 115 | static_libs: [ |
| 116 | "VtsHalWifiTargetTestUtil", |
| 117 | "android.hardware.wifi-V1-ndk", |
| 118 | "libwifi-system-iface", |
| 119 | ], |
| 120 | test_suites: [ |
| 121 | "general-tests", |
| 122 | "vts", |
| 123 | ], |
| 124 | } |
| 125 | |
| 126 | cc_test { |
| 127 | name: "VtsHalWifiRttControllerTargetTest", |
| 128 | defaults: [ |
| 129 | "VtsHalTargetTestDefaults", |
| 130 | "use_libaidlvintf_gtest_helper_static", |
| 131 | ], |
| 132 | srcs: [ |
| 133 | "wifi_rtt_controller_aidl_test.cpp", |
| 134 | ], |
| 135 | shared_libs: [ |
| 136 | "libbinder", |
| 137 | "libbinder_ndk", |
| 138 | "libvndksupport", |
| 139 | ], |
| 140 | static_libs: [ |
| 141 | "VtsHalWifiTargetTestUtil", |
| 142 | "android.hardware.wifi-V1-ndk", |
| 143 | "libwifi-system-iface", |
| 144 | ], |
| 145 | test_suites: [ |
| 146 | "general-tests", |
| 147 | "vts", |
| 148 | ], |
| 149 | } |
| 150 | |
| 151 | cc_library_static { |
| 152 | name: "VtsHalWifiTargetTestUtil", |
| 153 | defaults: ["VtsHalTargetTestDefaults"], |
| 154 | srcs: [ |
| 155 | "wifi_aidl_test_utils.cpp", |
| 156 | ], |
| 157 | export_include_dirs: [ |
| 158 | ".", |
| 159 | ], |
| 160 | shared_libs: [ |
| 161 | "libbinder", |
| 162 | "libbinder_ndk", |
| 163 | "libnativehelper", |
| 164 | ], |
| 165 | static_libs: [ |
| 166 | "android.hardware.wifi-V1-ndk", |
| 167 | "libwifi-system-iface", |
| 168 | ], |
| 169 | } |