1# Copyright (c) 2020-2021 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. 13static_library("hctest") { 14 sources = [ 15 "//third_party/unity/src/unity.c", 16 "src/hctest.c", 17 "src/hctest_service.c", 18 ] 19 20 include_dirs = [ 21 "include", 22 "//third_party/unity/src", 23 "//commonlibrary/utils_lite/include", 24 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", 25 "//base/startup/bootstrap_lite/services/source", 26 "//base/startup/init/interfaces/innerkits/include/syspara", 27 ] 28 29 public = [ 30 "//third_party/unity/src/unity.h", 31 "include/hctest.h", 32 ] 33 34 defines = [ "UNITY_INCLUDE_CONFIG_H" ] 35 36 if (board_toolchain_type != "iccarm") { 37 cflags = [ "-Wno-error" ] 38 } 39} 40