• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-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")
15import("../../../../hdf_core/adapter/uhdf2/uhdf.gni")
16
17HDI_SERVICE_ROOT_DIR = "../.."
18
19ohos_shared_library("libwlan_service_extend") {
20  include_dirs = [
21    "$HDI_SERVICE_ROOT_DIR/interfaces/include",
22    "$HDI_SERVICE_ROOT_DIR/client/include",
23    "$HDI_SERVICE_ROOT_DIR/hal/include",
24    "$HDI_SERVICE_ROOT_DIR/hdi_service/service_common",
25    "$HDI_SERVICE_ROOT_DIR/hdi_service/service_extend",
26  ]
27  sources = [ "wlan_extend_cmd.c" ]
28
29  deps = [ "$HDI_SERVICE_ROOT_DIR/hal:wifi_hal" ]
30
31  external_deps = [ "drivers_interface_wlan:wlan_idl_headers" ]
32
33  defines = [ "__OHOS__USER__" ]
34
35  cflags = [
36    "-Wall",
37    "-Wextra",
38    "-Werror",
39    "-fsigned-char",
40    "-fno-common",
41    "-fno-strict-aliasing",
42    "-fstack-protector-all",
43  ]
44
45  if (is_standard_system) {
46    external_deps += [
47      "c_utils:utils",
48      "hdf_core:libhdf_host",
49      "hdf_core:libhdf_ipc_adapter",
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