1094332d3Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd.
2094332d3Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3094332d3Sopenharmony_ci# you may not use this file except in compliance with the License.
4094332d3Sopenharmony_ci# You may obtain a copy of the License at
5094332d3Sopenharmony_ci#
6094332d3Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7094332d3Sopenharmony_ci#
8094332d3Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9094332d3Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10094332d3Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11094332d3Sopenharmony_ci# See the License for the specific language governing permissions and
12094332d3Sopenharmony_ci# limitations under the License.
13094332d3Sopenharmony_ci
14094332d3Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni")
15094332d3Sopenharmony_ciimport("//build/lite/config/test.gni")
16094332d3Sopenharmony_ci
17094332d3Sopenharmony_ciunittest("hdf_peripheral_display_test") {
18094332d3Sopenharmony_ci  output_extension = "bin"
19094332d3Sopenharmony_ci  output_dir = "$root_out_dir/test/unittest/hdf"
20094332d3Sopenharmony_ci  include_dirs = [
21094332d3Sopenharmony_ci    "//third_party/googletest/googletest/include",
22094332d3Sopenharmony_ci    "//third_party/bounds_checking_function/include",
23094332d3Sopenharmony_ci    "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
24094332d3Sopenharmony_ci    "//drivers/peripheral/base",
25094332d3Sopenharmony_ci    "//drivers/peripheral/display/interfaces/include",
26094332d3Sopenharmony_ci  ]
27094332d3Sopenharmony_ci
28094332d3Sopenharmony_ci  sources = [
29094332d3Sopenharmony_ci    "display_test.c",
30094332d3Sopenharmony_ci    "hdi_display_test.cpp",
31094332d3Sopenharmony_ci    "loadbmp_test.c",
32094332d3Sopenharmony_ci  ]
33094332d3Sopenharmony_ci
34094332d3Sopenharmony_ci  public_deps = [
35094332d3Sopenharmony_ci    "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
36094332d3Sopenharmony_ci    "//drivers/hdf_core/adapter/uhdf/manager:hdf_core",
37094332d3Sopenharmony_ci    "//drivers/hdf_core/adapter/uhdf/posix:hdf_posix_osal",
38094332d3Sopenharmony_ci    "//drivers/peripheral/display/hal:hdi_display",
39094332d3Sopenharmony_ci    "//third_party/bounds_checking_function:libsec_shared",
40094332d3Sopenharmony_ci  ]
41094332d3Sopenharmony_ci
42094332d3Sopenharmony_ci  ldflags = [
43094332d3Sopenharmony_ci    "-ldisplay_gfx",
44094332d3Sopenharmony_ci    "-ldisplay_gralloc",
45094332d3Sopenharmony_ci    "-ldisplay_layer",
46094332d3Sopenharmony_ci  ]
47094332d3Sopenharmony_ci
48094332d3Sopenharmony_ci  defines = [ "__USER__" ]
49094332d3Sopenharmony_ci  cflags = [
50094332d3Sopenharmony_ci    "-Wall",
51094332d3Sopenharmony_ci    "-Wextra",
52094332d3Sopenharmony_ci    "-Werror",
53094332d3Sopenharmony_ci    "-fsigned-char",
54094332d3Sopenharmony_ci    "-fno-common",
55094332d3Sopenharmony_ci    "-fno-strict-aliasing",
56094332d3Sopenharmony_ci    "-Wno-format",
57094332d3Sopenharmony_ci    "-Wno-format-extra-args",
58094332d3Sopenharmony_ci    "-Wno-error=unused-result",
59094332d3Sopenharmony_ci  ]
60094332d3Sopenharmony_ci}
61