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. 13 14import("//base/telephony/core_service/telephony.gni") 15import("//build/ohos.gni") 16 17SOURCE_DIR = "//base/telephony/cellular_call" 18 19ohos_shared_library("tel_cellular_call") { 20 sources = [ 21 "$SOURCE_DIR/ims_interfaces/src/cellular_call_callback.cpp", 22 "$SOURCE_DIR/ims_interfaces/src/ims_callback_stub.cpp", 23 "$SOURCE_DIR/ims_interfaces/src/ims_client.cpp", 24 "$SOURCE_DIR/ims_interfaces/src/ims_death_recipient.cpp", 25 "$SOURCE_DIR/ims_interfaces/src/ims_proxy.cpp", 26 "$SOURCE_DIR/services/common/src/cellular_call_dump_helper.cpp", 27 "$SOURCE_DIR/services/common/src/emergency_utils.cpp", 28 "$SOURCE_DIR/services/common/src/mmi_code_utils.cpp", 29 "$SOURCE_DIR/services/common/src/module_service_utils.cpp", 30 "$SOURCE_DIR/services/common/src/standardize_utils.cpp", 31 "$SOURCE_DIR/services/connection/src/base_connection.cpp", 32 "$SOURCE_DIR/services/connection/src/base_request.cpp", 33 "$SOURCE_DIR/services/connection/src/cellular_call_connection_cs.cpp", 34 "$SOURCE_DIR/services/connection/src/cellular_call_connection_ims.cpp", 35 "$SOURCE_DIR/services/connection/src/config_request.cpp", 36 "$SOURCE_DIR/services/connection/src/supplement_request.cpp", 37 "$SOURCE_DIR/services/control/src/cellular_call_config.cpp", 38 "$SOURCE_DIR/services/control/src/cellular_call_supplement.cpp", 39 "$SOURCE_DIR/services/control/src/control_base.cpp", 40 "$SOURCE_DIR/services/control/src/cs_control.cpp", 41 "$SOURCE_DIR/services/control/src/ims_control.cpp", 42 "$SOURCE_DIR/services/manager/src/cellular_call_handler.cpp", 43 "$SOURCE_DIR/services/manager/src/cellular_call_register.cpp", 44 "$SOURCE_DIR/services/manager/src/cellular_call_service.cpp", 45 "$SOURCE_DIR/services/manager/src/cellular_call_stub.cpp", 46 "//base/telephony/call_manager/services/telephony_interaction/src/call_status_callback_proxy.cpp", 47 "//base/telephony/call_manager/services/telephony_interaction/src/cellular_call_proxy.cpp", 48 ] 49 50 include_dirs = [ 51 "$SOURCE_DIR/services/common/include", 52 "$SOURCE_DIR/services/manager/include", 53 "$SOURCE_DIR/services/control/include", 54 "$SOURCE_DIR/services/connection/include", 55 "$SOURCE_DIR/ims_interfaces/include", 56 "//base/telephony/call_manager/interfaces/innerkits", 57 "//base/telephony/call_manager/services/telephony_interaction/include", 58 "//third_party/libphonenumber/cpp/src", 59 "//third_party/libphonenumber/cpp/src/phonenumbers", 60 ] 61 62 defines += [ 63 "TELEPHONY_LOG_TAG = \"CellularCall\"", 64 "LOG_DOMAIN = 0xD002B01", 65 ] 66 67 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 68 69 deps = [ 70 "//base/telephony/core_service/interfaces/innerkits:tel_core_service_api", 71 "//base/telephony/core_service/utils:libtel_common", 72 "//third_party/libphonenumber/cpp:phonenumber_standard", 73 "//utils/native/base:utils", 74 ] 75 76 external_deps = [ 77 "eventhandler:libeventhandler", 78 "ipc:ipc_core", 79 "ril_adapter:hril_innerkits", 80 "safwk:system_ability_fwk", 81 "samgr_standard:samgr_proxy", 82 "startup_l2:syspara", 83 ] 84 85 if (is_standard_system) { 86 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 87 } else { 88 external_deps += [ "hilog:libhilog" ] 89 } 90 91 part_name = "cellular_call" 92 subsystem_name = "telephony" 93} 94