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
16TELEPHONY_CELLULAR_CALL_ROOT = "../.."
17
18ohos_shared_library("tel_ims") {
19  sanitize = {
20    cfi = true
21    cfi_cross_dso = true
22    debug = false
23  }
24  branch_protector_ret = "pac_ret"
25  sources = [
26    "services/ims_call/src/ims_call.cpp",
27    "services/ims_call/src/ims_call_stub.cpp",
28    "services/ims_core_service/src/ims_core_service.cpp",
29    "services/ims_core_service/src/ims_core_service_stub.cpp",
30    "services/ims_sms/src/ims_sms.cpp",
31    "services/ims_sms/src/ims_sms_stub.cpp",
32  ]
33
34  include_dirs = [
35    "services/ims_base/include",
36    "services/ims_core_service/include",
37    "services/ims_call/include",
38    "services/ims_sms/include",
39  ]
40
41  defines = [
42    "TELEPHONY_LOG_TAG = \"ImsService\"",
43    "LOG_DOMAIN = 0xD001F09",
44  ]
45
46  deps = [
47    "${TELEPHONY_CELLULAR_CALL_ROOT}:tel_cellular_call",
48    "${TELEPHONY_CELLULAR_CALL_ROOT}/interfaces/innerkits/ims:tel_ims_call_api",
49  ]
50
51  external_deps = [
52    "c_utils:utils",
53    "call_manager:tel_call_manager_api",
54    "core_service:tel_core_service_api",
55    "eventhandler:libeventhandler",
56    "hilog:libhilog",
57    "init:libbegetutil",
58    "ipc:ipc_single",
59    "safwk:system_ability_fwk",
60    "samgr:samgr_proxy",
61    "sms_mms:tel_sms_mms_api",
62  ]
63
64  part_name = "cellular_call"
65  subsystem_name = "telephony"
66}
67