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") 15SUBSYSTEM_DIR = "//base/telephony" 16 17config("call_manager_js_config") { 18 include_dirs = [ 19 "//third_party/node/src", 20 "$SUBSYSTEM_DIR/call_manager/frameworks/js/napi/include", 21 "//commonlibrary/c_utils/base/include", 22 "$SUBSYSTEM_DIR/core_service/frameworks/js/napi", 23 ] 24} 25 26ohos_shared_library("call") { 27 sources = [ 28 "$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp", 29 "napi/src/napi_call_ability_callback.cpp", 30 "napi/src/napi_call_manager.cpp", 31 "napi/src/napi_call_manager_callback.cpp", 32 "napi/src/napi_call_manager_utils.cpp", 33 ] 34 35 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 36 37 public_configs = [ ":call_manager_js_config" ] 38 39 deps = [ 40 "//foundation/arkui/napi:ace_napi", 41 "//third_party/libuv:uv", 42 ] 43 44 external_deps = [ 45 "ability_base:base", 46 "ability_base:want", 47 "ability_runtime:ability_manager", 48 "c_utils:utils", 49 "call_manager:tel_call_manager_api", 50 "core_service:tel_core_service_api", 51 "init:libbegetutil", 52 ] 53 54 defines = [ 55 "TELEPHONY_LOG_TAG = \"CallManagerJsApi\"", 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 part_name = "call_manager" 66 subsystem_name = "telephony" 67 relative_install_dir = "module/telephony" 68} 69