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