1# Copyright (c) 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. 13 14import("//build/lite/config/component/lite_component.gni") 15import("//build/lite/config/test.gni") 16 17unittest("hdf_peripheral_display_test") { 18 output_extension = "bin" 19 output_dir = "$root_out_dir/test/unittest/hdf" 20 include_dirs = [ 21 "//third_party/googletest/googletest/include", 22 "//third_party/bounds_checking_function/include", 23 "//drivers/framework/include/platform", 24 "//drivers/framework/include/core", 25 "//drivers/framework/include/osal", 26 "//drivers/adapter/uhdf/posix/include", 27 "//drivers/framework/include/utils", 28 "//drivers/framework/include", 29 "//drivers/framework/test/unittest/include", 30 "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", 31 "//drivers/peripheral/base", 32 "//drivers/peripheral/display/interfaces/include", 33 ] 34 35 sources = [ 36 "display_test.c", 37 "hdi_display_test.cpp", 38 "loadbmp_test.c", 39 ] 40 41 deps = [ 42 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 43 "//drivers/adapter/uhdf/manager:hdf_core", 44 "//drivers/adapter/uhdf/posix:hdf_posix_osal", 45 "//drivers/peripheral/display/hal:hdi_display", 46 "//third_party/bounds_checking_function:libsec_shared", 47 ] 48 49 ldflags = [ 50 "-ldisplay_gfx", 51 "-ldisplay_gralloc", 52 "-ldisplay_layer", 53 ] 54 55 defines = [ "__USER__" ] 56 cflags = [ 57 "-Wall", 58 "-Wextra", 59 "-Werror", 60 "-fsigned-char", 61 "-fno-common", 62 "-fno-strict-aliasing", 63 "-Wno-format", 64 "-Wno-format-extra-args", 65 "-Wno-error=unused-result", 66 ] 67} 68