1# Copyright (c) 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") 15import("//foundation/communication/netmanager_base/netmanager_base_config.gni") 16 17config("napi_utils_config") { 18 visibility = [ ":napi_utils" ] 19 include_dirs = [ "$INNERKITS_ROOT/include" ] 20} 21 22config("napi_utils_public_config") { 23 include_dirs = [ 24 "include", 25 "$THIRD_PARTY_ROOT/node/src", 26 ] 27} 28 29ohos_shared_library("napi_utils") { 30 sources = [ 31 "src/base_context.cpp", 32 "src/event_listener.cpp", 33 "src/event_manager.cpp", 34 "src/module_template.cpp", 35 "src/napi_utils.cpp", 36 ] 37 38 configs = [ ":napi_utils_config" ] 39 40 public_configs = [ ":napi_utils_public_config" ] 41 42 public_deps = [ 43 "$ARKUI_ROOT/napi/:ace_napi", 44 "$C_UTILS_ROOT/base:utils", 45 "$NETMANAGER_BASE_ROOT/utils:net_manager_common", 46 ] 47 48 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 49 50 part_name = "netmanager_base" 51 subsystem_name = "communication" 52} 53