• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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/ohos_var.gni")
15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
16import("//test/xts/tools/build/suite.gni")
17
18module_output_path = "hats/display"
19config("module_private_config") {
20  visibility = [ ":*" ]
21}
22
23ohos_static_library("disp_hdi_test_common") {
24  sources = [ "../common/display_test_utils.cpp" ]
25  include_dirs = [
26    "include",
27    "//drivers/peripheral/display/interfaces/include",
28    "//drivers/peripheral/base",
29  ]
30  output_name = "disp_hdi_test_common"
31  cflags = [
32    "-DGRALLOC_GBM_SUPPORT",
33    "-Wno-macro-redefined",
34  ]
35
36  external_deps = [
37    "c_utils:utils",
38    "hiviewdfx_hilog_native:libhilog",
39  ]
40  subsystem_name = "hdf"
41  part_name = "drivers_peripheral_display"
42}
43
44ohos_moduletest_suite("HatszHdfDisplayDeviceTest") {
45  module_out_path = module_output_path
46  sources = [
47    "hdi_composition_check.cpp",
48    "hdi_device_test.cpp",
49    "hdi_test_device.cpp",
50    "hdi_test_display.cpp",
51    "hdi_test_layer.cpp",
52  ]
53  deps = [
54    ":disp_hdi_test_common",
55    "//drivers/peripheral/display/hal:hdi_display_device",
56    "//drivers/peripheral/display/hal:hdi_display_gralloc",
57    "//third_party/googletest:gtest_main",
58  ]
59  include_dirs = [
60    "../common",
61    "//drivers/peripheral/display/interfaces/include",
62    "//drivers/peripheral/base",
63    ".",
64  ]
65  external_deps = [
66    "c_utils:utils",
67    "hdf_core:libhdf_utils",
68    "hiviewdfx_hilog_native:libhilog",
69  ]
70  cflags = [ "-Wno-unused-function" ]
71}
72