• 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  sources = [
22    "napi/src/napi_call_ability_callback.cpp",
23    "napi/src/napi_call_manager.cpp",
24    "napi/src/napi_call_manager_callback.cpp",
25    "napi/src/napi_call_manager_utils.cpp",
26  ]
27
28  public_configs = [ ":call_manager_js_config" ]
29
30  deps = [
31    "$SUBSYSTEM_DIR/call_manager/frameworks/native:tel_call_manager_api",
32    "//third_party/libuv:uv",
33  ]
34
35  external_deps = [
36    "ability_base:base",
37    "ability_base:want",
38    "ability_runtime:ability_manager",
39    "c_utils:utils",
40    "core_service:libtel_common",
41    "core_service:tel_core_service_api",
42    "hilog:libhilog",
43    "init:libbegetutil",
44    "napi:ace_napi",
45  ]
46
47  defines = [
48    "TELEPHONY_LOG_TAG = \"CallManagerJsApi\"",
49    "LOG_DOMAIN = 0xD001F01",
50  ]
51
52  part_name = "call_manager"
53  subsystem_name = "telephony"
54  relative_install_dir = "module/telephony"
55}
56