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