• 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.
13import("//build/ohos.gni")
14import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
15
16ohos_shared_library("libnfc_interface_service_1.1") {
17  include_dirs = [
18    "//drivers/peripheral/nfc/hdi_service",
19    "//drivers/peripheral/nfc/vendor_adaptor",
20  ]
21  sources = [ "nfc_impl.cpp" ]
22  branch_protector_ret = "pac_ret"
23  public_deps = [ "//drivers/peripheral/nfc/vendor_adaptor:nfc_vendor_adaptor" ]
24
25  cflags = []
26
27  external_deps = [
28    "c_utils:utils",
29    "drivers_interface_nfc:libnfc_stub_1.1",
30    "drivers_interface_nfc:nfc_idl_headers",
31    "hdf_core:libhdf_utils",
32    "hilog:libhilog",
33    "ipc:ipc_single",
34  ]
35
36  install_images = [ chipset_base_dir ]
37  subsystem_name = "hdf"
38  part_name = "drivers_peripheral_nfc"
39}
40
41ohos_shared_library("nfc_hdi_driver") {
42  include_dirs = [
43    "//drivers/peripheral/nfc/hdi_service",
44    "//drivers/peripheral/nfc/vendor_adaptor",
45  ]
46
47  sources = [ "nfc_interface_driver.cpp" ]
48
49  deps = []
50
51  cflags = []
52
53  external_deps = [
54    "c_utils:utils",
55    "drivers_interface_nfc:libnfc_stub_1.1",
56    "hdf_core:libhdf_host",
57    "hdf_core:libhdf_ipc_adapter",
58    "hdf_core:libhdf_utils",
59    "hdf_core:libhdi",
60    "hilog:libhilog",
61    "ipc:ipc_single",
62  ]
63  branch_protector_ret = "pac_ret"
64
65  shlib_type = "hdi"
66  install_images = [ chipset_base_dir ]
67  subsystem_name = "hdf"
68  part_name = "drivers_peripheral_nfc"
69}
70
71group("hdi_nfc_service") {
72  deps = [
73    ":libnfc_interface_service_1.1",
74    ":nfc_hdi_driver",
75  ]
76}
77