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