• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = "../../.."
16config("call_manager_js_config") {
17  include_dirs = [ "napi/include" ]
18}
19
20ohos_shared_library("call") {
21  sanitize = {
22    cfi = true
23    cfi_cross_dso = true
24    debug = false
25  }
26  branch_protector_ret = "pac_ret"
27  sources = [
28    "napi/src/napi_call_ability_callback.cpp",
29    "napi/src/napi_call_manager.cpp",
30    "napi/src/napi_call_manager_callback.cpp",
31    "napi/src/napi_call_manager_utils.cpp",
32  ]
33
34  public_configs = [ ":call_manager_js_config" ]
35
36  deps = [
37    "$SUBSYSTEM_DIR/call_manager/frameworks/native:tel_call_manager_api",
38    "//third_party/libuv:uv",
39  ]
40
41  external_deps = [
42    "ability_base:base",
43    "ability_base:want",
44    "ability_runtime:ability_manager",
45    "c_utils:utils",
46    "core_service:libtel_common",
47    "core_service:tel_core_service_api",
48    "hilog:libhilog",
49    "image_framework:image",
50    "image_framework:image_native",
51    "init:libbegetutil",
52    "napi:ace_napi",
53  ]
54
55  defines = [
56    "TELEPHONY_LOG_TAG = \"CallManagerJsApi\"",
57    "LOG_DOMAIN = 0xD001F10",
58  ]
59
60  part_name = "call_manager"
61  subsystem_name = "telephony"
62  relative_install_dir = "module/telephony"
63}
64