• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development 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
14# deqp external vkutil build
15
16import("//build/ohos.gni")
17import("//third_party/vk-gl-cts/vk_gl_cts.gni")
18
19config("deqp_vk_draw_config") {
20  cflags_cc = deqp_common_cflags_cc
21  defines = deqp_common_defines
22
23  #defines += [ "_XOPEN_SOURCE=600" ]
24}
25
26ohos_source_set("deqp_vk_draw_source") {
27  sources = [
28    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktBasicDrawTests.cpp",
29    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktBasicDrawTests.hpp",
30    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawAhbTests.cpp",
31    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawAhbTests.hpp",
32    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawBaseClass.cpp",
33    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawBaseClass.hpp",
34    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawBufferObjectUtil.cpp",
35    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawBufferObjectUtil.hpp",
36    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawConcurrentTests.cpp",
37    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawConcurrentTests.hpp",
38    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawCreateInfoUtil.cpp",
39    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawCreateInfoUtil.hpp",
40    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawDepthBiasTests.cpp",
41    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawDepthBiasTests.hpp",
42    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawDepthClampTests.cpp",
43    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawDepthClampTests.hpp",
44    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawDifferingInterpolationTests.cpp",
45    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawDifferingInterpolationTests.hpp",
46    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawDiscardRectanglesTests.cpp",
47    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawDiscardRectanglesTests.hpp",
48    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawExplicitVertexParameterTests.cpp",
49    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawExplicitVertexParameterTests.hpp",
50    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawGroupParams.hpp",
51    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawImageObjectUtil.cpp",
52    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawImageObjectUtil.hpp",
53    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawIndexedTest.cpp",
54    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawIndexedTest.hpp",
55    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawIndirectTest.cpp",
56    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawIndirectTest.hpp",
57    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawInstancedTests.cpp",
58    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawInstancedTests.hpp",
59    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawInvertedDepthRangesTests.cpp",
60    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawInvertedDepthRangesTests.hpp",
61    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawMultiExtTests.cpp",
62    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawMultiExtTests.hpp",
63    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawMultipleClearsWithinRenderPass.cpp",
64    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawMultipleClearsWithinRenderPass.hpp",
65    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawMultipleInterpolationTests.cpp",
66    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawMultipleInterpolationTests.hpp",
67    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawMultisampleLinearInterpolationTests.cpp",
68    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawMultisampleLinearInterpolationTests.hpp",
69    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawNegativeViewportHeightTests.cpp",
70    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawNegativeViewportHeightTests.hpp",
71    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawOutputLocationTests.cpp",
72    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawOutputLocationTests.hpp",
73    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawScissorTests.cpp",
74    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawScissorTests.hpp",
75    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawShaderDrawParametersTests.cpp",
76    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawShaderDrawParametersTests.hpp",
77    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawShaderInvocationTests.cpp",
78    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawShaderInvocationTests.hpp",
79    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawShaderLayerTests.cpp",
80    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawShaderLayerTests.hpp",
81    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawShaderViewportIndexTests.cpp",
82    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawShaderViewportIndexTests.hpp",
83    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawSimpleTest.cpp",
84    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawSimpleTest.hpp",
85    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawTestCaseUtil.hpp",
86    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawTests.cpp",
87    "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/vktDrawTests.hpp",
88  ]
89
90  include_dirs = deqp_vk_common_include_dirs
91  include_dirs +=
92      [ "//third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw" ]
93
94  deps = [
95    "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan:libdeqp_vkutil",
96    "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil",
97  ]
98  part_name = "acts"
99  subsystem_name = "xts"
100  configs = [ ":deqp_vk_draw_config" ]
101}
102ohos_static_library("libdeqp_vk_draw") {
103  deps = [ ":deqp_vk_draw_source" ]
104  part_name = "acts"
105  subsystem_name = "xts"
106}
107