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 14import("//build/ohos.gni") 15 16ohos_shared_library("wifi") { 17 install_enable = true 18 include_dirs = [ 19 "//third_party/node/src", 20 "//native_engine", 21 "//utils/native/base/include", 22 "//foundation/communication/wifi/services/wifi_standard/wifi_framework/common/log", 23 "//foundation/communication/wifi/interfaces/innerkits/native_cpp/wifi_standard/interfaces", 24 "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", 25 "//foundation/communication/wifi/interfaces/innerkits/native_cpp/wifi_standard/include", 26 "//foundation/communication/wifi/services/wifi_standard/wifi_framework/common/net_helper", 27 "//foundation/aafwk/standard/frameworks/kits/appkit/native/ability_runtime/context", 28 "//foundation/communication/wifi/utils/inc", 29 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base/include", 30 ] 31 32 sources = [ 33 "wifi_napi_device.cpp", 34 "wifi_napi_entry.cpp", 35 "wifi_napi_event.cpp", 36 "wifi_napi_hotspot.cpp", 37 "wifi_napi_p2p.cpp", 38 "wifi_napi_utils.cpp", 39 ] 40 deps = [ 41 "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", 42 "//foundation/aafwk/standard/frameworks/kits/appkit:app_context", 43 "//foundation/ace/napi:ace_napi", 44 "//foundation/communication/wifi/interfaces/innerkits/native_cpp/wifi_standard:wifi_sdk", 45 "//foundation/communication/wifi/utils/src:wifi_utils", 46 "//utils/native/base:utils", 47 ] 48 49 external_deps = [ "ipc:ipc_core" ] 50 51 relative_install_dir = "module" 52 part_name = "wifi_standard" 53 subsystem_name = "communication" 54} 55 56ohos_shared_library("wifi_native_js") { 57 install_enable = true 58 include_dirs = [ 59 "//third_party/node/src", 60 "//native_engine", 61 "//utils/native/base/include", 62 "//foundation/communication/wifi/services/wifi_standard/wifi_framework/common/log", 63 "//foundation/communication/wifi/interfaces/innerkits/native_cpp/wifi_standard/interfaces", 64 "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", 65 "//foundation/communication/wifi/interfaces/innerkits/native_cpp/wifi_standard/include", 66 "//foundation/communication/wifi/services/wifi_standard/wifi_framework/common/net_helper", 67 "//foundation/aafwk/standard/frameworks/kits/appkit/native/ability_runtime/context", 68 "//foundation/communication/wifi/utils/inc", 69 "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base/include", 70 ] 71 72 sources = [ 73 "wifi_napi_device.cpp", 74 "wifi_napi_entry.cpp", 75 "wifi_napi_event.cpp", 76 "wifi_napi_hotspot.cpp", 77 "wifi_napi_p2p.cpp", 78 "wifi_napi_utils.cpp", 79 ] 80 deps = [ 81 "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", 82 "//foundation/aafwk/standard/frameworks/kits/appkit:app_context", 83 "//foundation/ace/napi:ace_napi", 84 "//foundation/communication/wifi/interfaces/innerkits/native_cpp/wifi_standard:wifi_sdk", 85 "//foundation/communication/wifi/utils/src:wifi_utils", 86 "//utils/native/base:utils", 87 ] 88 89 defines = [ "ENABLE_NAPI_COMPATIBLE" ] 90 91 external_deps = [ "ipc:ipc_core" ] 92 93 relative_install_dir = "module" 94 part_name = "wifi_standard" 95 subsystem_name = "communication" 96} 97