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# deqp-gles2-functional build 15 16import("//build/ohos.gni") 17import("//third_party/vk-gl-cts/vk_gl_cts.gni") 18 19config("deqp-gles2-functional_config") { 20 cflags_cc = deqp_common_cflags_cc 21 defines = deqp_common_defines 22} 23 24ohos_source_set("deqp-gles2-functional_source") { 25 sources = [ 26 "//third_party/vk-gl-cts/modules/gles2/functional/es2fApiCase.cpp", 27 "//third_party/vk-gl-cts/modules/gles2/functional/es2fAttribLocationTests.cpp", 28 "//third_party/vk-gl-cts/modules/gles2/functional/es2fBlendTests.cpp", 29 "//third_party/vk-gl-cts/modules/gles2/functional/es2fBooleanStateQueryTests.cpp", 30 "//third_party/vk-gl-cts/modules/gles2/functional/es2fBufferObjectQueryTests.cpp", 31 "//third_party/vk-gl-cts/modules/gles2/functional/es2fBufferTestUtil.cpp", 32 "//third_party/vk-gl-cts/modules/gles2/functional/es2fBufferWriteTests.cpp", 33 "//third_party/vk-gl-cts/modules/gles2/functional/es2fClipControlTests.cpp", 34 "//third_party/vk-gl-cts/modules/gles2/functional/es2fClippingTests.cpp", 35 "//third_party/vk-gl-cts/modules/gles2/functional/es2fColorClearTest.cpp", 36 "//third_party/vk-gl-cts/modules/gles2/functional/es2fDebugMarkerTests.cpp", 37 "//third_party/vk-gl-cts/modules/gles2/functional/es2fDefaultVertexAttributeTests.cpp", 38 "//third_party/vk-gl-cts/modules/gles2/functional/es2fDepthRangeTests.cpp", 39 "//third_party/vk-gl-cts/modules/gles2/functional/es2fDepthStencilClearTests.cpp", 40 "//third_party/vk-gl-cts/modules/gles2/functional/es2fDepthStencilTests.cpp", 41 "//third_party/vk-gl-cts/modules/gles2/functional/es2fDepthTests.cpp", 42 "//third_party/vk-gl-cts/modules/gles2/functional/es2fDitheringTests.cpp", 43 "//third_party/vk-gl-cts/modules/gles2/functional/es2fDrawTests.cpp", 44 "//third_party/vk-gl-cts/modules/gles2/functional/es2fFboApiTest.cpp", 45 "//third_party/vk-gl-cts/modules/gles2/functional/es2fFboCompletenessTests.cpp", 46 "//third_party/vk-gl-cts/modules/gles2/functional/es2fFboRenderTest.cpp", 47 "//third_party/vk-gl-cts/modules/gles2/functional/es2fFboStateQueryTests.cpp", 48 "//third_party/vk-gl-cts/modules/gles2/functional/es2fFloatStateQueryTests.cpp", 49 "//third_party/vk-gl-cts/modules/gles2/functional/es2fFlushFinishTests.cpp", 50 "//third_party/vk-gl-cts/modules/gles2/functional/es2fFragOpInteractionTests.cpp", 51 "//third_party/vk-gl-cts/modules/gles2/functional/es2fFunctionalTests.cpp", 52 "//third_party/vk-gl-cts/modules/gles2/functional/es2fImplementationLimitTests.cpp", 53 "//third_party/vk-gl-cts/modules/gles2/functional/es2fIntegerStateQueryTests.cpp", 54 "//third_party/vk-gl-cts/modules/gles2/functional/es2fLifetimeTests.cpp", 55 "//third_party/vk-gl-cts/modules/gles2/functional/es2fLightAmountTest.cpp", 56 "//third_party/vk-gl-cts/modules/gles2/functional/es2fMultisampleTests.cpp", 57 "//third_party/vk-gl-cts/modules/gles2/functional/es2fMultisampledRenderToTextureTests.cpp", 58 "//third_party/vk-gl-cts/modules/gles2/functional/es2fNegativeBufferApiTests.cpp", 59 "//third_party/vk-gl-cts/modules/gles2/functional/es2fNegativeFragmentApiTests.cpp", 60 "//third_party/vk-gl-cts/modules/gles2/functional/es2fNegativeShaderApiTests.cpp", 61 "//third_party/vk-gl-cts/modules/gles2/functional/es2fNegativeStateApiTests.cpp", 62 "//third_party/vk-gl-cts/modules/gles2/functional/es2fNegativeTextureApiTests.cpp", 63 "//third_party/vk-gl-cts/modules/gles2/functional/es2fNegativeVertexArrayApiTests.cpp", 64 "//third_party/vk-gl-cts/modules/gles2/functional/es2fPolygonOffsetTests.cpp", 65 "//third_party/vk-gl-cts/modules/gles2/functional/es2fPrerequisiteTests.cpp", 66 "//third_party/vk-gl-cts/modules/gles2/functional/es2fRandomFragmentOpTests.cpp", 67 "//third_party/vk-gl-cts/modules/gles2/functional/es2fRandomShaderTests.cpp", 68 "//third_party/vk-gl-cts/modules/gles2/functional/es2fRasterizationTests.cpp", 69 "//third_party/vk-gl-cts/modules/gles2/functional/es2fRboStateQueryTests.cpp", 70 "//third_party/vk-gl-cts/modules/gles2/functional/es2fReadPixelsTests.cpp", 71 "//third_party/vk-gl-cts/modules/gles2/functional/es2fScissorTests.cpp", 72 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderAlgorithmTests.cpp", 73 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderApiTests.cpp", 74 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderBuiltinVarTests.cpp", 75 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderConstExprTests.cpp", 76 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderDiscardTests.cpp", 77 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderExecuteTest.cpp", 78 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderFragDataTests.cpp", 79 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderIndexingTests.cpp", 80 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderInvarianceTests.cpp", 81 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderLoopTests.cpp", 82 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderMatrixTests.cpp", 83 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderOperatorTests.cpp", 84 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderReturnTests.cpp", 85 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderStateQueryTests.cpp", 86 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderStructTests.cpp", 87 "//third_party/vk-gl-cts/modules/gles2/functional/es2fShaderTextureFunctionTests.cpp", 88 "//third_party/vk-gl-cts/modules/gles2/functional/es2fStencilTests.cpp", 89 "//third_party/vk-gl-cts/modules/gles2/functional/es2fStringQueryTests.cpp", 90 "//third_party/vk-gl-cts/modules/gles2/functional/es2fTextureCompletenessTests.cpp", 91 "//third_party/vk-gl-cts/modules/gles2/functional/es2fTextureFilteringTests.cpp", 92 "//third_party/vk-gl-cts/modules/gles2/functional/es2fTextureFormatTests.cpp", 93 "//third_party/vk-gl-cts/modules/gles2/functional/es2fTextureMipmapTests.cpp", 94 "//third_party/vk-gl-cts/modules/gles2/functional/es2fTextureSizeTests.cpp", 95 "//third_party/vk-gl-cts/modules/gles2/functional/es2fTextureSpecificationTests.cpp", 96 "//third_party/vk-gl-cts/modules/gles2/functional/es2fTextureStateQueryTests.cpp", 97 "//third_party/vk-gl-cts/modules/gles2/functional/es2fTextureUnitTests.cpp", 98 "//third_party/vk-gl-cts/modules/gles2/functional/es2fTextureWrapTests.cpp", 99 "//third_party/vk-gl-cts/modules/gles2/functional/es2fUniformApiTests.cpp", 100 "//third_party/vk-gl-cts/modules/gles2/functional/es2fVertexArrayTest.cpp", 101 "//third_party/vk-gl-cts/modules/gles2/functional/es2fVertexTextureTests.cpp", 102 ] 103 include_dirs = [ 104 "//third_party/vk-gl-cts/modules/glshared", 105 "//third_party/vk-gl-cts/modules/gles2/functional", 106 "//third_party/vk-gl-cts/modules/gles2", 107 ] 108 109 include_dirs += deqp_common_include_dirs 110 111 deps = [ 112 "//third_party/vk-gl-cts/modules/glshared:libdeqp-gl-shared", 113 "//third_party/vk-gl-cts/framework/opengl:libdeqp_glutil", 114 "//third_party/vk-gl-cts/framework/opengl/simplereference:libdeqp_glutil-sglr", 115 "//third_party/vk-gl-cts/framework/common:libdeqp_tcutil", 116 "//third_party/vk-gl-cts/framework/referencerenderer:libdeqp_referencerenderer", 117 ] 118 119 configs = [ ":deqp-gles2-functional_config" ] 120 121} 122 123ohos_static_library("libdeqp-gles2-functional") { 124 deps = [ ":deqp-gles2-functional_source" ] 125 part_name = "graphic_standard" 126 subsystem_name = "graphic" 127} 128