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("//build/ohos.gni") 15 16SUBSYSTEM_DIR = "../.." 17config("call_manager_config") { 18 include_dirs = [ 19 "include", 20 "${SUBSYSTEM_DIR}/interfaces/innerkits", 21 "${SUBSYSTEM_DIR}/utils/include", 22 ] 23} 24 25ohos_shared_library("tel_call_manager_api") { 26 version_script = "tel_call_manager_api.versionscript" 27 sources = [ 28 "src/bluetooth_call_client.cpp", 29 "src/bluetooth_call_proxy.cpp", 30 "src/call_ability_callback.cpp", 31 "src/call_ability_callback_stub.cpp", 32 "src/call_manager_client.cpp", 33 "src/call_manager_proxy.cpp", 34 "src/call_manager_service_proxy.cpp", 35 "src/call_status_callback_proxy.cpp", 36 "src/cellular_call_proxy.cpp", 37 ] 38 39 public_configs = [ ":call_manager_config" ] 40 41 external_deps = [ 42 "ability_base:want", 43 "ability_runtime:ability_manager", 44 "ability_runtime:app_manager", 45 "c_utils:utils", 46 "common_event_service:cesfwk_innerkits", 47 "core_service:tel_core_service_api", 48 "hilog:libhilog", 49 "init:libbegetutil", 50 "ipc:ipc_single", 51 "safwk:system_ability_fwk", 52 "samgr:samgr_proxy", 53 ] 54 55 defines = [ 56 "TELEPHONY_LOG_TAG = \"CallManagerApi\"", 57 "LOG_DOMAIN = 0xD001F01", 58 ] 59 60 if (device_name == "rk3568") { 61 defines += [ "CALL_MANAGER_AUTO_START_OPTIMIZE" ] 62 } 63 64 part_name = "call_manager" 65 innerapi_tags = [ "platformsdk" ] 66 subsystem_name = "telephony" 67} 68