1# Copyright (c) 2021-2024 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  sanitize = {
19    cfi = true
20    cfi_cross_dso = true
21    debug = false
22  }
23
24  branch_protector_ret = "pac_ret"
25
26  sources = [
27    "network_route.cpp",
28    "resolver_config.cpp",
29    "test.cpp",
30    "test_notify_callback.cpp",
31  ]
32
33  include_dirs = [
34    "$NETSYSNATIVE_INNERKITS_SOURCE_DIR",
35    "$INNERKITS_ROOT/netmanagernative/include",
36    "$NETMANAGER_BASE_ROOT/utils/common_utils/include",
37    "$NETSYSNATIVE_SOURCE_DIR/include",
38    "$NETSYSNATIVE_SOURCE_DIR/include/netsys",
39  ]
40
41  deps = [ "$NETMANAGER_BASE_ROOT/services/netmanagernative:netsys_native_manager_static" ]
42
43  external_deps = [
44    "ability_base:want",
45    "c_utils:utils",
46    "ffrt:libffrt",
47    "ipc:ipc_core",
48    "safwk:system_ability_fwk",
49    "samgr:samgr_proxy",
50  ]
51
52  defines = [
53    "NETMGRNATIVE_LOG_TAG = \"NetsysNativeService\"",
54    "LOG_DOMAIN = 0xD0015B0",
55  ]
56
57  external_deps += [ "hilog:libhilog" ]
58
59  part_name = "netmanager_base"
60  subsystem_name = "communication"
61}
62