1e1c44949Sopenharmony_ci# Copyright (C) 2021-2022 Huawei Device Co., Ltd.
2e1c44949Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3e1c44949Sopenharmony_ci# you may not use this file except in compliance with the License.
4e1c44949Sopenharmony_ci# You may obtain a copy of the License at
5e1c44949Sopenharmony_ci#
6e1c44949Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7e1c44949Sopenharmony_ci#
8e1c44949Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9e1c44949Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10e1c44949Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11e1c44949Sopenharmony_ci# See the License for the specific language governing permissions and
12e1c44949Sopenharmony_ci# limitations under the License.
13e1c44949Sopenharmony_ci
14e1c44949Sopenharmony_ciimport("//build/ohos.gni")
15e1c44949Sopenharmony_ciSUBSYSTEM_DIR = "../../.."
16e1c44949Sopenharmony_ci
17e1c44949Sopenharmony_ciohos_shared_library("cj_telephony_call_ffi") {
18e1c44949Sopenharmony_ci  sanitize = {
19e1c44949Sopenharmony_ci    cfi = true
20e1c44949Sopenharmony_ci    cfi_cross_dso = true
21e1c44949Sopenharmony_ci    debug = false
22e1c44949Sopenharmony_ci  }
23e1c44949Sopenharmony_ci
24e1c44949Sopenharmony_ci  sources = [
25e1c44949Sopenharmony_ci    "src/telephony_call_ffi.cpp",
26e1c44949Sopenharmony_ci    "src/telephony_call_impl.cpp",
27e1c44949Sopenharmony_ci  ]
28e1c44949Sopenharmony_ci
29e1c44949Sopenharmony_ci  deps =
30e1c44949Sopenharmony_ci      [ "$SUBSYSTEM_DIR/call_manager/frameworks/native:tel_call_manager_api" ]
31e1c44949Sopenharmony_ci
32e1c44949Sopenharmony_ci  external_deps = [
33e1c44949Sopenharmony_ci    "ability_base:base",
34e1c44949Sopenharmony_ci    "ability_base:want",
35e1c44949Sopenharmony_ci    "ability_runtime:ability_manager",
36e1c44949Sopenharmony_ci    "c_utils:utils",
37e1c44949Sopenharmony_ci    "core_service:libtel_common",
38e1c44949Sopenharmony_ci    "core_service:tel_core_service_api",
39e1c44949Sopenharmony_ci    "hilog:libhilog",
40e1c44949Sopenharmony_ci    "image_framework:image",
41e1c44949Sopenharmony_ci    "image_framework:image_native",
42e1c44949Sopenharmony_ci    "init:libbegetutil",
43e1c44949Sopenharmony_ci    "libuv:uv",
44e1c44949Sopenharmony_ci    "napi:ace_napi",
45e1c44949Sopenharmony_ci    "napi:cj_bind_ffi",
46e1c44949Sopenharmony_ci  ]
47e1c44949Sopenharmony_ci
48e1c44949Sopenharmony_ci  part_name = "call_manager"
49e1c44949Sopenharmony_ci  subsystem_name = "telephony"
50e1c44949Sopenharmony_ci  innerapi_tags = [ "platformsdk" ]
51e1c44949Sopenharmony_ci}
52