• 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")
15
16module_out_path = "graphic_2d/vulkan_layers"
17
18group("systemtest") {
19  testonly = true
20
21  deps = [ ":vulkan_loader_system_test" ]
22}
23
24ohos_systemtest("vulkan_loader_system_test") {
25  module_out_path = module_out_path
26  sources = [ "vulkan_loader_system_test.cpp" ]
27  deps = [ ":vulkan_loader_test_common" ]
28}
29
30config("vulkan_loader_test_common_public_config") {
31  include_dirs = [
32    "../../../surface/include",
33    "../../../../interfaces/inner_api/surface",
34    "../../../../interfaces/inner_api/common",
35    "../../../../rosen/modules/render_service_client",
36  ]
37
38  cflags = [
39    "-Wall",
40    "-Werror",
41    "-g3",
42    "-Dprivate=public",
43    "-Dprotected=public",
44  ]
45}
46
47ohos_static_library("vulkan_loader_test_common") {
48  visibility = [ ":*" ]
49  testonly = true
50
51  public_configs = [ ":vulkan_loader_test_common_public_config" ]
52
53  public_deps = [
54    "../../../../rosen/modules/2d_graphics:2d_graphics",
55    "../../../../rosen/modules/render_service_base:librender_service_base",
56    "../../../../rosen/modules/render_service_client:librender_service_client",
57    "../../../../utils:libgraphic_utils",
58    "../../../surface:surface",
59    "//third_party/googletest:gtest_main",
60    "//third_party/vulkan-headers:vulkan_headers",
61    "//third_party/zlib:libz",
62  ]
63  external_deps = [
64    "c_utils:utils",
65    "hilog:libhilog",
66  ]
67
68  subsystem_name = "graphic"
69  part_name = "graphic_2d"
70}
71