1# Copyright (C) 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 17CELLULAR_CALL_SOURCE_DIR = "//base/telephony/cellular_call" 18CELLULAR_CALL_INTERFACES_INNERKITS = 19 "$CELLULAR_CALL_SOURCE_DIR/interfaces/innerkits" 20 21config("public_config_ims_call_api") { 22 # header file path 23 include_dirs = [ 24 "$CELLULAR_CALL_INTERFACES_INNERKITS/ims", 25 "$CELLULAR_CALL_SOURCE_DIR/services/common/include", 26 ] 27} 28 29ohos_shared_library("tel_ims_call_api") { 30 sources = [ "$CELLULAR_CALL_SOURCE_DIR/services/ims_service_interaction/src/ims_call_callback_proxy.cpp" ] 31 32 public_configs = [ ":public_config_ims_call_api" ] 33 34 external_deps = [ 35 "c_utils:utils", 36 "call_manager:tel_call_manager_api", 37 "core_service:tel_core_service_api", 38 "drivers_interface_ril:hril_innerkits", 39 "ipc:ipc_core", 40 ] 41 42 if (is_standard_system) { 43 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 44 } else { 45 external_deps += [ "hilog:libhilog" ] 46 } 47 48 defines += [ 49 "TELEPHONY_LOG_TAG = \"ImsCallApi\"", 50 "LOG_DOMAIN = 0xD001F09", 51 ] 52 53 part_name = "cellular_call" 54 subsystem_name = "telephony" 55} 56