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 cflags = [ 41 "-fstack-protector-strong", 42 "-D_FORTIFY_SOURCE=2", 43 "-O2", 44 ] 45 46 cflags_cc = [ 47 "-fstack-protector-strong", 48 "-D_FORTIFY_SOURCE=2", 49 "-O2", 50 ] 51 52 deps = [ "$EXT_INNERKITS_ROOT/ethernetclient:ethernet_manager_if" ] 53 54 external_deps = [ 55 "c_utils:utils", 56 "hilog:libhilog", 57 "ipc:ipc_core", 58 "napi:ace_napi", 59 "netmanager_base:napi_utils", 60 ] 61 62 relative_install_dir = "module/net" 63 part_name = "netmanager_ext" 64 subsystem_name = "communication" 65} 66