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