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/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/services/common/src/cellular_call_dump_helper.cpp", 22 "$SOURCE_DIR/services/common/src/cellular_call_hisysevent.cpp", 23 "$SOURCE_DIR/services/common/src/emergency_utils.cpp", 24 "$SOURCE_DIR/services/common/src/mmi_code_utils.cpp", 25 "$SOURCE_DIR/services/common/src/module_service_utils.cpp", 26 "$SOURCE_DIR/services/common/src/standardize_utils.cpp", 27 "$SOURCE_DIR/services/connection/src/base_connection.cpp", 28 "$SOURCE_DIR/services/connection/src/base_request.cpp", 29 "$SOURCE_DIR/services/connection/src/cellular_call_connection_cs.cpp", 30 "$SOURCE_DIR/services/connection/src/cellular_call_connection_ims.cpp", 31 "$SOURCE_DIR/services/connection/src/config_request.cpp", 32 "$SOURCE_DIR/services/connection/src/supplement_request.cpp", 33 "$SOURCE_DIR/services/control/src/cellular_call_config.cpp", 34 "$SOURCE_DIR/services/control/src/cellular_call_supplement.cpp", 35 "$SOURCE_DIR/services/control/src/control_base.cpp", 36 "$SOURCE_DIR/services/control/src/cs_control.cpp", 37 "$SOURCE_DIR/services/control/src/ims_control.cpp", 38 "$SOURCE_DIR/services/ims_service_interaction/src/ims_call_callback_stub.cpp", 39 "$SOURCE_DIR/services/ims_service_interaction/src/ims_call_client.cpp", 40 "$SOURCE_DIR/services/ims_service_interaction/src/ims_call_proxy.cpp", 41 "$SOURCE_DIR/services/manager/src/cellular_call_callback.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/interfaces/innerkits/ims", 52 "$SOURCE_DIR/services/common/include", 53 "$SOURCE_DIR/services/manager/include", 54 "$SOURCE_DIR/services/control/include", 55 "$SOURCE_DIR/services/connection/include", 56 "//base/telephony/call_manager/services/telephony_interaction/include", 57 "//third_party/libphonenumber/cpp/src", 58 "//third_party/libphonenumber/cpp/src/phonenumbers", 59 ] 60 61 defines += [ 62 "TELEPHONY_LOG_TAG = \"CellularCall\"", 63 "LOG_DOMAIN = 0xD001F02", 64 ] 65 66 deps = [ "//third_party/libphonenumber/cpp:phonenumber_standard" ] 67 68 external_deps = [ 69 "ability_base:want", 70 "c_utils:utils", 71 "call_manager:tel_call_manager_api", 72 "common_event_service:cesfwk_innerkits", 73 "core_service:libtel_common", 74 "core_service:tel_core_service_api", 75 "drivers_interface_ril:hril_innerkits", 76 "eventhandler:libeventhandler", 77 "hisysevent_native:libhisysevent", 78 "hitrace_native:hitrace_meter", 79 "init:libbegetutil", 80 "ipc:ipc_core", 81 "resource_management:global_resmgr", 82 "safwk:system_ability_fwk", 83 "samgr:samgr_proxy", 84 ] 85 86 if (device_name == "rk3568") { 87 defines += [ "CALL_MANAGER_AUTO_START_OPTIMIZE" ] 88 } 89 90 if (is_standard_system) { 91 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 92 } else { 93 external_deps += [ "hilog:libhilog" ] 94 } 95 96 part_name = "cellular_call" 97 subsystem_name = "telephony" 98} 99