xref: /test/xts/hats/hdf/wlan/hdi_service/BUILD.gn (revision 9762338d)
1# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14base_root = "../../../../../../"
15import("//build/ohos_var.gni")
16import("//build/test.gni")
17import("//test/xts/tools/build/suite.gni")
18import("$base_root/drivers/hdf_core/adapter/uhdf2/uhdf.gni")
19
20module_output_path = "hats/wlan"
21
22ohos_moduletest_suite("HatsHdfWlanHdiServiceTest") {
23  module_out_path = module_output_path
24  sources = [
25    "wlan_callback_impl.c",
26    "wlan_hdi_direct_test.cpp",
27    "wlan_hdi_hal_services_c_test.cpp",
28  ]
29
30  deps = [
31    "$base_root/drivers/peripheral/wlan/hdi_service:hdi_wlan_service",
32    "//third_party/googletest:gmock_main",
33    "//third_party/googletest:gtest_main",
34  ]
35  configs = [ ":hdf_wlan_hdiservice" ]
36
37  if (is_standard_system) {
38    external_deps = [
39      "c_utils:utils",
40      "drivers_interface_wlan:libwlan_proxy_1.3",
41      "hdf_core:libhdf_host",
42      "hdf_core:libhdf_ipc_adapter",
43      "hdf_core:libhdf_utils",
44      "hdf_core:libhdi",
45      "hilog:libhilog",
46    ]
47  } else {
48    external_deps = [ "hilog:libhilog" ]
49  }
50  external_deps += [ "ipc:ipc_single" ]
51  subsystem_name = "communication"
52  part_name = "wifi"
53}
54
55config("hdf_wlan_hdiservice") {
56  include_dirs = [
57    "$base_root/drivers/peripheral/wlan/interfaces/include",
58    "$base_root/drivers/peripheral/wlan/hdi_service",
59    "$base_root/drivers/peripheral/wlan/client/include",
60    "$base_root/drivers/peripheral/wlan/hal/include",
61  ]
62}
63