• 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# modules deqp-gl-shared build
15
16import("//build/ohos.gni")
17import("//third_party/vk-gl-cts/vk_gl_cts.gni")
18
19config("deqp-gl-shared_config") {
20  cflags_cc = deqp_common_cflags_cc
21  defines = deqp_common_defines
22}
23
24ohos_source_set("deqp-gl-shared_source") {
25  sources = [
26    "//third_party/vk-gl-cts/modules/glshared/glsAttributeLocationTests.cpp",
27    "//third_party/vk-gl-cts/modules/glshared/glsBufferTestUtil.cpp",
28    "//third_party/vk-gl-cts/modules/glshared/glsBuiltinPrecisionTests.cpp",
29    "//third_party/vk-gl-cts/modules/glshared/glsCalibration.cpp",
30    "//third_party/vk-gl-cts/modules/glshared/glsDrawTest.cpp",
31    "//third_party/vk-gl-cts/modules/glshared/glsFboCompletenessTests.cpp",
32    "//third_party/vk-gl-cts/modules/glshared/glsFboUtil.cpp",
33    "//third_party/vk-gl-cts/modules/glshared/glsFragOpInteractionCase.cpp",
34    "//third_party/vk-gl-cts/modules/glshared/glsFragmentOpUtil.cpp",
35    "//third_party/vk-gl-cts/modules/glshared/glsInteractionTestUtil.cpp",
36    "//third_party/vk-gl-cts/modules/glshared/glsLifetimeTests.cpp",
37    "//third_party/vk-gl-cts/modules/glshared/glsLongStressCase.cpp",
38    "//third_party/vk-gl-cts/modules/glshared/glsLongStressTestUtil.cpp",
39    "//third_party/vk-gl-cts/modules/glshared/glsMemoryStressCase.cpp",
40    "//third_party/vk-gl-cts/modules/glshared/glsRandomShaderCase.cpp",
41    "//third_party/vk-gl-cts/modules/glshared/glsRandomShaderProgram.cpp",
42    "//third_party/vk-gl-cts/modules/glshared/glsRandomUniformBlockCase.cpp",
43    "//third_party/vk-gl-cts/modules/glshared/glsSamplerObjectTest.cpp",
44    "//third_party/vk-gl-cts/modules/glshared/glsScissorTests.cpp",
45    "//third_party/vk-gl-cts/modules/glshared/glsShaderConstExprTests.cpp",
46    "//third_party/vk-gl-cts/modules/glshared/glsShaderExecUtil.cpp",
47    "//third_party/vk-gl-cts/modules/glshared/glsShaderLibrary.cpp",
48    "//third_party/vk-gl-cts/modules/glshared/glsShaderLibraryCase.cpp",
49    "//third_party/vk-gl-cts/modules/glshared/glsShaderPerformanceCase.cpp",
50    "//third_party/vk-gl-cts/modules/glshared/glsShaderPerformanceMeasurer.cpp",
51    "//third_party/vk-gl-cts/modules/glshared/glsShaderRenderCase.cpp",
52    "//third_party/vk-gl-cts/modules/glshared/glsStateChangePerfTestCases.cpp",
53    "//third_party/vk-gl-cts/modules/glshared/glsStateQueryUtil.cpp",
54    "//third_party/vk-gl-cts/modules/glshared/glsTextureBufferCase.cpp",
55    "//third_party/vk-gl-cts/modules/glshared/glsTextureStateQueryTests.cpp",
56    "//third_party/vk-gl-cts/modules/glshared/glsTextureTestUtil.cpp",
57    "//third_party/vk-gl-cts/modules/glshared/glsUniformBlockCase.cpp",
58    "//third_party/vk-gl-cts/modules/glshared/glsVertexArrayTests.cpp",
59
60  ]
61  include_dirs = [
62    "//third_party/vk-gl-cts/modules/glshared",
63
64  ]
65  include_dirs += deqp_common_include_dirs
66  deps = [
67    "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil",
68    "//third_party/vk-gl-cts/framework/opengl/wrapper:libdeqp_glwrapper",
69    "//third_party/vk-gl-cts/framework/randomshaders:libdeqp_randomshaders",
70    "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil",
71    "//third_party/vk-gl-cts/framework/opengl/simplereference:libdeqp_glutil-sglr",
72    "//third_party/zlib:libz",
73    "//third_party/libpng:libpng",
74  ]
75
76  configs = [ ":deqp-gl-shared_config" ]
77
78#   lib_dirs = [
79#     "//third_party/vk-gl-cts/outlibs"
80#   ]
81#   libs = [
82#     "png",
83#     "z",
84#     # "glslang",
85#     # "SPIRV",
86#     # "SPVRemapper",
87#     # "spirv-tools",
88#     # "spirv-tools-link",
89#     # "spirv-tools-lint",
90#     # "spirv-tools-opt",
91#     # "spirv-tools-reduce",
92#     # "MachineIndependent",
93#     # "OGLCompiler",
94#     # "OSDependent",
95#     # "GenericCodeGen",
96#   ]
97}
98
99ohos_static_library("libdeqp-gl-shared") {
100  deps = [ ":deqp-gl-shared_source" ]
101  part_name = "graphic_standard"
102  subsystem_name = "graphic"
103}
104