1# Copyright (C) 2023 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")
14SUBSYSTEM_DIR = "../../../../"
15ohos_shared_library("vcard") {
16  include_dirs = [
17    "$SUBSYSTEM_DIR/core_service/frameworks/js/napi",
18    "include",
19    "$SUBSYSTEM_DIR/core_service/interfaces/kits/native",
20    "$SUBSYSTEM_DIR/core_service/interfaces/innerkits/include",
21    "$SUBSYSTEM_DIR/core_service/utils/vcard/include",
22    "$SUBSYSTEM_DIR/core_service/utils/vcard/include/contact_data",
23  ]
24
25  sources = [
26    "$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
27    "src/napi_vcard.cpp",
28  ]
29
30  configs = [ "$SUBSYSTEM_DIR/core_service/utils:telephony_log_config" ]
31
32  deps = [
33    "$SUBSYSTEM_DIR/core_service/interfaces/innerkits:tel_core_service_api",
34    "$SUBSYSTEM_DIR/core_service/utils:libtel_common",
35    "$SUBSYSTEM_DIR/core_service/utils:libtel_vcard",
36  ]
37
38  external_deps = [
39    "ability_base:zuri",
40    "ability_runtime:abilitykit_native",
41    "ability_runtime:data_ability_helper",
42    "ability_runtime:extensionkit_native",
43    "ability_runtime:napi_base_context",
44    "c_utils:utils",
45    "data_share:datashare_common",
46    "data_share:datashare_consumer",
47    "hilog:libhilog",
48    "init:libbegetutil",
49    "ipc:ipc_single",
50    "napi:ace_napi",
51  ]
52  defines = [
53    "TELEPHONY_LOG_TAG = \"CoreServiceVcardJsApi\"",
54    "LOG_DOMAIN = 0xD001F04",
55  ]
56  subsystem_name = "telephony"
57  part_name = "core_service"
58  relative_install_dir = "module/telephony"
59}
60