1# Copyright (c) 2024 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 21ohos_moduletest_suite("HatsNfcEseHdiAdditionalTest") { 22 module_out_path = module_output_path 23 sources = [ 24 "../utils/nfc_chip_type_parser.cpp", 25 "nfc_services_test.cpp", 26 ] 27 28 deps = [ 29 "../../../../../../drivers/interface/nfc/v1_0:libnfc_proxy_1.0", 30 "../../../../../../drivers/peripheral/nfc/hdi_service:hdi_nfc_service", 31 "../../../../../../foundation/communication/secure_element/interfaces/inner_api:se_inner_kits", 32 "//third_party/googletest:gmock_main", 33 "//third_party/googletest:gtest_main", 34 ] 35 configs = [ ":hdf_nfc_additional" ] 36 37 if (is_standard_system) { 38 external_deps = [ 39 "c_utils:utils", 40 "drivers_interface_secure_element:libsecure_element_proxy_1.0", 41 "hdf_core:libhdf_host", 42 "hdf_core:libhdf_ipc_adapter", 43 "hdf_core:libhdf_utils", 44 "hdf_core:libhdi", 45 "hilog:libhilog", 46 ] 47 } else { 48 external_deps = [ "hilog:libhilog" ] 49 } 50 external_deps += [ "ipc:ipc_single" ] 51 52 subsystem_name = "hdf" 53 part_name = "drivers_peripheral_nfc" 54} 55 56config("hdf_nfc_additional") { 57 include_dirs = [ 58 "include", 59 "../../../../../../drivers/peripheral/secure_element/hdi_service", 60 "../../../../../../drivers/peripheral/secure_element/vendor_adaptor", 61 "../../../../../../drivers/peripheral/connected_nfc_tag/hdi_service", 62 "../../../../../../drivers/peripheral/connected_nfc_tag/vendor_adaptor", 63 "../../../../../../foundation/communication/secure_element/interfaces/inner_api/include", 64 "../utils", 65 ] 66} 67