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. 13SUBSYSTEM_DIR = "../../../.." 14import("//build/ohos.gni") 15 16TELEPHONY_CORE_SERVICE_ROOT = "$SUBSYSTEM_DIR/core_service" 17TELEPHONY_SIM_ROOT = "$SUBSYSTEM_DIR/core_service/services/sim" 18TELEPHONY_FRAMEWORKS_ROOT = "$SUBSYSTEM_DIR/core_service/frameworks/native/" 19 20ohos_executable("tel_sim_test") { 21 sanitize = { 22 cfi = true 23 cfi_cross_dso = true 24 debug = false 25 } 26 branch_protector_ret = "pac_ret" 27 install_enable = true 28 sources = [ 29 "$TELEPHONY_FRAMEWORKS_ROOT/src/network_information.cpp", 30 "$TELEPHONY_FRAMEWORKS_ROOT/src/network_search_result.cpp", 31 "$TELEPHONY_FRAMEWORKS_ROOT/src/network_state.cpp", 32 "$TELEPHONY_FRAMEWORKS_ROOT/src/signal_information.cpp", 33 "$TELEPHONY_SIM_ROOT/test/test.cpp", 34 ] 35 36 include_dirs = [ 37 "$TELEPHONY_CORE_SERVICE_ROOT/base/include", 38 "$TELEPHONY_CORE_SERVICE_ROOT/services/tel_ril/include", 39 "$TELEPHONY_SIM_ROOT/include", 40 ] 41 42 defines = [ 43 "TELEPHONY_LOG_TAG = \"CoreServiceSimTest\"", 44 "LOG_DOMAIN = 0xD000F00", 45 ] 46 47 configs = [ "$SUBSYSTEM_DIR/core_service/utils:telephony_log_config" ] 48 49 deps = [ 50 "$SUBSYSTEM_DIR/core_service:tel_core_service", 51 "$SUBSYSTEM_DIR/core_service/interfaces/innerkits:tel_core_service_api", 52 ] 53 54 external_deps = [ 55 "ability_base:want", 56 "ability_runtime:abilitykit_native", 57 "access_token:libaccesstoken_sdk", 58 "access_token:libnativetoken", 59 "access_token:libtoken_setproc", 60 "bundle_framework:appexecfwk_core", 61 "c_utils:utils", 62 "common_event_service:cesfwk_innerkits", 63 "config_policy:configpolicy_util", 64 "data_share:datashare_common", 65 "data_share:datashare_consumer", 66 "eventhandler:libeventhandler", 67 "hilog:libhilog", 68 "init:libbegetutil", 69 "ipc:ipc_single", 70 "safwk:system_ability_fwk", 71 "samgr:samgr_proxy", 72 ] 73 74 part_name = "core_service" 75 subsystem_name = "telephony" 76} 77