• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
14# args of this module
15SUBSYSTEM_DIR = "//foundation/communication"
16NETMANAGER_BASE_ROOT = "$SUBSYSTEM_DIR/netmanager_base"
17NETMANAGER_EXT_ROOT = "$SUBSYSTEM_DIR/netmanager_ext"
18
19# args of frameworks
20NETCONNMANAGER_INNERKITS_SOURCE_DIR =
21    "$NETMANAGER_BASE_ROOT/frameworks/native/netconnclient"
22NETPOLICYMANAGER_INNERKITS_SOURCE_DIR =
23    "$NETMANAGER_BASE_ROOT/frameworks/native/netpolicyclient"
24NETSTATSMANAGER_INNERKITS_SOURCE_DIR =
25    "$NETMANAGER_BASE_ROOT/frameworks/native/netstatsclient"
26NETSYSNATIVE_INNERKITS_SOURCE_DIR =
27    "$NETMANAGER_BASE_ROOT/frameworks/native/netmanagernative"
28
29# args of interfaces
30INNERKITS_ROOT = "$NETMANAGER_BASE_ROOT/interfaces/innerkits"
31
32# args of services
33NETMANAGERNATIVE_ROOT = "$NETMANAGER_BASE_ROOT/services/netmanagernative"
34NETCONNMANAGER_SOURCE_DIR = "$NETMANAGER_BASE_ROOT/services/netconnmanager"
35NETPOLICYMANAGER_SOURCE_DIR = "$NETMANAGER_BASE_ROOT/services/netpolicymanager"
36NETSTATSMANAGER_SOURCE_DIR = "$NETMANAGER_BASE_ROOT/services/netstatsmanager"
37NETCONNMANAGER_COMMON_DIR = "$NETMANAGER_BASE_ROOT/services/common"
38FWMARK_CLIENT_DIR = "$NETMANAGERNATIVE_ROOT/fwmarkclient"
39NETSYSNATIVE_SOURCE_DIR = "$NETMANAGER_BASE_ROOT/services/netmanagernative"
40NETSYSBPFMAP_SOURCE_DIR = "$NETSYSNATIVE_SOURCE_DIR/netsys_bpf_map"
41NETSYSCONTROLLER_ROOT_DIR = "$NETMANAGER_BASE_ROOT/services/netsyscontroller"
42ETHERNETMANAGER_SOURCE_DIR = "$NETMANAGER_EXT_ROOT/services/ethernetmanager"
43
44# args of other module
45use_js_debug = false
46declare_args() {
47  enable_netmgr_debug = true
48  enable_sys_func = true
49  enable_elfio = true
50  enable_server_support_ipv6 = false
51  netmanager_base_enable_feature_net_firewall = false
52  netmanager_base_enable_feature_wearable_distributed_net = false
53  netmanager_base_enable_feature_sysvpn = false
54  netmanager_base_enable_netsys_access_policy_diag_listen = false
55  netmanager_base_feature_support_powermanager = false
56  netmanager_base_enable_feature_hosts = false
57  netmanager_base_enable_public_dns_server = false
58  netmanager_base_support_ebpf_memory_miniaturization = false
59  netmanager_base_enable_traffic_statistic = false
60  netmanager_base_extended_features = true
61  netmanager_base_enable_pac_proxy = false
62  netmanager_base_share_traffic_limit_enable = false
63  netmanager_base_enable_set_app_frozened = false
64  netmanager_base_feature_enterprise_route_custom = false
65}
66fuzz_test_path = "netmanager_base/netmanager_base"
67
68common_cflags = [
69  "-fstack-protector-strong",
70  "-D_FORTIFY_SOURCE=2",
71  "-fdata-sections",
72  "-ffunction-sections",
73  "-Os",
74  "-O2",
75]