• 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")
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
29  include_dirs = [
30    "$NFC_DIR/interfaces/inner_api/cardEmulation",
31    "$NFC_DIR/interfaces/inner_api/controller",
32  ]
33}
34
35ohos_shared_library("nfc_inner_kits_card_emulation") {
36  sanitize = {
37    cfi = true
38    boundary_sanitize = true
39    integer_overflow = true
40    cfi_cross_dso = true
41    debug = false
42  }
43  branch_protector_ret = "pac_ret"
44  sources = [
45    "cardEmulation.cpp",
46    "hce_cmd_callback_stub.cpp",
47    "hce_service.cpp",
48    "hce_session_proxy.cpp",
49  ]
50
51  configs = [ ":nfc_inner_kits_config" ]
52
53  public_configs = [ ":nfc_inner_kits_public_config" ]
54
55  deps = [
56    "../common:nfc_inner_kits_common",
57    "../controller:nfc_inner_kits_controller",
58  ]
59
60  external_deps = [
61    "ability_base:want",
62    "ability_base:zuri",
63    "ability_runtime:dataobs_manager",
64    "bundle_framework:appexecfwk_base",
65    "c_utils:utils",
66    "data_share:datashare_common",
67    "data_share:datashare_consumer",
68    "hilog:libhilog",
69    "ipc:ipc_core",
70    "samgr:samgr_proxy",
71  ]
72
73  part_name = "nfc"
74  subsystem_name = "communication"
75}
76