1# Copyright (C) 2024 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_notification_config") { 19 include_dirs = [ "$NFC_DIR/interfaces/inner_api/common" ] 20} 21 22ohos_shared_library("nfc_notification") { 23 sanitize = { 24 cfi = true 25 boundary_sanitize = true 26 integer_overflow = true 27 cfi_cross_dso = true 28 debug = false 29 ubsan = true 30 } 31 branch_protector_ret = "pac_ret" 32 33 public_configs = [ ":nfc_notification_config" ] 34 35 sources = [ "nfc_notification.cpp" ] 36 37 deps = [ 38 "$NFC_DIR/interfaces/inner_api/common:nfc_inner_kits_common", 39 "//third_party/cJSON:cjson_static", 40 ] 41 42 external_deps = [ 43 "ability_base:want", 44 "ability_base:zuri", 45 "ability_runtime:ability_manager", 46 "ability_runtime:wantagent_innerkits", 47 "c_utils:utils", 48 "distributed_notification_service:ans_innerkits", 49 "hilog:libhilog", 50 "i18n:intl_util", 51 "image_framework:image_native", 52 ] 53 54 defines = [ "DEBUG" ] 55 if (nfc_service_feature_ndef_wifi_enabled) { 56 defines += [ "NDEF_WIFI_ENABLED" ] 57 } 58 if (nfc_service_feature_ndef_bt_enabled) { 59 defines += [ "NDEF_BT_ENABLED" ] 60 } 61 62 part_name = "nfc" 63 subsystem_name = "communication" 64} 65