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 defines = [ "VK_USE_PLATFORM_OHOS" ] 26 module_out_path = module_out_path 27 sources = [ "vulkan_loader_system_test.cpp" ] 28 deps = [ ":vulkan_loader_test_common" ] 29 external_deps = [ "graphic_surface:surface" ] 30} 31 32ohos_static_library("vulkan_loader_test_common") { 33 visibility = [ ":*" ] 34 testonly = true 35 36 public_deps = [ 37 "../../../../rosen/modules/2d_graphics:2d_graphics", 38 "../../../../rosen/modules/render_service_base:librender_service_base", 39 "../../../../rosen/modules/render_service_client:librender_service_client", 40 "../../../../utils:libgraphic_utils", 41 "//third_party/googletest:gtest_main", 42 ] 43 public_external_deps = [ 44 "vulkan-headers:vulkan_headers", 45 "zlib:libz", 46 ] 47 external_deps = [ 48 "c_utils:utils", 49 "hilog:libhilog", 50 ] 51 52 cflags = [ 53 "-Wall", 54 "-Werror", 55 "-g3", 56 "-Dprivate=public", 57 "-Dprotected=public", 58 ] 59 60 subsystem_name = "graphic" 61 part_name = "graphic_2d" 62} 63