• 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")
15
16ohos_shared_library("tel_cellular_call") {
17  sources = [
18    "services/common/src/cellular_call_dump_helper.cpp",
19    "services/common/src/cellular_call_hisysevent.cpp",
20    "services/common/src/emergency_utils.cpp",
21    "services/common/src/mmi_code_utils.cpp",
22    "services/common/src/module_service_utils.cpp",
23    "services/common/src/standardize_utils.cpp",
24    "services/connection/src/base_connection.cpp",
25    "services/connection/src/base_request.cpp",
26    "services/connection/src/cellular_call_connection_cs.cpp",
27    "services/connection/src/cellular_call_connection_ims.cpp",
28    "services/connection/src/config_request.cpp",
29    "services/connection/src/supplement_request_cs.cpp",
30    "services/connection/src/supplement_request_ims.cpp",
31    "services/control/src/cellular_call_config.cpp",
32    "services/control/src/cellular_call_supplement.cpp",
33    "services/control/src/control_base.cpp",
34    "services/control/src/cs_control.cpp",
35    "services/control/src/ims_control.cpp",
36    "services/ims_service_interaction/src/ims_call_callback_stub.cpp",
37    "services/ims_service_interaction/src/ims_call_client.cpp",
38    "services/ims_service_interaction/src/ims_call_proxy.cpp",
39    "services/manager/src/cellular_call_callback.cpp",
40    "services/manager/src/cellular_call_handler.cpp",
41    "services/manager/src/cellular_call_register.cpp",
42    "services/manager/src/cellular_call_service.cpp",
43    "services/manager/src/cellular_call_stub.cpp",
44  ]
45
46  include_dirs = [
47    "interfaces/innerkits/ims",
48    "services/common/include",
49    "services/manager/include",
50    "services/control/include",
51    "services/connection/include",
52    "//third_party/libphonenumber/cpp/src",
53    "//third_party/libphonenumber/cpp/src/phonenumbers",
54  ]
55
56  defines = [
57    "TELEPHONY_LOG_TAG = \"CellularCall\"",
58    "LOG_DOMAIN = 0xD001F02",
59  ]
60
61  deps = [ "//third_party/libphonenumber/cpp:phonenumber_standard" ]
62
63  external_deps = [
64    "ability_base:want",
65    "c_utils:utils",
66    "call_manager:tel_call_manager_api",
67    "common_event_service:cesfwk_innerkits",
68    "core_service:libtel_common",
69    "core_service:tel_core_service_api",
70    "eventhandler:libeventhandler",
71    "hilog:libhilog",
72    "hisysevent:libhisysevent",
73    "hitrace:hitrace_meter",
74    "init:libbegetutil",
75    "ipc:ipc_single",
76    "resource_management:global_resmgr",
77    "safwk:system_ability_fwk",
78    "samgr:samgr_proxy",
79  ]
80
81  if (device_name == "rk3568") {
82    defines += [ "CALL_MANAGER_AUTO_START_OPTIMIZE" ]
83  }
84
85  part_name = "cellular_call"
86  subsystem_name = "telephony"
87}
88