• 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  include_dirs = [ "//third_party/vk-gl-cts/modules/glshared" ]
61  include_dirs += deqp_common_include_dirs
62  deps = [
63    "//third_party/libpng:libpng",
64    "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil",
65    "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil",
66    "//third_party/vk-gl-cts/framework/opengl/simplereference:libdeqp_glutil-sglr",
67    "//third_party/vk-gl-cts/framework/opengl/wrapper:libdeqp_glwrapper",
68    "//third_party/vk-gl-cts/framework/randomshaders:libdeqp_randomshaders",
69    "//third_party/zlib:libz",
70  ]
71
72  configs = [ ":deqp-gl-shared_config" ]
73
74  #   lib_dirs = [
75  #     "//third_party/vk-gl-cts/outlibs"
76  #   ]
77  #   libs = [
78  #     "png",
79  #     "z",
80  #     # "glslang",
81  #     # "SPIRV",
82  #     # "SPVRemapper",
83  #     # "spirv-tools",
84  #     # "spirv-tools-link",
85  #     # "spirv-tools-lint",
86  #     # "spirv-tools-opt",
87  #     # "spirv-tools-reduce",
88  #     # "MachineIndependent",
89  #     # "OGLCompiler",
90  #     # "OSDependent",
91  #     # "GenericCodeGen",
92  #   ]
93}
94
95ohos_static_library("libdeqp-gl-shared") {
96  deps = [ ":deqp-gl-shared_source" ]
97  part_name = "graphic_2d"
98  subsystem_name = "graphic"
99}
100