• 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# external modules common build
15
16import("//build/ohos.gni")
17import("//third_party/vk-gl-cts/vk_gl_cts.gni")
18
19config("glcts-common_config") {
20  cflags_cc = [
21    "-Wno-conversion",
22    "-Wno-unused-function",
23  ]
24
25  cflags_cc += deqp_common_cflags_cc
26  defines = deqp_common_defines
27}
28
29ohos_source_set("glcts-common_source") {
30  sources = [
31    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcAggressiveShaderOptimizationsTests.cpp",
32    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcBlendEquationAdvancedTests.cpp",
33    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcCompressedFormatTests.cpp",
34    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcConfigList.cpp",
35    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcConfigListCase.cpp",
36    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcConfigListEGL.cpp",
37    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcConfigListWGL.cpp",
38    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcConfigPackage.cpp",
39    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcContext.cpp",
40    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcContextFlagsTests.cpp",
41    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcExposedExtensionsTests.cpp",
42    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcExtTokens.cpp",
43    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcFragDepthTests.cpp",
44    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcFramebufferCompleteness.cpp",
45    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcGLSLVectorConstructorTests.cpp",
46    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcInfoTests.cpp",
47    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcInternalformatTests.cpp",
48    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcKHRDebugTests.cpp",
49    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcLayoutLocationTests.cpp",
50    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcMisc.cpp",
51    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcMultipleContextsTests.cpp",
52    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcNearestEdgeTests.cpp",
53    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcNoErrorTests.cpp",
54    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcPackedDepthStencilTests.cpp",
55    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcPackedPixelsTests.cpp",
56    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcParallelShaderCompileTests.cpp",
57    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcPixelStorageModesTests.cpp",
58    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcPolygonOffsetClampTests.cpp",
59    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcRobustBufferAccessBehaviorTests.cpp",
60    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcRobustnessTests.cpp",
61    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcSampleVariablesTests.cpp",
62    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcSeparableProgramsTransformFeedbackTests.cpp",
63    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderConstExprTests.cpp",
64    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderFunctionTests.cpp",
65    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderGroupVoteTests.cpp",
66    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderIndexingTests.cpp",
67    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderIntegerMixTests.cpp",
68    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderLibrary.cpp",
69    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderLibraryCase.cpp",
70    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderLoopTests.cpp",
71    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderMacroTests.cpp",
72    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderMultisampleInterpolationTests.cpp",
73    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderNegativeTests.cpp",
74    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderRenderCase.cpp",
75    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcShaderStructTests.cpp",
76    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcSpirvUtils.cpp",
77    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTestCase.cpp",
78    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTestCaseWrapper.cpp",
79    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTestPackage.cpp",
80    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTestSubcase.cpp",
81    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTextureCompatibilityTests.cpp",
82    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTextureFilterAnisotropicTests.cpp",
83    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcTextureRepeatModeTests.cpp",
84    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcUniformBlockCase.cpp",
85    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcUniformBlockTests.cpp",
86    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcViewportArrayTests.cpp",
87  ]
88  include_dirs = [
89    "//third_party/zlib/src",
90    "//third_party/spirv-headers/include",
91
92    #"//third_party/vk-gl-cts/external/amber",
93    #"//third_party/vk-gl-cts/external/renderdoc/src",
94
95    #"//third_party/vk-gl-cts/external/vulkancts/framework/vulkan",
96    "//third_party/vk-gl-cts/external/openglcts/include",
97    "//third_party/vk-gl-cts/external/openglcts/framework/egl/wrapper",
98    "//third_party/vk-gl-cts/external/openglcts/modules/common",
99    "//third_party/vk-gl-cts/external/openglcts/modules/gl",
100    "//third_party/vk-gl-cts/external/openglcts/modules/gles2",
101    "//third_party/vk-gl-cts/external/openglcts/modules/gles3",
102    "//third_party/vk-gl-cts/external/openglcts/modules/gles31",
103    "//third_party/vk-gl-cts/external/openglcts/modules/gles32",
104    "//third_party/vk-gl-cts/external/openglcts/modules/glesext",
105    "//third_party/vk-gl-cts/external/openglcts/modules",
106    "//third_party/vk-gl-cts/modules/glshared",
107    "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups",
108    "//third_party/glslang",
109    "//third_party/spirv-tools/include",
110    "//third_party/spirv-tools/external/include",
111
112    #"//third_party/vk-gl-cts/build/external/vulkancts/framework/vulkan",
113    "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan/generated/vulkan",
114    "//third_party/glslang/glslang",
115    "//third_party/vk-gl-cts/build/include",
116    "//third_party/glslang/SPIRV",
117  ]
118  include_dirs += deqp_common_include_dirs
119
120  deps = [
121    #"//third_party/glslang/OGLCompilersDLL:libdeqp_OGLCompiler",
122    "//third_party/glslang/SPIRV:libdeqp_spirv",
123    "//third_party/glslang/SPIRV:libdeqp_spvremapper",
124    "//third_party/glslang/glslang:libdeqp_GenericCodeGen",
125    "//third_party/glslang/glslang:libdeqp_MachineIndependent",
126    "//third_party/glslang/glslang:libdeqp_OSDependent",
127    "//third_party/glslang/glslang:libdeqp_glslang",
128    "//third_party/libpng:libpng",
129    "//third_party/spirv-tools:libdeqp_spirvtools",
130    "//third_party/spirv-tools/source/link:libdeqp_spirvtools-link",
131    "//third_party/spirv-tools/source/opt:libdeqp_spirvtools-opt",
132    "//third_party/spirv-tools/source/reduce:libdeqp_spirvtools-reduce",
133    "//third_party/spirv-tools/source/val:libdeqp_spirvtools-val",
134    "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups:libdeqp-gl-subgroups",
135    "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil",
136    "//third_party/vk-gl-cts/framework/egl:libdeqp_eglutil",
137    "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil",
138  ]
139  configs = [ ":glcts-common_config" ]
140}
141
142ohos_static_library("libdeqp_glcts-common") {
143  deps = [ ":glcts-common_source" ]
144  part_name = "graphic_2d"
145  subsystem_name = "graphic"
146}
147
148ohos_source_set("glcts-common-nocontext-package_source") {
149  sources = [
150    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcNoDefaultContextPackage.cpp",
151    "//third_party/vk-gl-cts/external/openglcts/modules/common/glcSingleConfigTestPackage.cpp",
152  ]
153  include_dirs = [
154    "//third_party/zlib/src",
155    "//third_party/spirv-headers/include",
156
157    #"//third_party/vk-gl-cts/external/amber",
158    #"//third_party/vk-gl-cts/external/renderdoc/src",
159
160    #"//third_party/vk-gl-cts/external/vulkancts/framework/vulkan",
161    "//third_party/vk-gl-cts/external/openglcts/include",
162    "//third_party/vk-gl-cts/external/openglcts/framework/egl/wrapper",
163    "//third_party/vk-gl-cts/external/openglcts/modules/common",
164    "//third_party/vk-gl-cts/external/openglcts/modules/gl",
165    "//third_party/vk-gl-cts/external/openglcts/modules/gles2",
166    "//third_party/vk-gl-cts/external/openglcts/modules/gles3",
167    "//third_party/vk-gl-cts/external/openglcts/modules/gles31",
168    "//third_party/vk-gl-cts/external/openglcts/modules/gles32",
169    "//third_party/vk-gl-cts/external/openglcts/modules/glesext",
170    "//third_party/vk-gl-cts/external/openglcts/modules/.",
171    "//third_party/vk-gl-cts/modules/glshared",
172    "//third_party/vk-gl-cts/external/openglcts/modules/common/subgroups",
173    "//third_party/glslang",
174    "//third_party/spirv-tools/include",
175    "//third_party/spirv-tools/external/include",
176
177    #"//third_party/vk-gl-cts/build/external/vulkancts/framework/vulkan",
178    "//third_party/vk-gl-cts/external/vulkancts/framework/vulkan/generated/vulkan",
179  ]
180  include_dirs += deqp_common_include_dirs
181
182  deps = [
183    "//third_party/libpng:libpng",
184    "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil",
185    "//third_party/vk-gl-cts/framework/egl:libdeqp_eglutil",
186    "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil",
187  ]
188
189  configs = [ ":glcts-common_config" ]
190}
191
192ohos_static_library("libdeqp_glcts-common-nocontext-package") {
193  deps = [ ":glcts-common-nocontext-package_source" ]
194  part_name = "graphic_2d"
195  subsystem_name = "graphic"
196}
197