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") 15import("//foundation/communication/netmanager_ext/netmanager_ext_config.gni") 16 17ohos_shared_library("ethernet") { 18 include_dirs = [ 19 "context", 20 "$BASE_INNERKITS_ROOT/netconnclient/include", 21 "$NETMANAGER_EXT_ROOT/utils/log/include", 22 "$SAMGR_MANAGER_ROOT/interfaces/innerkits/samgr_proxy/include", 23 "$NETCONNMANAGER_UTILS_DIR/common_utils/include", 24 ] 25 26 sources = [ 27 "context/get_all_active_ifaces_context.cpp", 28 "context/get_iface_config_context.cpp", 29 "context/is_iface_active_context.cpp", 30 "context/set_iface_config_context.cpp", 31 "ethernet_async_work.cpp", 32 "ethernet_exec.cpp", 33 "ethernet_module.cpp", 34 "interface_state_observer.cpp", 35 "interface_state_observer_wrapper.cpp", 36 ] 37 38 defines = [ "NETMGR_DEBUG" ] 39 40 deps = [ "$EXT_INNERKITS_ROOT/ethernetclient:ethernet_manager_if" ] 41 42 external_deps = [ 43 "c_utils:utils", 44 "hilog:libhilog", 45 "ipc:ipc_core", 46 "napi:ace_napi", 47 "netmanager_base:napi_utils", 48 ] 49 50 relative_install_dir = "module/net" 51 part_name = "netmanager_ext" 52 subsystem_name = "communication" 53} 54