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. 13 14import("//build/ohos.gni") 15import("//build/ohos_var.gni") 16import("../../../../nfc.gni") 17 18config("nci_native_default_config") { 19 visibility = [ ":*" ] 20 21 defines = [ "DEBUG" ] 22 23 cflags_cc = [ "-DNXP_EXTNS=TRUE" ] 24 25 include_dirs = [ 26 "//third_party/libnfc-nci/SN100x/src/gki/common/", 27 "//third_party/libnfc-nci/SN100x/src/gki/ulinux/", 28 "//third_party/libnfc-nci/SN100x/src/include", 29 "//third_party/libnfc-nci/SN100x/src/nfa/include", 30 "//third_party/libnfc-nci/SN100x/src/nfc/include", 31 "//third_party/libnfc-nci/SN100x/utils/include", 32 "$NFC_DIR/interfaces/inner_api/common", 33 "include", 34 ] 35} 36 37ohos_shared_library("nci_native_default") { 38 sanitize = { 39 cfi = true 40 boundary_sanitize = true 41 integer_overflow = true 42 cfi_cross_dso = true 43 debug = false 44 ubsan = true 45 } 46 branch_protector_ret = "pac_ret" 47 sources = [ 48 "src/extns.cpp", 49 "src/nci_ce_impl_default.cpp", 50 "src/nci_native_adapter_default.cpp", 51 "src/nci_nfcc_impl_default.cpp", 52 "src/nci_tag_impl_default.cpp", 53 "src/nfcc_nci_adapter.cpp", 54 "src/routing_manager.cpp", 55 "src/synchronize_event.cpp", 56 "src/tag_host.cpp", 57 "src/tag_native_impl.cpp", 58 "src/tag_nci_adapter_common.cpp", 59 "src/tag_nci_adapter_ntf.cpp", 60 "src/tag_nci_adapter_rw.cpp", 61 ] 62 63 public_configs = [ ":nci_native_default_config" ] 64 65 deps = [ 66 "$NFC_DIR/interfaces/inner_api/common:nfc_inner_kits_common", 67 "//third_party/libnfc-nci/SN100x:nfc-nci", 68 ] 69 70 external_deps = [ 71 "ability_base:want", 72 "c_utils:utils", 73 "hilog:libhilog", 74 ] 75 76 part_name = "nfc" 77 subsystem_name = "communication" 78} 79