1bc2ed2b3Sopenharmony_ci# Copyright (C) 2023 Huawei Device Co., Ltd.
2bc2ed2b3Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3bc2ed2b3Sopenharmony_ci# you may not use this file except in compliance with the License.
4bc2ed2b3Sopenharmony_ci# You may obtain a copy of the License at
5bc2ed2b3Sopenharmony_ci#
6bc2ed2b3Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7bc2ed2b3Sopenharmony_ci#
8bc2ed2b3Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9bc2ed2b3Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10bc2ed2b3Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11bc2ed2b3Sopenharmony_ci# See the License for the specific language governing permissions and
12bc2ed2b3Sopenharmony_ci# limitations under the License.
13bc2ed2b3Sopenharmony_ci
14bc2ed2b3Sopenharmony_ciimport("//build/ohos.gni")
15bc2ed2b3Sopenharmony_ciimport("//build/ohos_var.gni")
16bc2ed2b3Sopenharmony_ciimport("../../../nfc.gni")
17bc2ed2b3Sopenharmony_ci
18bc2ed2b3Sopenharmony_ciconfig("nfc_inner_kits_config") {
19bc2ed2b3Sopenharmony_ci  visibility = [ ":*" ]
20bc2ed2b3Sopenharmony_ci  defines = [ "DEBUG" ]
21bc2ed2b3Sopenharmony_ci  cflags_cc = [ "-fexceptions" ]
22bc2ed2b3Sopenharmony_ci
23bc2ed2b3Sopenharmony_ci  include_dirs = []
24bc2ed2b3Sopenharmony_ci}
25bc2ed2b3Sopenharmony_ci
26bc2ed2b3Sopenharmony_ciconfig("nfc_inner_kits_public_config") {
27bc2ed2b3Sopenharmony_ci  visibility = [ ":*" ]
28bc2ed2b3Sopenharmony_ci  defines = []
29bc2ed2b3Sopenharmony_ci  if (nfc_service_feature_vendor_applications_enabled) {
30bc2ed2b3Sopenharmony_ci    defines += [ "VENDOR_APPLICATIONS_ENABLED" ]
31bc2ed2b3Sopenharmony_ci  }
32bc2ed2b3Sopenharmony_ci  include_dirs = [ "$NFC_DIR/interfaces/inner_api/common" ]
33bc2ed2b3Sopenharmony_ci}
34bc2ed2b3Sopenharmony_ci
35bc2ed2b3Sopenharmony_ciohos_shared_library("nfc_inner_kits_common") {
36bc2ed2b3Sopenharmony_ci  sanitize = {
37bc2ed2b3Sopenharmony_ci    cfi = true
38bc2ed2b3Sopenharmony_ci    boundary_sanitize = true
39bc2ed2b3Sopenharmony_ci    integer_overflow = true
40bc2ed2b3Sopenharmony_ci    cfi_cross_dso = true
41bc2ed2b3Sopenharmony_ci    debug = false
42bc2ed2b3Sopenharmony_ci    ubsan = true
43bc2ed2b3Sopenharmony_ci  }
44bc2ed2b3Sopenharmony_ci  branch_protector_ret = "pac_ret"
45bc2ed2b3Sopenharmony_ci  sources = [
46bc2ed2b3Sopenharmony_ci    "ce_payment_services_parcelable.cpp",
47bc2ed2b3Sopenharmony_ci    "ndef_message.cpp",
48bc2ed2b3Sopenharmony_ci    "nfc_basic_proxy.cpp",
49bc2ed2b3Sopenharmony_ci    "nfc_sdk_common.cpp",
50bc2ed2b3Sopenharmony_ci    "start_hce_info_parcelable.cpp",
51bc2ed2b3Sopenharmony_ci    "taginfo.cpp",
52bc2ed2b3Sopenharmony_ci    "taginfo_parcelable.cpp",
53bc2ed2b3Sopenharmony_ci  ]
54bc2ed2b3Sopenharmony_ci
55bc2ed2b3Sopenharmony_ci  configs = [ ":nfc_inner_kits_config" ]
56bc2ed2b3Sopenharmony_ci
57bc2ed2b3Sopenharmony_ci  public_configs = [ ":nfc_inner_kits_public_config" ]
58bc2ed2b3Sopenharmony_ci
59bc2ed2b3Sopenharmony_ci  deps = []
60bc2ed2b3Sopenharmony_ci
61bc2ed2b3Sopenharmony_ci  external_deps = [
62bc2ed2b3Sopenharmony_ci    "ability_base:want",
63bc2ed2b3Sopenharmony_ci    "bundle_framework:appexecfwk_base",
64bc2ed2b3Sopenharmony_ci    "c_utils:utils",
65bc2ed2b3Sopenharmony_ci    "hilog:libhilog",
66bc2ed2b3Sopenharmony_ci    "ipc:ipc_core",
67bc2ed2b3Sopenharmony_ci  ]
68bc2ed2b3Sopenharmony_ci
69bc2ed2b3Sopenharmony_ci  part_name = "nfc"
70bc2ed2b3Sopenharmony_ci  subsystem_name = "communication"
71bc2ed2b3Sopenharmony_ci}
72