1# Common OpenGL CTS Test Code 2 3if (DEQP_SUPPORT_WGL) 4 include_directories(${PROJECT_SOURCE_DIR}/framework/platform/win32) 5 add_definitions(-DGLCTS_SUPPORT_WGL=1) 6endif () 7 8add_subdirectory(subgroups) 9include_directories(subgroups) 10 11set(GLCTS_COMMON_SRCS 12 glcAggressiveShaderOptimizationsTests.cpp 13 glcAggressiveShaderOptimizationsTests.hpp 14 glcBlendEquationAdvancedTests.cpp 15 glcBlendEquationAdvancedTests.hpp 16 glcConfigList.hpp 17 glcConfigList.cpp 18 glcConfigListCase.cpp 19 glcConfigListCase.hpp 20 glcConfigListEGL.hpp 21 glcConfigListEGL.cpp 22 glcConfigListWGL.hpp 23 glcConfigListWGL.cpp 24 glcConfigPackage.cpp 25 glcConfigPackage.hpp 26 glcContext.cpp 27 glcContext.hpp 28 glcContextFlagsTests.cpp 29 glcContextFlagsTests.hpp 30 glcExposedExtensionsTests.cpp 31 glcExposedExtensionsTests.hpp 32 glcFragDepthTests.cpp 33 glcFragDepthTests.hpp 34 glcInfoTests.cpp 35 glcInfoTests.hpp 36 glcInternalformatTests.cpp 37 glcInternalformatTests.hpp 38 glcMisc.cpp 39 glcMisc.hpp 40 glcKHRDebugTests.cpp 41 glcKHRDebugTests.hpp 42 glcMultipleContextsTests.cpp 43 glcMultipleContextsTests.hpp 44 glcNearestEdgeTests.cpp 45 glcNearestEdgeTests.hpp 46 glcNoErrorTests.cpp 47 glcNoErrorTests.hpp 48 glcRobustnessTests.cpp 49 glcRobustnessTests.hpp 50 glcPackedPixelsTests.cpp 51 glcPackedPixelsTests.hpp 52 glcPolygonOffsetClampTests.cpp 53 glcPolygonOffsetClampTests.hpp 54 glcPackedDepthStencilTests.cpp 55 glcPackedDepthStencilTests.hpp 56 glcParallelShaderCompileTests.cpp 57 glcParallelShaderCompileTests.hpp 58 glcPixelStorageModesTests.cpp 59 glcPixelStorageModesTests.hpp 60 glcRobustBufferAccessBehaviorTests.cpp 61 glcRobustBufferAccessBehaviorTests.hpp 62 glcSeparableProgramsTransformFeedbackTests.cpp 63 glcSeparableProgramsTransformFeedbackTests.hpp 64 glcShaderConstExprTests.hpp 65 glcShaderConstExprTests.cpp 66 glcShaderFunctionTests.cpp 67 glcShaderFunctionTests.hpp 68 glcShaderGroupVoteTests.cpp 69 glcShaderGroupVoteTests.hpp 70 glcShaderIndexingTests.cpp 71 glcShaderIndexingTests.hpp 72 glcShaderIntegerMixTests.cpp 73 glcShaderIntegerMixTests.hpp 74 glcShaderLibrary.cpp 75 glcShaderLibrary.hpp 76 glcShaderLibraryCase.cpp 77 glcShaderLibraryCase.hpp 78 glcShaderLoopTests.cpp 79 glcShaderLoopTests.hpp 80 glcShaderNegativeTests.hpp 81 glcShaderNegativeTests.cpp 82 glcShaderMacroTests.cpp 83 glcShaderMacroTests.hpp 84 glcShaderMultisampleInterpolationTests.cpp 85 glcShaderMultisampleInterpolationTests.hpp 86 glcShaderRenderCase.cpp 87 glcShaderRenderCase.hpp 88 glcShaderStructTests.cpp 89 glcShaderStructTests.hpp 90 glcSampleVariablesTests.cpp 91 glcSampleVariablesTests.hpp 92 glcSpirvUtils.cpp 93 glcSpirvUtils.hpp 94 glcTestCase.cpp 95 glcTestCase.hpp 96 glcTestCaseWrapper.cpp 97 glcTestCaseWrapper.hpp 98 glcTestPackage.cpp 99 glcTestPackage.hpp 100 glcTextureCompatibilityTests.cpp 101 glcTextureCompatibilityTests.hpp 102 glcTextureFilterAnisotropicTests.cpp 103 glcTextureFilterAnisotropicTests.hpp 104 glcTextureRepeatModeTests.cpp 105 glcTextureRepeatModeTests.hpp 106 glcUniformBlockCase.cpp 107 glcUniformBlockCase.hpp 108 glcUniformBlockTests.cpp 109 glcUniformBlockTests.hpp 110 glcViewportArrayTests.cpp 111 glcViewportArrayTests.hpp 112 glcTestSubcase.cpp 113 glcTestSubcase.hpp 114 glcExtTokens.cpp 115 glcExtTokens.hpp 116 glcLayoutLocationTests.cpp 117 glcLayoutLocationTests.hpp 118 glcLimitTest.inl 119 glcLimitTest.hpp 120 glcWaiver.hpp 121 glcGLSLVectorConstructorTests.cpp 122 glcGLSLVectorConstructorTests.hpp 123 glcFramebufferCompleteness.cpp 124 glcFramebufferCompleteness.hpp 125 glcCompressedFormatTests_data.inl 126 glcCompressedFormatTests.cpp 127 glcCompressedFormatTests.hpp 128 ) 129 130set(GLCTS_COMMON_LIBS 131 glutil 132 tcutil 133 tcutil-platform 134 eglutil 135 deqp-gl-subgroups 136 ) 137 138# Add glslang 139include_directories(${GLSLANG_INCLUDE_PATH}) 140 141# \note Code interfacing with glslang needs to include third-party headers 142# that cause all sorts of warnings to appear. 143if (DE_COMPILER_IS_GCC OR DE_COMPILER_IS_CLANG) 144 set_source_files_properties( 145 FILES glcSpirvUtils.cpp 146 PROPERTIES COMPILE_FLAGS "${DE_3RD_PARTY_CXX_FLAGS}") 147endif () 148 149set(GLCTS_COMMON_LIBS ${GLCTS_COMMON_LIBS} ${GLSLANG_LIBRARIES}) 150 151# Add spirv-tools 152include_directories(${spirv-tools_SOURCE_DIR}/include) 153include_directories(${spirv-tools_SOURCE_DIR}/external/include) 154include_directories(${PROJECT_BINARY_DIR}/external/vulkancts/framework/vulkan) 155 156set(GLCTS_COMMON_LIBS ${GLCTS_COMMON_LIBS} SPIRV-Tools) 157 158 159PCH(GLCTS_COMMON_SRCS ../pch.cpp) 160 161add_library(glcts-common STATIC ${GLCTS_COMMON_SRCS}) 162add_dependencies(glcts-common deqp-vk-inl) 163target_link_libraries(glcts-common ${GLCTS_COMMON_LIBS}) 164 165set(GLCTS_COMMON_NOCONTEXTPACKAGE_SRCS 166 glcSingleConfigTestPackage.cpp 167 glcSingleConfigTestPackage.hpp 168 glcNoDefaultContextPackage.cpp 169 glcNoDefaultContextPackage.hpp 170 ) 171add_library(glcts-common-nocontext-package STATIC ${GLCTS_COMMON_NOCONTEXTPACKAGE_SRCS}) 172