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. 13 14import("//build/ohos.gni") 15import("//build/ohos_var.gni") 16import("../../../nfc.gni") 17 18config("nfc_inner_kits_config") { 19 visibility = [ ":*" ] 20 defines = [ "DEBUG" ] 21 cflags_cc = [ "-fexceptions" ] 22 23 include_dirs = [] 24} 25 26config("nfc_inner_kits_public_config") { 27 visibility = [ ":*" ] 28 defines = [] 29 if (nfc_service_feature_vendor_applications_enabled) { 30 defines += [ "VENDOR_APPLICATIONS_ENABLED" ] 31 } 32 include_dirs = [ 33 "$NFC_DIR/interfaces/inner_api/common", 34 "$NFC_DIR/interfaces/inner_api/controller", 35 ] 36} 37 38ohos_shared_library("nfc_inner_kits_controller") { 39 sanitize = { 40 cfi = true 41 boundary_sanitize = true 42 integer_overflow = true 43 cfi_cross_dso = true 44 debug = false 45 ubsan = true 46 } 47 branch_protector_ret = "pac_ret" 48 sources = [ 49 "ndef_msg_callback_stub.cpp", 50 "nfc_controller.cpp", 51 "nfc_controller_callback_stub.cpp", 52 "nfc_controller_proxy.cpp", 53 "nfc_data_share_impl.cpp", 54 "nfc_sa_client.cpp", 55 ] 56 if (nfc_service_feature_vendor_applications_enabled) { 57 sources += [ 58 "on_card_emulation_notify_cb_stub.cpp", 59 "query_app_info_callback_stub.cpp", 60 ] 61 } 62 configs = [ ":nfc_inner_kits_config" ] 63 64 public_configs = [ ":nfc_inner_kits_public_config" ] 65 66 deps = [ "../common:nfc_inner_kits_common" ] 67 68 external_deps = [ 69 "ability_base:want", 70 "ability_base:zuri", 71 "ability_runtime:dataobs_manager", 72 "bundle_framework:appexecfwk_base", 73 "c_utils:utils", 74 "data_share:datashare_common", 75 "data_share:datashare_consumer", 76 "hilog:libhilog", 77 "ipc:ipc_core", 78 "samgr:samgr_proxy", 79 ] 80 81 part_name = "nfc" 82 subsystem_name = "communication" 83} 84