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