• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025-2026 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
17config("net_conn_manager_if_config") {
18  include_dirs = [
19    "include",
20    "$EXT_INNERKITS_ROOT/include",
21    "$EXT_INNERKITS_ROOT/networksliceclient/include",
22  ]
23
24  defines = []
25  if (is_double_framework) {
26    defines += [ "CONFIG_DUAL_FRAMEWORK" ]
27  }
28  if (target_cpu == "arm") {
29    defines += [ "BINDER_IPC_32BIT" ]
30  }
31  if (is_standard_system) {
32    defines += [ "CONFIG_STANDARD_SYSTEM" ]
33  }
34  if (defined(build_public_version) && build_public_version) {
35    defines += [ "BUILD_PUBLIC_VERSION" ]
36  }
37
38  cflags = common_cflags
39
40  cflags_cc = common_cflags
41}
42
43ohos_static_library("networkslice_parcel") {
44  sanitize = {
45    cfi = true
46    cfi_cross_dso = true
47    debug = false
48  }
49
50  branch_protector_ret = "pac_ret"
51
52  include_dirs = [
53    "$EXT_INNERKITS_ROOT/include",
54    "$EXT_INNERKITS_ROOT/networksliceclient/include",
55  ]
56
57  external_deps = [
58    "c_utils:utils",
59    "hilog:libhilog",
60    "netmanager_base:net_manager_common",
61  ]
62
63  part_name = "netmanager_ext"
64  subsystem_name = "communication"
65}
66
67ohos_shared_library("networkslice_manager_if") {
68  sanitize = {
69    cfi = true
70    cfi_cross_dso = true
71    debug = false
72  }
73
74  sources = [
75    "$NETWORKSLICE_INNERKITS_SOURCE_DIR/src/networkslice_client.cpp",
76    "$NETWORKSLICE_INNERKITS_SOURCE_DIR/src/networkslice_proxy.cpp",
77  ]
78
79  public_configs = [ ":net_conn_manager_if_config" ]
80
81  deps = [ ":networkslice_parcel" ]
82
83  external_deps = [
84    "hilog:libhilog",
85    "netmanager_base:net_manager_common",
86    "ipc:ipc_single",
87    "netmanager_base:net_native_manager_if",
88    "samgr:samgr_proxy",
89  ]
90
91  defines = [
92    "NETMGR_LOG_TAG = \"NetworkSliceManager\"",
93    "LOG_DOMAIN = 0xD0015B0",
94  ]
95
96  if (enable_netmgr_ext_debug) {
97    defines += [ "NETMGR_DEBUG" ]
98  }
99
100  part_name = "netmanager_ext"
101  subsystem_name = "communication"
102}
103