• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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
14import("//build/ohos.gni")
15import("//drivers/adapter/uhdf2/uhdf.gni")
16
17ohos_shared_library("wifi_hdi_device") {
18  output_name = "wifi_hdi_device"
19  sources = [
20    "client/wlan_hal_proxy.cpp",
21    "services/wlan_hdi_drivers.c",
22    "services/wlan_hdi_service_stub.c",
23  ]
24
25  include_dirs = [
26    "include",
27    "//drivers/peripheral/wlan/interfaces/include",
28    "//drivers/peripheral/wlan/client/include",
29    "//drivers/peripheral/wlan/hal/include",
30    "//drivers/peripheral/wlan/hdi_service/include",
31    "//drivers/peripheral/wlan/hdi_service/services",
32  ]
33
34  deps = [
35    "//drivers/peripheral/wlan/client:wifi_driver_client",
36    "//drivers/peripheral/wlan/hal:wifi_hal",
37  ]
38
39  defines = [ "__OHOS__USER__" ]
40
41  cflags = [
42    "-Wall",
43    "-Wextra",
44    "-Werror",
45    "-fsigned-char",
46    "-fno-common",
47    "-fno-strict-aliasing",
48  ]
49
50  install_images = [ chipset_base_dir ]
51  subsystem_name = "hdf"
52  part_name = "wlan_device_driver"
53  if (is_standard_system) {
54    external_deps = [
55      "device_driver_framework:libhdf_host",
56      "device_driver_framework:libhdf_ipc_adapter",
57      "device_driver_framework:libhdf_utils",
58      "device_driver_framework:libhdi",
59      "hiviewdfx_hilog_native:libhilog",
60      "ipc:ipc_single",
61      "utils_base:utils",
62    ]
63  } else {
64    external_deps = [ "hilog:libhilog" ]
65  }
66  external_deps += [ "ipc:ipc_single" ]
67}
68
69ohos_shared_library("wifi_hdi_c_device") {
70  output_name = "wifi_hdi_c_device"
71  sources = [
72    "client/wlan_hal_c_proxy.c",
73    "services/wlan_hdi_drivers.c",
74    "services/wlan_hdi_service_stub.c",
75  ]
76
77  include_dirs = [
78    "include",
79    "//drivers/peripheral/wlan/interfaces/include",
80    "//drivers/peripheral/wlan/client/include",
81    "//drivers/peripheral/wlan/hal/include",
82    "//drivers/peripheral/wlan/hdi_service/include",
83    "//drivers/peripheral/wlan/hdi_service/services",
84    "//framework/core/host/include",
85  ]
86
87  deps = [
88    "//drivers/peripheral/wlan/client:wifi_driver_client",
89    "//drivers/peripheral/wlan/hal:wifi_hal",
90  ]
91
92  defines = [ "__OHOS__USER__" ]
93
94  cflags = [
95    "-Wall",
96    "-Wextra",
97    "-Werror",
98    "-fsigned-char",
99    "-fno-common",
100    "-fno-strict-aliasing",
101  ]
102
103  install_images = [ chipset_base_dir ]
104  subsystem_name = "hdf"
105  part_name = "wlan_device_driver"
106  if (is_standard_system) {
107    external_deps = [
108      "device_driver_framework:libhdf_host",
109      "device_driver_framework:libhdf_ipc_adapter",
110      "device_driver_framework:libhdf_utils",
111      "device_driver_framework:libhdi",
112      "hiviewdfx_hilog_native:libhilog",
113      "ipc:ipc_single",
114      "utils_base:utils",
115    ]
116  } else {
117    external_deps = [ "hilog:libhilog" ]
118  }
119  external_deps += [ "ipc:ipc_single" ]
120}
121