• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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/test.gni")
15import("//foundation/graphic/graphic_2d/graphic_config.gni")
16
17module_out_path = "graphic_2d/graphic_2d/vulkan_layers"
18
19group("systemtest") {
20  testonly = true
21
22  deps = [ ":vulkan_loader_system_test" ]
23}
24
25ohos_systemtest("vulkan_loader_system_test") {
26  defines = [ "VK_USE_PLATFORM_OHOS" ]
27  module_out_path = module_out_path
28  sources = [ "vulkan_loader_system_test.cpp" ]
29  deps = [ ":vulkan_loader_test_common" ]
30  external_deps = [ "googletest:gtest_main" ]
31}
32
33ohos_static_library("vulkan_loader_test_common") {
34  visibility = [ ":*" ]
35  testonly = true
36
37  public_deps = [
38    "$graphic_2d_root/rosen/modules/2d_graphics:2d_graphics",
39    "$graphic_2d_root/rosen/modules/render_service_base:librender_service_base",
40    "$graphic_2d_root/rosen/modules/render_service_client:librender_service_client",
41    "$graphic_2d_root/utils:libgraphic_utils",
42  ]
43  public_external_deps = [
44    "eventhandler:libeventhandler",
45    "vulkan-headers:vulkan_headers",
46    "zlib:libz",
47  ]
48  external_deps = [
49    "c_utils:utils",
50    "hilog:libhilog",
51  ]
52
53  cflags = [
54    "-Wall",
55    "-Werror",
56    "-g3",
57    "-Dprivate=public",
58    "-Dprotected=public",
59  ]
60
61  subsystem_name = "graphic"
62  part_name = "graphic_2d"
63}
64