• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")
16
17config("nfc_inner_kits_config") {
18  visibility = [ ":*" ]
19  defines = [ "DEBUG" ]
20  cflags_cc = [ "-fexceptions" ]
21
22  include_dirs = []
23}
24
25config("nfc_inner_kits_public_config") {
26  visibility = [ ":*" ]
27
28  include_dirs = [
29    "include",
30    "include/controller",
31    "include/tags",
32    "include/cardEmulation",
33  ]
34}
35
36ohos_shared_library("nfc_inner_kits") {
37  sources = [
38    "src/cardEmulation/cardEmulation.cpp",
39    "src/controller/nfc_controller.cpp",
40    "src/controller/nfc_controller_callback_stub.cpp",
41    "src/controller/nfc_controller_proxy.cpp",
42    "src/nfc_basic_proxy.cpp",
43    "src/nfc_sdk_common.cpp",
44    "src/tags/basic_tag_session.cpp",
45    "src/tags/iso15693_tag.cpp",
46    "src/tags/isodep_tag.cpp",
47    "src/tags/mifare_classic_tag.cpp",
48    "src/tags/mifare_ultralight_tag.cpp",
49    "src/tags/ndef_formatable_tag.cpp",
50    "src/tags/ndef_message.cpp",
51    "src/tags/ndef_tag.cpp",
52    "src/tags/nfca_tag.cpp",
53    "src/tags/nfcb_tag.cpp",
54    "src/tags/nfcf_tag.cpp",
55    "src/tags/tag_session_proxy.cpp",
56    "src/tags/taginfo.cpp",
57  ]
58
59  configs = [ ":nfc_inner_kits_config" ]
60
61  public_configs = [ ":nfc_inner_kits_public_config" ]
62
63  deps = []
64
65  external_deps = [
66    "ability_base:want",
67    "c_utils:utils",
68    "hiviewdfx_hilog_native:libhilog",
69    "ipc:ipc_core",
70    "samgr:samgr_proxy",
71  ]
72
73  part_name = "nfc"
74  subsystem_name = "communication"
75}
76