1# Copyright (c) 2021-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_var.gni") 15 16import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 17import("//test/xts/tools/build/suite.gni") 18 19module_output_path = "hdf/nfc" 20 21###########################palTest########################### 22 23ohos_moduletest_suite("HatsHdfNfcHdiTest") { 24 module_out_path = module_output_path 25 sources = [ "nfc_services_test.cpp" ] 26 27 deps = [ 28 "//drivers/interface/nfc/v1_0:libnfc_proxy_1.0", 29 "//drivers/peripheral/nfc/hdi_service:hdi_nfc_service", 30 "//foundation/communication/nfc/services:nfc_service", 31 "//third_party/googletest:gmock_main", 32 "//third_party/googletest:gtest_main", 33 ] 34 35 include_dirs = [ 36 "include", 37 "//drivers/peripheral/nfc/hdi_service", 38 "//drivers/peripheral/nfc/vendor_adaptor", 39 "//third_party/nfc_hdiimpl/SN100x/halimpl/inc", 40 "//third_party/libnfc-nci/SN100x/src/include/", 41 "//third_party/libnfc-nci/SN100x/utils/include/", 42 "//third_party/nfc_hdiimpl/SN100x/halimpl/src/include/", 43 "//third_party/libnfc-nci/SN100x/src/gki/ulinux/", 44 "//third_party/libnfc-nci/SN100x/src/gki/common/", 45 "//foundation/communication/nfc/services/src/utils/", 46 ] 47 48 if (is_standard_system) { 49 external_deps = [ 50 "c_utils:utils", 51 "drivers_interface_nfc:nfc_idl_headers", 52 "hdf_core:libhdf_host", 53 "hdf_core:libhdf_ipc_adapter", 54 "hdf_core:libhdf_utils", 55 "hdf_core:libhdi", 56 "hiviewdfx_hilog_native:libhilog", 57 ] 58 } else { 59 external_deps = [ "hilog:libhilog" ] 60 } 61 external_deps += [ "ipc:ipc_single" ] 62 63 subsystem_name = "hdf" 64 part_name = "drivers_peripheral_nfc" 65} 66 67###########################end########################### 68 69