• 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_config") {
18  include_dirs = [
19    "$SUBSYSTEM_DIR/call_manager/frameworks/native/include",
20    "$SUBSYSTEM_DIR/call_manager/interfaces/innerkits",
21    "$SUBSYSTEM_DIR/call_manager/utils/include",
22    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager/include",
23    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/include/appmgr",
24    "//foundation/aafwk/standard/interfaces/innerkits/base/include/ohos/aafwk/base",
25  ]
26}
27
28ohos_shared_library("tel_call_manager_api") {
29  sources = [
30    "src/bluetooth_call_client.cpp",
31    "src/bluetooth_call_proxy.cpp",
32    "src/call_ability_callback.cpp",
33    "src/call_ability_callback_stub.cpp",
34    "src/call_manager_client.cpp",
35    "src/call_manager_proxy.cpp",
36    "src/call_manager_service_proxy.cpp",
37  ]
38
39  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
40
41  public_configs = [ ":call_manager_config" ]
42
43  deps = [
44    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
45    "//utils/native/base:utils",
46  ]
47
48  external_deps = [
49    "ability_base:want",
50    "ability_runtime:ability_manager",
51    "core_service:tel_core_service_api",
52    "ipc:ipc_core",
53    "safwk:system_ability_fwk",
54    "samgr_standard:samgr_proxy",
55    "startup_l2:syspara",
56  ]
57
58  defines = [
59    "TELEPHONY_LOG_TAG = \"CallManagerApi\"",
60    "LOG_DOMAIN = 0xD002B01",
61  ]
62
63  if (is_standard_system) {
64    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
65  } else {
66    external_deps += [ "hilog:libhilog" ]
67  }
68
69  part_name = "call_manager"
70  subsystem_name = "telephony"
71  relative_install_dir = "module"
72}
73