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