• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2023 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")
15
16ohos_shared_library("libwlan_interface_service_1.2") {
17  include_dirs = [
18    "../interfaces/include",
19    "../client/include",
20    "../hal/include",
21    "./service_common",
22    "./service_extend",
23  ]
24  sources = [
25    "service_common/wlan_common_cmd.c",
26    "wlan_interface_service.c",
27  ]
28
29  deps = [
30    "../hal:wifi_hal",
31    "service_extend:libwlan_service_extend",
32  ]
33  external_deps = [ "drivers_interface_wlan:libwlan_stub_1.2" ]
34
35  defines = [ "__OHOS__USER__" ]
36
37  cflags = [
38    "-Wall",
39    "-Wextra",
40    "-Werror",
41    "-fsigned-char",
42    "-fno-common",
43    "-fno-strict-aliasing",
44  ]
45
46  if (is_standard_system) {
47    external_deps += [
48      "c_utils:utils",
49      "hdf_core:libhdf_host",
50      "hdf_core:libhdf_utils",
51      "hilog:libhilog",
52    ]
53  } else {
54    external_deps += [ "hilog:libhilog" ]
55  }
56
57  install_images = [ chipset_base_dir ]
58  subsystem_name = "hdf"
59  part_name = "drivers_peripheral_wlan"
60}
61
62ohos_shared_library("libwifi_hdi_c_device") {
63  include_dirs = [
64    "../interfaces/include",
65    "../client/include",
66    "../hal/include",
67    "./service_extend",
68  ]
69
70  sources = [ "wlan_interface_drivers.c" ]
71
72  deps = [
73    ":libwlan_interface_service_1.2",
74    "service_extend:libwlan_service_extend",
75  ]
76  external_deps = [ "drivers_interface_wlan:libwlan_stub_1.2" ]
77
78  cflags = [
79    "-Wall",
80    "-Wextra",
81    "-Werror",
82    "-fsigned-char",
83    "-fno-common",
84    "-fno-strict-aliasing",
85  ]
86
87  if (is_standard_system) {
88    external_deps += [
89      "c_utils:utils",
90      "hdf_core:libhdf_host",
91      "hdf_core:libhdf_ipc_adapter",
92      "hdf_core:libhdf_utils",
93      "hdf_core:libhdi",
94      "hilog:libhilog",
95    ]
96  } else {
97    external_deps += [ "hilog:libhilog" ]
98  }
99
100  shlib_type = "hdi"
101  install_images = [ chipset_base_dir ]
102  subsystem_name = "hdf"
103  part_name = "drivers_peripheral_wlan"
104}
105
106group("hdi_wlan_service") {
107  deps = [
108    ":libwifi_hdi_c_device",
109    ":libwlan_interface_service_1.2",
110  ]
111}
112