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. 13import("//base/telephony/core_service/core_service_aafwk.gni") 14import("//base/telephony/core_service/telephony.gni") 15import("//build/ohos.gni") 16import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 17 18TELEPHONY_CORE_SERVICE_ROOT = "//base/telephony/core_service" 19TELEPHONY_SIM_ROOT = "//base/telephony/core_service/services/sim" 20HDF_FRAMEWORKS = "//drivers/hdf/frameworks" 21TELEPHONY_FRAMEWORKS_ROOT = "//base/telephony/core_service/frameworks/native/" 22 23ohos_executable("tel_sim_test") { 24 install_enable = true 25 sources = [ 26 "$TELEPHONY_FRAMEWORKS_ROOT/src/network_information.cpp", 27 "$TELEPHONY_FRAMEWORKS_ROOT/src/network_search_result.cpp", 28 "$TELEPHONY_FRAMEWORKS_ROOT/src/network_state.cpp", 29 "$TELEPHONY_FRAMEWORKS_ROOT/src/signal_information.cpp", 30 "$TELEPHONY_SIM_ROOT/test/test.cpp", 31 ] 32 33 include_dirs = [ 34 "//base/telephony/data_storage/sim/include", 35 "//base/telephony/data_storage/common/include", 36 "$TELEPHONY_CORE_SERVICE_ROOT/base/include", 37 "$TELEPHONY_CORE_SERVICE_ROOT/services/tel_ril/include", 38 "$TELEPHONY_CORE_SERVICE_ROOT/interfaces/innerkits/include", 39 "$TELEPHONY_CORE_SERVICE_ROOT/interfaces/innerkits/state_registry", 40 "$TELEPHONY_CORE_SERVICE_ROOT/interfaces/innerkits/data_storage", 41 "$TELEPHONY_SIM_ROOT/include", 42 43 "$HDF_FRAMEWORKS/ability/sbuf/include", 44 "$HDF_FRAMEWORKS/core/shared/include", 45 "$HDF_FRAMEWORKS/core/host/include", 46 "$HDF_FRAMEWORKS/core/master/include", 47 "$HDF_FRAMEWORKS/include/core", 48 "$HDF_FRAMEWORKS/include/utils", 49 "$HDF_FRAMEWORKS/utils/include", 50 "$HDF_FRAMEWORKS/include/osal", 51 ] 52 53 defines += [ 54 "TELEPHONY_LOG_TAG = \"CoreServiceSimTest\"", 55 "LOG_DOMAIN = 0xD000F00", 56 ] 57 58 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 59 60 deps = [ 61 "${ability_runtime_path}/frameworks/native/ability/native:abilitykit_native", 62 "//base/telephony/core_service:tel_core_service", 63 "//base/telephony/core_service/interfaces/innerkits:tel_core_service_api", 64 ] 65 66 external_deps = [ 67 "ability_base:want", 68 "access_token:libaccesstoken_sdk", 69 "access_token:libnativetoken", 70 "access_token:libtoken_setproc", 71 "bundle_framework:appexecfwk_core", 72 "c_utils:utils", 73 "common_event_service:cesfwk_innerkits", 74 "config_policy:configpolicy_util", 75 "drivers_interface_ril:hril_innerkits", 76 "eventhandler:libeventhandler", 77 "init:libbegetutil", 78 "ipc:ipc_core", 79 "relational_store:native_dataability", 80 "relational_store:native_rdb", 81 "safwk:system_ability_fwk", 82 "samgr:samgr_proxy", 83 ] 84 85 if (is_standard_system) { 86 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 87 } else { 88 external_deps += [ "hilog:libhilog" ] 89 } 90 part_name = "core_service" 91 subsystem_name = "telephony" 92} 93