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# modules deqp-gles31-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-gles31-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-gles31-functional_source") {
25e5c31af7Sopenharmony_ci  sources = [
26e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fAdvancedBlendTests.cpp",
27e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fAndroidExtensionPackES31ATests.cpp",
28e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fAtomicCounterTests.cpp",
29e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fBasicComputeShaderTests.cpp",
30e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fBooleanStateQueryTests.cpp",
31e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fBuiltinPrecisionTests.cpp",
32e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fComputeShaderBuiltinVarTests.cpp",
33e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fCopyImageTests.cpp",
34e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fDebugTests.cpp",
35e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fDefaultVertexArrayObjectTests.cpp",
36e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fDrawElementsBaseVertexTests.cpp",
37e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fDrawTests.cpp",
38e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fFboColorbufferTests.cpp",
39e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fFboNoAttachmentTests.cpp",
40e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fFboSRGBWriteControlTests.cpp",
41e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fFboTestCase.cpp",
42e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fFboTestUtil.cpp",
43e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fFramebufferDefaultStateQueryTests.cpp",
44e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fFunctionalTests.cpp",
45e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fGeometryShaderTests.cpp",
46e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fIndexedStateQueryTests.cpp",
47e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fIndirectComputeDispatchTests.cpp",
48e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fInfoLogQueryShared.cpp",
49e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fIntegerStateQueryTests.cpp",
50e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fInternalFormatQueryTests.cpp",
51e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fLayoutBindingTests.cpp",
52e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fMultisampleShaderRenderCase.cpp",
53e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fMultisampleTests.cpp",
54e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeAdvancedBlendEquationTests.cpp",
55e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeAtomicCounterTests.cpp",
56e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeBufferApiTests.cpp",
57e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeComputeTests.cpp",
58e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeFragmentApiTests.cpp",
59e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativePreciseTests.cpp",
60e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeSSBOBlockTests.cpp",
61e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeSampleVariablesTests.cpp",
62e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeShaderApiTests.cpp",
63e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeShaderDirectiveTests.cpp",
64e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeShaderFramebufferFetchTests.cpp",
65e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeShaderFunctionTests.cpp",
66e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeShaderImageLoadStoreTests.cpp",
67e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeShaderStorageTests.cpp",
68e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeStateApiTests.cpp",
69e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeTessellationTests.cpp",
70e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeTestShared.cpp",
71e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeTextureApiTests.cpp",
72e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fNegativeVertexArrayApiTests.cpp",
73e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fOpaqueTypeIndexingTests.cpp",
74e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fPrimitiveBoundingBoxTests.cpp",
75e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fProgramInterfaceDefinition.cpp",
76e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fProgramInterfaceDefinitionUtil.cpp",
77e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fProgramInterfaceQueryTestCase.cpp",
78e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fProgramInterfaceQueryTests.cpp",
79e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fProgramPipelineStateQueryTests.cpp",
80e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fProgramStateQueryTests.cpp",
81e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fProgramUniformTests.cpp",
82e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fSRGBDecodeTests.cpp",
83e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fSSBOArrayLengthTests.cpp",
84e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fSSBOLayoutCase.cpp",
85e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fSSBOLayoutTests.cpp",
86e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fSampleShadingTests.cpp",
87e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fSampleVariableTests.cpp",
88e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fSamplerStateQueryTests.cpp",
89e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fSeparateShaderTests.cpp",
90e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderAtomicOpTests.cpp",
91e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderBuiltinConstantTests.cpp",
92e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderCommonFunctionTests.cpp",
93e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderFramebufferFetchTests.cpp",
94e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderHelperInvocationTests.cpp",
95e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderImageLoadStoreTests.cpp",
96e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderIntegerFunctionTests.cpp",
97e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderMultisampleInterpolationStateQueryTests.cpp",
98e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderMultisampleInterpolationTests.cpp",
99e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderPackingFunctionTests.cpp",
100e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderSharedVarTests.cpp",
101e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderStateQueryTests.cpp",
102e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderTextureSizeTests.cpp",
103e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fShaderUniformIntegerFunctionTests.cpp",
104e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fStencilTexturingTests.cpp",
105e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fSynchronizationTests.cpp",
106e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fTessellationGeometryInteractionTests.cpp",
107e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fTessellationTests.cpp",
108e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fTextureBorderClampTests.cpp",
109e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fTextureBufferTests.cpp",
110e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fTextureFilteringTests.cpp",
111e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fTextureFormatTests.cpp",
112e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fTextureGatherTests.cpp",
113e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fTextureLevelStateQueryTests.cpp",
114e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fTextureMultisampleTests.cpp",
115e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fTextureSpecificationTests.cpp",
116e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fTextureStateQueryTests.cpp",
117e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fUniformBlockTests.cpp",
118e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fUniformLocationTests.cpp",
119e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fVertexAttributeBindingStateQueryTests.cpp",
120e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional/es31fVertexAttributeBindingTests.cpp",
121e5c31af7Sopenharmony_ci  ]
122e5c31af7Sopenharmony_ci  include_dirs = [
123e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/glshared",
124e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31/functional",
125e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/gles31",
126e5c31af7Sopenharmony_ci  ]
127e5c31af7Sopenharmony_ci  include_dirs += deqp_common_include_dirs
128e5c31af7Sopenharmony_ci  deps = [
129e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil",
130e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil",
131e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/framework/opengl/simplereference:libdeqp_glutil-sglr",
132e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/framework/referencerenderer:libdeqp_referencerenderer",
133e5c31af7Sopenharmony_ci    "//third_party/vk-gl-cts/modules/glshared:libdeqp-gl-shared",
134e5c31af7Sopenharmony_ci  ]
135e5c31af7Sopenharmony_ci
136e5c31af7Sopenharmony_ci  configs = [ ":deqp-gles31-functional_config" ]
137e5c31af7Sopenharmony_ci}
138e5c31af7Sopenharmony_ci
139e5c31af7Sopenharmony_ciohos_static_library("libdeqp-gles31-functional") {
140e5c31af7Sopenharmony_ci  deps = [ ":deqp-gles31-functional_source" ]
141e5c31af7Sopenharmony_ci  part_name = "graphic_2d"
142e5c31af7Sopenharmony_ci  subsystem_name = "graphic"
143e5c31af7Sopenharmony_ci}
144