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("//build/ohos.gni") 15 16ohos_shared_library("tel_cellular_call") { 17 sanitize = { 18 cfi = true 19 cfi_cross_dso = true 20 debug = false 21 } 22 branch_protector_ret = "pac_ret" 23 sources = [ 24 "services/common/src/base_request.cpp", 25 "services/common/src/cellular_call_hisysevent.cpp", 26 "services/common/src/cellular_call_rdb_helper.cpp", 27 "services/common/src/mmi_code_message.cpp", 28 "services/common/src/supplement_request_cs.cpp", 29 "services/common/src/supplement_request_ims.cpp", 30 "services/connection/src/base_connection.cpp", 31 "services/connection/src/cellular_call_connection_cs.cpp", 32 "services/connection/src/cellular_call_connection_ims.cpp", 33 "services/connection/src/cellular_call_connection_satellite.cpp", 34 "services/control/src/control_base.cpp", 35 "services/control/src/cs_control.cpp", 36 "services/control/src/ims_control.cpp", 37 "services/control/src/ims_video_call_control.cpp", 38 "services/control/src/satellite_control.cpp", 39 "services/ims_service_interaction/src/ims_call_callback_stub.cpp", 40 "services/ims_service_interaction/src/ims_call_client.cpp", 41 "services/ims_service_interaction/src/ims_call_proxy.cpp", 42 "services/manager/src/cellular_call_callback.cpp", 43 "services/manager/src/cellular_call_handler.cpp", 44 "services/manager/src/cellular_call_register.cpp", 45 "services/manager/src/cellular_call_service.cpp", 46 "services/manager/src/cellular_call_stub.cpp", 47 "services/satellite_service_interaction/src/satellite_call_callback_stub.cpp", 48 "services/satellite_service_interaction/src/satellite_call_client.cpp", 49 "services/satellite_service_interaction/src/satellite_call_proxy.cpp", 50 "services/utils/src/cellular_call_config.cpp", 51 "services/utils/src/cellular_call_dump_helper.cpp", 52 "services/utils/src/cellular_call_supplement.cpp", 53 "services/utils/src/config_request.cpp", 54 "services/utils/src/emergency_utils.cpp", 55 "services/utils/src/mmi_code_utils.cpp", 56 "services/utils/src/module_service_utils.cpp", 57 "services/utils/src/standardize_utils.cpp", 58 ] 59 60 include_dirs = [ 61 "interfaces/innerkits/ims", 62 "interfaces/innerkits/ims_common", 63 "interfaces/innerkits/satellite", 64 "services/common/include", 65 "services/manager/include", 66 "services/control/include", 67 "services/connection/include", 68 "services/utils/include", 69 ] 70 71 defines = [ 72 "TELEPHONY_LOG_TAG = \"CellularCall\"", 73 "LOG_DOMAIN = 0xD001F11", 74 ] 75 76 external_deps = [ 77 "ability_base:want", 78 "ability_base:zuri", 79 "ability_runtime:dataobs_manager", 80 "c_utils:utils", 81 "call_manager:tel_call_manager_api", 82 "common_event_service:cesfwk_innerkits", 83 "core_service:libtel_common", 84 "core_service:tel_core_service_api", 85 "data_share:datashare_common", 86 "data_share:datashare_consumer", 87 "eventhandler:libeventhandler", 88 "graphic_surface:surface", 89 "hilog:libhilog", 90 "hisysevent:libhisysevent", 91 "hitrace:hitrace_meter", 92 "init:libbegetutil", 93 "ipc:ipc_single", 94 "libphonenumber:phonenumber_standard", 95 "resource_management:global_resmgr", 96 "safwk:system_ability_fwk", 97 "samgr:samgr_proxy", 98 "telephony_data:tel_telephony_data", 99 ] 100 101 cflags_cc = [ 102 "-fstack-protector-all", 103 "-O2", 104 "-D_FORTIFY_SOURCE=2", 105 ] 106 107 if (device_name == "rk3568") { 108 defines += [ "CALL_MANAGER_AUTO_START_OPTIMIZE" ] 109 } 110 111 part_name = "cellular_call" 112 subsystem_name = "telephony" 113} 114