1# Copyright (C) 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.
13import("//build/ohos.gni")
14
15SUBSYSTEM_DIR = "../../.."
16
17config("public_config_ims_call_api") {
18  # header file path
19  include_dirs = [
20    "${SUBSYSTEM_DIR}/interfaces/innerkits/ims",
21    "${SUBSYSTEM_DIR}/interfaces/innerkits/ims_common",
22    "${SUBSYSTEM_DIR}/services/common/include",
23  ]
24}
25
26ohos_shared_library("tel_ims_call_api") {
27  sanitize = {
28    cfi = true
29    cfi_cross_dso = true
30    debug = false
31  }
32  branch_protector_ret = "pac_ret"
33  version_script = "tel_ims_call_api.versionscript"
34  sources = [ "${SUBSYSTEM_DIR}/services/ims_service_interaction/src/ims_call_callback_proxy.cpp" ]
35
36  public_configs = [ ":public_config_ims_call_api" ]
37
38  external_deps = [
39    "c_utils:utils",
40    "call_manager:tel_call_manager_api",
41    "core_service:libtel_common",
42    "core_service:tel_core_service_api",
43    "hilog:libhilog",
44    "init:libbegetutil",
45    "ipc:ipc_single",
46  ]
47
48  defines = [
49    "TELEPHONY_LOG_TAG = \"ImsCallApi\"",
50    "LOG_DOMAIN = 0xD001F09",
51  ]
52
53  innerapi_tags = [ "platformsdk" ]
54
55  part_name = "cellular_call"
56  subsystem_name = "telephony"
57}
58