• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")
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    "//utils/native/base/include",
22  ]
23}
24
25ohos_shared_library("call") {
26  sources = [
27    "napi/src/napi_call_ability_callback.cpp",
28    "napi/src/napi_call_manager.cpp",
29    "napi/src/napi_call_manager_callback.cpp",
30    "napi/src/napi_call_manager_utils.cpp",
31  ]
32
33  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
34
35  public_configs = [ ":call_manager_js_config" ]
36
37  deps = [
38    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
39    "//foundation/ace/napi:ace_napi",
40    "//third_party/libuv:uv_static",
41    "//utils/native/base:utils",
42  ]
43
44  external_deps = [
45    "ability_base:want",
46    "ability_runtime:ability_manager",
47    "bundle_framework:appexecfwk_base",
48    "bundle_framework:appexecfwk_core",
49    "call_manager:tel_call_manager_api",
50    "core_service:tel_core_service_api",
51    "eventhandler:libeventhandler",
52    "ipc:ipc_core",
53    "safwk:system_ability_fwk",
54    "samgr_standard:samgr_proxy",
55  ]
56
57  defines = [
58    "TELEPHONY_LOG_TAG = \"CallManagerJsApi\"",
59    "LOG_DOMAIN = 0xD002B01",
60  ]
61
62  if (is_standard_system) {
63    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
64  } else {
65    external_deps += [ "hilog:libhilog" ]
66  }
67
68  part_name = "call_manager"
69  subsystem_name = "telephony"
70  relative_install_dir = "module/telephony"
71}
72