• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("//foundation/communication/netmanager_ext/netmanager_ext_config.gni")
15
16group("common_ext_packages") {
17  deps = []
18  if (netmanager_ext_feature_ethernet) {
19    deps += [
20      "$NETMANAGER_EXT_ROOT/utils:net_event_report",
21    ]
22  }
23}
24
25group("ethernet_packages") {
26  deps = []
27  if (netmanager_ext_feature_ethernet) {
28    deps += [
29      "$NETMANAGER_EXT_ROOT/frameworks/js/napi/ethernet:ethernet",
30      "$NETMANAGER_EXT_ROOT/interfaces/innerkits/ethernetclient:ethernet_manager_if",
31      "$NETMANAGER_EXT_ROOT/services/ethernetmanager:ethernet_interfaces",
32      "$NETMANAGER_EXT_ROOT/services/ethernetmanager:ethernet_manager",
33      "$NETMANAGER_EXT_ROOT/utils:net_event_report",
34    ]
35  }
36}
37
38group("share_packages") {
39  deps = []
40  if (netmanager_ext_feature_share) {
41    deps += [
42      "$NETMANAGER_EXT_ROOT/frameworks/js/napi/sharing:sharing",
43      "$NETMANAGER_EXT_ROOT/interfaces/innerkits/netshareclient:net_tether_manager_if",
44      "$NETMANAGER_EXT_ROOT/services/networksharemanager:net_tether_manager",
45      "$NETMANAGER_EXT_ROOT/services/networksharemanager:network_share_config",
46    ]
47  }
48}
49
50group("mdns_packages") {
51  deps = []
52  if (netmanager_ext_feature_mdns) {
53    deps += [
54      "$NETMANAGER_EXT_ROOT/frameworks/js/napi/mdns:mdns",
55      "$NETMANAGER_EXT_ROOT/interfaces/innerkits/mdnsclient:mdns_manager_if",
56      "$NETMANAGER_EXT_ROOT/services/mdnsmanager:mdns_manager",
57    ]
58  }
59}
60
61group("netfirewall_packages") {
62  if (netmanager_ext_feature_net_firewall) {
63    deps = [
64      "$NETMANAGER_EXT_ROOT/frameworks/js/napi/netfirewall:netfirewall",
65      "$NETMANAGER_EXT_ROOT/interfaces/innerkits/netfirewallclient:netfirewall_manager_if",
66      "$NETMANAGER_EXT_ROOT/services/netfirewallmanager:netfirewall_default_rule",
67      "$NETMANAGER_EXT_ROOT/services/netfirewallmanager:netfirewall_manager",
68    ]
69  }
70}
71
72group("vpn_packages") {
73  if (netmanager_ext_feature_vpn) {
74    deps = [
75      "$NETMANAGER_EXT_ROOT/frameworks/js/napi/vpn:vpn",
76      "$NETMANAGER_EXT_ROOT/interfaces/innerkits/netvpnclient:net_vpn_manager_if",
77      "$NETMANAGER_EXT_ROOT/services/vpnmanager:net_vpn_manager",
78    ]
79  }
80}
81
82group("vpn_ext_packages") {
83  if (netmanager_ext_feature_vpnext) {
84    deps = [
85      "$NETMANAGER_EXT_ROOT/frameworks/js/napi/extensionability:vpnextensionability",
86      "$NETMANAGER_EXT_ROOT/frameworks/js/napi/extensionability:vpnextensionability_napi",
87      "$NETMANAGER_EXT_ROOT/frameworks/js/napi/extensioncontext:vpnextensioncontext_napi",
88      "$NETMANAGER_EXT_ROOT/frameworks/js/napi/vpnext:vpnextension",
89      "$NETMANAGER_EXT_ROOT/interfaces/innerkits/vpnextension:vpn_extension",
90      "$NETMANAGER_EXT_ROOT/interfaces/innerkits/vpnextension:vpn_extension_module",
91    ]
92  }
93}
94
95group("wearable_distributed_net_packages") {
96  if (netmanager_ext_feature_wearable_distributed_net) {
97    deps = [
98      "$NETMANAGER_EXT_ROOT/interfaces/innerkits/wearabledistributednetclient:wearable_distributed_net_manager_if",
99      "$NETMANAGER_EXT_ROOT/services/wearabledistributednetmanager:wearable_distributed_net_link_info",
100      "$NETMANAGER_EXT_ROOT/services/wearabledistributednetmanager:wearable_distributed_net_manager",
101    ]
102  }
103}
104
105group("networkslice_packages") {
106  if (netmanager_ext_feature_networkslice) {
107    deps = [
108      "$NETMANAGER_EXT_ROOT/interfaces/innerkits/networksliceclient:networkslice_manager_if",
109      "$NETMANAGER_EXT_ROOT/services/networkslicemanager:networkslice_manager",
110    ]
111  }
112}
113