# Copyright (c) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//test/xts/device_attest_lite/build/devattestconfig.gni") static_library("hctest") { sources = [ "//third_party/unity/src/unity.c", "src/hctest.c", "src/hctest_service.c", ] include_dirs = [ "include", "//third_party/unity/src", "//commonlibrary/utils_lite/include", "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", "//base/startup/bootstrap_lite/services/source", "//base/startup/init/interfaces/innerkits/include/syspara", ] public = [ "//third_party/unity/src/unity.h", "include/hctest.h", ] defines = [ "UNITY_INCLUDE_CONFIG_H" ] deps = [] if (integrate_attest_mini_module) { include_dirs += [ "//test/xts/device_attest_lite/interfaces/kit/js/include", "//test/xts/device_attest_lite/interfaces/innerkits", "//test/xts/device_attest_lite/framework/mini", ] defines += [ "INTER_ATTEST_MINI_MODULE" ] deps += [ "${devattest_path}/framework:devattest_sdk" ] } if (board_toolchain_type != "iccarm") { cflags = [ "-Wno-error" ] } }