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