• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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_base/netmanager_base_config.gni")
16
17ohos_executable("test_netsys_native_manager") {
18  sources = [
19    "network_route.cpp",
20    "resolver_config.cpp",
21    "test.cpp",
22    "test_notify_callback.cpp",
23  ]
24
25  include_dirs = [
26    "$NETSYSNATIVE_INNERKITS_SOURCE_DIR",
27    "$INNERKITS_ROOT/netmanagernative/include",
28    "$NETSYSNATIVE_SOURCE_DIR/include",
29    "$NETSYSNATIVE_SOURCE_DIR/include/netsys",
30  ]
31
32  deps = [
33    "$NETMANAGER_BASE_ROOT/services/netmanagernative:netsys_native_manager",
34  ]
35
36  external_deps = [
37    "ability_base:want",
38    "c_utils:utils",
39    "ipc:ipc_core",
40    "safwk:system_ability_fwk",
41    "samgr:samgr_proxy",
42  ]
43
44  defines = [
45    "NETMGRNATIVE_LOG_TAG = \"NetsysNativeService\"",
46    "LOG_DOMAIN = 0xD0015B0",
47  ]
48
49  if (is_standard_system) {
50    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
51  } else {
52    external_deps += [ "hilog:libhilog" ]
53  }
54
55  part_name = "netmanager_base"
56  subsystem_name = "communication"
57}
58