1e5c31af7Sopenharmony_ci# Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
2e5c31af7Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3e5c31af7Sopenharmony_ci# you may not use this file except in compliance with the License.
4e5c31af7Sopenharmony_ci# You may obtain a copy of the License at
5e5c31af7Sopenharmony_ci#
6e5c31af7Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7e5c31af7Sopenharmony_ci#
8e5c31af7Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9e5c31af7Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10e5c31af7Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11e5c31af7Sopenharmony_ci# See the License for the specific language governing permissions and
12e5c31af7Sopenharmony_ci# limitations under the License.
13e5c31af7Sopenharmony_ci
14e5c31af7Sopenharmony_ci# deqp-gles3-functional build
15e5c31af7Sopenharmony_ci
16e5c31af7Sopenharmony_ciimport("//build/ohos.gni")
17e5c31af7Sopenharmony_ciimport("//third_party/vk-gl-cts/vk_gl_cts.gni")
18e5c31af7Sopenharmony_ci
19e5c31af7Sopenharmony_ciconfig("deqp-gles3-functional_config") {
20e5c31af7Sopenharmony_ci  cflags_cc = deqp_common_cflags_cc
21e5c31af7Sopenharmony_ci  defines = deqp_common_defines
22e5c31af7Sopenharmony_ci}
23e5c31af7Sopenharmony_ci
24e5c31af7Sopenharmony_ciohos_source_set("deqp-gles3-functional_source") {
25e5c31af7Sopenharmony_ci  sources = [
26e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fASTCDecompressionCases.cpp",
27e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fApiCase.cpp",
28e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fAttribLocationTests.cpp",
29e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fBlendTests.cpp",
30e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fBooleanStateQueryTests.cpp",
31e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fBufferCopyTests.cpp",
32e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fBufferMapTests.cpp",
33e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fBufferObjectQueryTests.cpp",
34e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fBufferWriteTests.cpp",
35e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fBuiltinPrecisionTests.cpp",
36e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fClippingTests.cpp",
37e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fColorClearTest.cpp",
38e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fCompressedTextureTests.cpp",
39e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fDefaultVertexArrayObjectTests.cpp",
40e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fDefaultVertexAttributeTests.cpp",
41e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fDepthStencilClearTests.cpp",
42e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fDepthStencilTests.cpp",
43e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fDepthTests.cpp",
44e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fDitheringTests.cpp",
45e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fDrawBuffersIndexedTests.cpp",
46e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fDrawTests.cpp",
47e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFboApiTests.cpp",
48e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFboColorbufferTests.cpp",
49e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFboCompletenessTests.cpp",
50e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFboDepthbufferTests.cpp",
51e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFboInvalidateTests.cpp",
52e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFboMultisampleTests.cpp",
53e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFboRenderTest.cpp",
54e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFboStateQueryTests.cpp",
55e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFboStencilbufferTests.cpp",
56e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFboTestCase.cpp",
57e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFboTestUtil.cpp",
58e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFloatStateQueryTests.cpp",
59e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFlushFinishTests.cpp",
60e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFragDepthTests.cpp",
61e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFragOpInteractionTests.cpp",
62e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFragmentOutputTests.cpp",
63e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFramebufferBlitTests.cpp",
64e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fFunctionalTests.cpp",
65e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fImplementationLimitTests.cpp",
66e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fIndexedStateQueryTests.cpp",
67e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fInstancedRenderingTests.cpp",
68e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fInteger64StateQueryTests.cpp",
69e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fIntegerStateQueryTests.cpp",
70e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fInternalFormatQueryTests.cpp",
71e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fLifetimeTests.cpp",
72e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fMultisampleTests.cpp",
73e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fMultiviewTests.cpp",
74e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fNegativeBufferApiTests.cpp",
75e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fNegativeFragmentApiTests.cpp",
76e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fNegativeShaderApiTests.cpp",
77e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fNegativeStateApiTests.cpp",
78e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fNegativeTextureApiTests.cpp",
79e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fNegativeVertexArrayApiTests.cpp",
80e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fOcclusionQueryTests.cpp",
81e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fPixelBufferObjectTests.cpp",
82e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fPolygonOffsetTests.cpp",
83e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fPrerequisiteTests.cpp",
84e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fPrimitiveRestartTests.cpp",
85e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fRandomFragmentOpTests.cpp",
86e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fRandomShaderTests.cpp",
87e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fRasterizationTests.cpp",
88e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fRasterizerDiscardTests.cpp",
89e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fRboStateQueryTests.cpp",
90e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fReadPixelsTests.cpp",
91e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fSamplerObjectTests.cpp",
92e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fSamplerStateQueryTests.cpp",
93e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fScissorTests.cpp",
94e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderApiTests.cpp",
95e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderBuiltinVarTests.cpp",
96e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderCommonFunctionTests.cpp",
97e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderConstExprTests.cpp",
98e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderDerivateTests.cpp",
99e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderDiscardTests.cpp",
100e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderFragDataTests.cpp",
101e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderFunctionTests.cpp",
102e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderIndexingTests.cpp",
103e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderInvarianceTests.cpp",
104e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderLoopTests.cpp",
105e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderMatrixTests.cpp",
106e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderMetamorphicTests.cpp",
107e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderOperatorTests.cpp",
108e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderPackingFunctionTests.cpp",
109e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderPrecisionTests.cpp",
110e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderReturnTests.cpp",
111e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderStateQueryTests.cpp",
112e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderStructTests.cpp",
113e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderSwitchTests.cpp",
114e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fShaderTextureFunctionTests.cpp",
115e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fStencilTests.cpp",
116e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fStringQueryTests.cpp",
117e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fSyncTests.cpp",
118e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fTextureFilteringTests.cpp",
119e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fTextureFormatTests.cpp",
120e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fTextureMipmapTests.cpp",
121e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fTextureShadowTests.cpp",
122e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fTextureSizeTests.cpp",
123e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fTextureSpecificationTests.cpp",
124e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fTextureStateQueryTests.cpp",
125e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fTextureSwizzleTests.cpp",
126e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fTextureUnitTests.cpp",
127e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fTextureWrapTests.cpp",
128e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fTransformFeedbackTests.cpp",
129e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fUniformApiTests.cpp",
130e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fUniformBlockTests.cpp",
131e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fVertexArrayObjectTests.cpp",
132e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fVertexArrayTest.cpp",
133e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional/es3fVertexTextureTests.cpp",
134e5c31af7Sopenharmony_ci  ]
135e5c31af7Sopenharmony_ci  include_dirs = [
136e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/glshared",
137e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3/functional",
138e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles3",
139e5c31af7Sopenharmony_ci  ]
140e5c31af7Sopenharmony_ci
141e5c31af7Sopenharmony_ci  include_dirs += deqp_common_include_dirs
142e5c31af7Sopenharmony_ci
143e5c31af7Sopenharmony_ci  deps = [
144e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil",
145e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil",
146e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/framework/opengl/simplereference:libdeqp_glutil-sglr",
147e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/framework/referencerenderer:libdeqp_referencerenderer",
148e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/glshared:libdeqp-gl-shared",
149e5c31af7Sopenharmony_ci  ]
150e5c31af7Sopenharmony_ci
151e5c31af7Sopenharmony_ci  configs = [ ":deqp-gles3-functional_config" ]
152e5c31af7Sopenharmony_ci}
153e5c31af7Sopenharmony_ci
154e5c31af7Sopenharmony_ciohos_static_library("libdeqp-gles3-functional") {
155e5c31af7Sopenharmony_ci  deps = [ ":deqp-gles3-functional_source" ]
156e5c31af7Sopenharmony_ci  part_name = "graphic_2d"
157e5c31af7Sopenharmony_ci  subsystem_name = "graphic"
158e5c31af7Sopenharmony_ci}
159