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