1b1b8bc3fSopenharmony_ci# Copyright (c) 2021-2024 Huawei Device Co., Ltd. 2b1b8bc3fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3b1b8bc3fSopenharmony_ci# you may not use this file except in compliance with the License. 4b1b8bc3fSopenharmony_ci# You may obtain a copy of the License at 5b1b8bc3fSopenharmony_ci# 6b1b8bc3fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7b1b8bc3fSopenharmony_ci# 8b1b8bc3fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9b1b8bc3fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10b1b8bc3fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11b1b8bc3fSopenharmony_ci# See the License for the specific language governing permissions and 12b1b8bc3fSopenharmony_ci# limitations under the License. 13b1b8bc3fSopenharmony_ci 14b1b8bc3fSopenharmony_ciimport("//build/ohos.gni") 15b1b8bc3fSopenharmony_ciimport("//foundation/communication/netmanager_base/netmanager_base_config.gni") 16b1b8bc3fSopenharmony_ci 17b1b8bc3fSopenharmony_ciohos_executable("test_netsys_native_manager") { 18b1b8bc3fSopenharmony_ci sanitize = { 19b1b8bc3fSopenharmony_ci cfi = true 20b1b8bc3fSopenharmony_ci cfi_cross_dso = true 21b1b8bc3fSopenharmony_ci debug = false 22b1b8bc3fSopenharmony_ci } 23b1b8bc3fSopenharmony_ci 24b1b8bc3fSopenharmony_ci branch_protector_ret = "pac_ret" 25b1b8bc3fSopenharmony_ci 26b1b8bc3fSopenharmony_ci sources = [ 27b1b8bc3fSopenharmony_ci "network_route.cpp", 28b1b8bc3fSopenharmony_ci "resolver_config.cpp", 29b1b8bc3fSopenharmony_ci "test.cpp", 30b1b8bc3fSopenharmony_ci "test_notify_callback.cpp", 31b1b8bc3fSopenharmony_ci ] 32b1b8bc3fSopenharmony_ci 33b1b8bc3fSopenharmony_ci include_dirs = [ 34b1b8bc3fSopenharmony_ci "$NETSYSNATIVE_INNERKITS_SOURCE_DIR", 35b1b8bc3fSopenharmony_ci "$INNERKITS_ROOT/netmanagernative/include", 36b1b8bc3fSopenharmony_ci "$NETMANAGER_BASE_ROOT/utils/common_utils/include", 37b1b8bc3fSopenharmony_ci "$NETSYSNATIVE_SOURCE_DIR/include", 38b1b8bc3fSopenharmony_ci "$NETSYSNATIVE_SOURCE_DIR/include/netsys", 39b1b8bc3fSopenharmony_ci ] 40b1b8bc3fSopenharmony_ci 41b1b8bc3fSopenharmony_ci deps = [ "$NETMANAGER_BASE_ROOT/services/netmanagernative:netsys_native_manager_static" ] 42b1b8bc3fSopenharmony_ci 43b1b8bc3fSopenharmony_ci external_deps = [ 44b1b8bc3fSopenharmony_ci "ability_base:want", 45b1b8bc3fSopenharmony_ci "cJSON:cjson", 46b1b8bc3fSopenharmony_ci "c_utils:utils", 47b1b8bc3fSopenharmony_ci "ffrt:libffrt", 48b1b8bc3fSopenharmony_ci "ipc:ipc_core", 49b1b8bc3fSopenharmony_ci "safwk:system_ability_fwk", 50b1b8bc3fSopenharmony_ci "samgr:samgr_proxy", 51b1b8bc3fSopenharmony_ci ] 52b1b8bc3fSopenharmony_ci 53b1b8bc3fSopenharmony_ci defines = [ 54b1b8bc3fSopenharmony_ci "NETMGRNATIVE_LOG_TAG = \"NetsysNativeService\"", 55b1b8bc3fSopenharmony_ci "LOG_DOMAIN = 0xD0015B0", 56b1b8bc3fSopenharmony_ci ] 57b1b8bc3fSopenharmony_ci 58b1b8bc3fSopenharmony_ci external_deps += [ "hilog:libhilog" ] 59b1b8bc3fSopenharmony_ci 60b1b8bc3fSopenharmony_ci part_name = "netmanager_base" 61b1b8bc3fSopenharmony_ci subsystem_name = "communication" 62b1b8bc3fSopenharmony_ci} 63