• 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
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 = [ "$NETMANAGER_BASE_ROOT/services/netmanagernative:netsys_native_manager_static" ]
33
34  external_deps = [
35    "ability_base:want",
36    "c_utils:utils",
37    "ipc:ipc_core",
38    "safwk:system_ability_fwk",
39    "samgr:samgr_proxy",
40  ]
41
42  defines = [
43    "NETMGRNATIVE_LOG_TAG = \"NetsysNativeService\"",
44    "LOG_DOMAIN = 0xD0015B0",
45  ]
46
47  external_deps += [ "hilog:libhilog" ]
48
49  part_name = "netmanager_base"
50  subsystem_name = "communication"
51}
52