• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021-2022 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("//base/telephony/core_service/core_service_aafwk.gni")
15import("//base/telephony/core_service/telephony.gni")
16import("//build/ohos.gni")
17import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
18
19TELEPHONY_CORE_SERVICE_ROOT = "//base/telephony/core_service"
20TELEPHONY_NETWORK_SEARCH_ROOT =
21    "//base/telephony/core_service/services/network_search"
22TELEPHONY_SIM_ROOT = "//base/telephony/core_service/services/sim"
23TELEPHONY_TEL_RIL_ROOT = "//base/telephony/core_service/services/tel_ril"
24TELEPHONY_IMS_CORE_SERVICE_SRC_PATH =
25    "$TELEPHONY_CORE_SERVICE_ROOT/services/ims_service_interaction/src"
26
27ohos_shared_library("tel_core_service") {
28  install_enable = true
29
30  sources = [
31    "$TELEPHONY_CORE_SERVICE_ROOT/services/core/src/core_service.cpp",
32    "$TELEPHONY_CORE_SERVICE_ROOT/services/core/src/core_service_dump_helper.cpp",
33    "$TELEPHONY_CORE_SERVICE_ROOT/services/core/src/core_service_hisysevent.cpp",
34    "$TELEPHONY_CORE_SERVICE_ROOT/services/core/src/core_service_stub.cpp",
35    "$TELEPHONY_IMS_CORE_SERVICE_SRC_PATH/ims_core_service_callback_stub.cpp",
36    "$TELEPHONY_IMS_CORE_SERVICE_SRC_PATH/ims_core_service_client.cpp",
37    "$TELEPHONY_IMS_CORE_SERVICE_SRC_PATH/ims_core_service_proxy.cpp",
38    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/cell_info.cpp",
39    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/device_state_handler.cpp",
40    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/device_state_observer.cpp",
41    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/ims_reg_info_callback_proxy.cpp",
42    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/network_register.cpp",
43    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/network_search_callback_proxy.cpp",
44    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/network_search_handler.cpp",
45    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/network_search_manager.cpp",
46    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/network_search_notify.cpp",
47    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/network_search_state.cpp",
48    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/network_selection.cpp",
49    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/network_type.cpp",
50    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/network_utils.cpp",
51    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/nitz_update.cpp",
52    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/operator_name.cpp",
53    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/radio_info.cpp",
54    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/setting_utils.cpp",
55    "$TELEPHONY_NETWORK_SEARCH_ROOT/src/signal_info.cpp",
56    "$TELEPHONY_SIM_ROOT/src/csim_file_controller.cpp",
57    "$TELEPHONY_SIM_ROOT/src/icc_dialling_numbers_cache.cpp",
58    "$TELEPHONY_SIM_ROOT/src/icc_dialling_numbers_handler.cpp",
59    "$TELEPHONY_SIM_ROOT/src/icc_dialling_numbers_manager.cpp",
60    "$TELEPHONY_SIM_ROOT/src/icc_file.cpp",
61    "$TELEPHONY_SIM_ROOT/src/icc_file_controller.cpp",
62    "$TELEPHONY_SIM_ROOT/src/icc_operator_privilege_controller.cpp",
63    "$TELEPHONY_SIM_ROOT/src/icc_operator_rule.cpp",
64    "$TELEPHONY_SIM_ROOT/src/icc_state.cpp",
65    "$TELEPHONY_SIM_ROOT/src/isim_file.cpp",
66    "$TELEPHONY_SIM_ROOT/src/isim_file_controller.cpp",
67    "$TELEPHONY_SIM_ROOT/src/mcc_pool.cpp",
68    "$TELEPHONY_SIM_ROOT/src/multi_sim_controller.cpp",
69    "$TELEPHONY_SIM_ROOT/src/multi_sim_monitor.cpp",
70    "$TELEPHONY_SIM_ROOT/src/operator_config_cache.cpp",
71    "$TELEPHONY_SIM_ROOT/src/operator_config_loader.cpp",
72    "$TELEPHONY_SIM_ROOT/src/operator_file_parser.cpp",
73    "$TELEPHONY_SIM_ROOT/src/operator_matching_rule.cpp",
74    "$TELEPHONY_SIM_ROOT/src/plmn_file.cpp",
75    "$TELEPHONY_SIM_ROOT/src/radio_protocol_controller.cpp",
76    "$TELEPHONY_SIM_ROOT/src/ruim_file.cpp",
77    "$TELEPHONY_SIM_ROOT/src/ruim_file_controller.cpp",
78    "$TELEPHONY_SIM_ROOT/src/sim_account_manager.cpp",
79    "$TELEPHONY_SIM_ROOT/src/sim_char_decode.cpp",
80    "$TELEPHONY_SIM_ROOT/src/sim_file.cpp",
81    "$TELEPHONY_SIM_ROOT/src/sim_file_controller.cpp",
82    "$TELEPHONY_SIM_ROOT/src/sim_file_manager.cpp",
83    "$TELEPHONY_SIM_ROOT/src/sim_manager.cpp",
84    "$TELEPHONY_SIM_ROOT/src/sim_number_decode.cpp",
85    "$TELEPHONY_SIM_ROOT/src/sim_rdb_helper.cpp",
86    "$TELEPHONY_SIM_ROOT/src/sim_sms_controller.cpp",
87    "$TELEPHONY_SIM_ROOT/src/sim_sms_manager.cpp",
88    "$TELEPHONY_SIM_ROOT/src/sim_state_handle.cpp",
89    "$TELEPHONY_SIM_ROOT/src/sim_state_manager.cpp",
90    "$TELEPHONY_SIM_ROOT/src/sim_state_tracker.cpp",
91    "$TELEPHONY_SIM_ROOT/src/sim_utils.cpp",
92    "$TELEPHONY_SIM_ROOT/src/stk_controller.cpp",
93    "$TELEPHONY_SIM_ROOT/src/stk_manager.cpp",
94    "$TELEPHONY_SIM_ROOT/src/tag_service.cpp",
95    "$TELEPHONY_SIM_ROOT/src/usim_dialling_numbers_service.cpp",
96    "$TELEPHONY_SIM_ROOT/src/usim_file_controller.cpp",
97    "$TELEPHONY_TEL_RIL_ROOT/src/observer_handler.cpp",
98    "$TELEPHONY_TEL_RIL_ROOT/src/tel_ril_base.cpp",
99    "$TELEPHONY_TEL_RIL_ROOT/src/tel_ril_call.cpp",
100    "$TELEPHONY_TEL_RIL_ROOT/src/tel_ril_callback.cpp",
101    "$TELEPHONY_TEL_RIL_ROOT/src/tel_ril_data.cpp",
102    "$TELEPHONY_TEL_RIL_ROOT/src/tel_ril_handler.cpp",
103    "$TELEPHONY_TEL_RIL_ROOT/src/tel_ril_manager.cpp",
104    "$TELEPHONY_TEL_RIL_ROOT/src/tel_ril_modem.cpp",
105    "$TELEPHONY_TEL_RIL_ROOT/src/tel_ril_network.cpp",
106    "$TELEPHONY_TEL_RIL_ROOT/src/tel_ril_sim.cpp",
107    "$TELEPHONY_TEL_RIL_ROOT/src/tel_ril_sms.cpp",
108  ]
109
110  include_dirs = [
111    "//base/telephony/data_storage/sim/include",
112    "//base/telephony/data_storage/common/include",
113    "$TELEPHONY_CORE_SERVICE_ROOT/services/core/include",
114    "$TELEPHONY_TEL_RIL_ROOT/include",
115    "$TELEPHONY_NETWORK_SEARCH_ROOT/include",
116    "$TELEPHONY_CORE_SERVICE_ROOT/utils/log/include",
117    "$TELEPHONY_SIM_ROOT/include",
118    "//third_party/icu/icu4c/source/common/unicode",
119    "//third_party/icu/icu4c/source/common",
120    "//third_party/libphonenumber/cpp/src",
121    "//third_party/protobuf/src",
122    "//third_party/protobuf/src/google",
123    "//third_party/protobuf/src/google/protobuf",
124  ]
125
126  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
127
128  defines += [
129    "TELEPHONY_LOG_TAG = \"CoreService\"",
130    "LOG_DOMAIN = 0xD001F04",
131  ]
132
133  deps = [
134    "${ability_runtime_inner_api_path}/dataobs_manager:dataobs_manager",
135    "//base/telephony/core_service/interfaces/innerkits:tel_core_service_api",
136    "//base/telephony/core_service/utils:libtel_common",
137    "//third_party/jsoncpp:jsoncpp",
138    "//third_party/libphonenumber/cpp:phonenumber_standard",
139    "//third_party/libxml2:libxml2",
140    "//third_party/openssl:libcrypto_shared",
141  ]
142
143  external_deps = [
144    "ability_base:want",
145    "ability_base:zuri",
146    "ability_runtime:ability_manager",
147    "ability_runtime:data_ability_helper",
148    "ability_runtime:wantagent_innerkits",
149    "battery_manager:batterysrv_client",
150    "c_utils:utils",
151    "common_event_service:cesfwk_innerkits",
152    "config_policy:configpolicy_util",
153    "data_share:datashare_common",
154    "data_share:datashare_consumer",
155    "drivers_interface_ril:hril_innerkits",
156    "drivers_interface_ril:libril_proxy_1.0",
157    "eventhandler:libeventhandler",
158    "hdf_core:libhdi",
159    "hisysevent_native:libhisysevent",
160    "i18n:zone_util",
161    "init:libbegetutil",
162    "ipc:ipc_core",
163    "netmanager_base:net_conn_manager_if",
164    "netmanager_ext:net_tether_manager_if",
165    "power_manager:powermgr_client",
166    "relational_store:native_dataability",
167    "relational_store:native_rdb",
168    "safwk:system_ability_fwk",
169    "samgr:samgr_proxy",
170    "time_service:time_client",
171  ]
172
173  if (is_standard_system) {
174    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
175  } else {
176    external_deps += [ "hilog:libhilog" ]
177  }
178  part_name = "core_service"
179  subsystem_name = "telephony"
180}
181