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 17FWK_ROOT_DIR = "//drivers/framework" 18 19ohos_shared_library("wifi_hdi_device") { 20 output_name = "wifi_hdi_device" 21 sources = [ 22 "client/wlan_hal_proxy.cpp", 23 "services/wlan_hdi_drivers.c", 24 "services/wlan_hdi_service_stub.c", 25 ] 26 27 include_dirs = [ 28 "include", 29 "//drivers/peripheral/wlan/interfaces/include", 30 "//drivers/peripheral/wlan/client/include", 31 "//drivers/peripheral/wlan/hal/include", 32 "//drivers/peripheral/wlan/hdi_service/include", 33 "//drivers/peripheral/wlan/hdi_service/services", 34 "$FWK_ROOT_DIR/core/shared/include", 35 "$FWK_ROOT_DIR/include", 36 "$FWK_ROOT_DIR/include/wifi", 37 "$FWK_ROOT_DIR/include/core", 38 "$FWK_ROOT_DIR/include/utils", 39 "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", 40 "//drivers/adapter/uhdf2/shared/include", 41 "//drivers/adapter/uhdf2/include/host", 42 ] 43 44 deps = [ 45 "$hdf_uhdf_path/hdi:libhdi", 46 "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", 47 "//drivers/adapter/uhdf2/ipc:libhdf_ipc_adapter", 48 "//drivers/adapter/uhdf2/osal:libhdf_utils", 49 "//drivers/peripheral/wlan/client:wifi_driver_client", 50 "//drivers/peripheral/wlan/hal:wifi_hal", 51 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 52 "//utils/native/base:utils", 53 ] 54 55 defines = [ "__OHOS__USER__" ] 56 57 cflags = [ 58 "-Wall", 59 "-Wextra", 60 "-Werror", 61 "-fsigned-char", 62 "-fno-common", 63 "-fno-strict-aliasing", 64 ] 65 66 subsystem_name = "hdf" 67 if (is_standard_system) { 68 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 69 } else { 70 external_deps = [ "hilog:libhilog" ] 71 } 72} 73 74ohos_shared_library("wifi_hdi_c_device") { 75 output_name = "wifi_hdi_c_device" 76 sources = [ 77 "client/wlan_hal_c_proxy.c", 78 "services/wlan_hdi_drivers.c", 79 "services/wlan_hdi_service_stub.c", 80 ] 81 82 include_dirs = [ 83 "include", 84 "//drivers/peripheral/wlan/interfaces/include", 85 "//drivers/peripheral/wlan/client/include", 86 "//drivers/peripheral/wlan/hal/include", 87 "//drivers/peripheral/wlan/hdi_service/include", 88 "//drivers/peripheral/wlan/hdi_service/services", 89 "$FWK_ROOT_DIR/core/shared/include", 90 "$FWK_ROOT_DIR/include", 91 "$FWK_ROOT_DIR/include/wifi", 92 "$FWK_ROOT_DIR/include/core", 93 "$FWK_ROOT_DIR/include/utils", 94 "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", 95 "//drivers/adapter/uhdf2/shared/include", 96 "//drivers/adapter/uhdf2/include/host", 97 ] 98 99 deps = [ 100 "$hdf_uhdf_path/hdi:libhdi", 101 "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", 102 "//drivers/adapter/uhdf2/ipc:libhdf_ipc_adapter", 103 "//drivers/adapter/uhdf2/osal:libhdf_utils", 104 "//drivers/peripheral/wlan/client:wifi_driver_client", 105 "//drivers/peripheral/wlan/hal:wifi_hal", 106 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", 107 "//utils/native/base:utils", 108 ] 109 110 defines = [ "__OHOS__USER__" ] 111 112 cflags = [ 113 "-Wall", 114 "-Wextra", 115 "-Werror", 116 "-fsigned-char", 117 "-fno-common", 118 "-fno-strict-aliasing", 119 ] 120 121 subsystem_name = "hdf" 122 if (is_standard_system) { 123 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 124 } else { 125 external_deps = [ "hilog:libhilog" ] 126 } 127} 128