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