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 glcShaderGroupVoteTests.cpp 67 glcShaderGroupVoteTests.hpp 68 glcShaderIndexingTests.cpp 69 glcShaderIndexingTests.hpp 70 glcShaderIntegerMixTests.cpp 71 glcShaderIntegerMixTests.hpp 72 glcShaderLibrary.cpp 73 glcShaderLibrary.hpp 74 glcShaderLibraryCase.cpp 75 glcShaderLibraryCase.hpp 76 glcShaderLoopTests.cpp 77 glcShaderLoopTests.hpp 78 glcShaderNegativeTests.hpp 79 glcShaderNegativeTests.cpp 80 glcShaderMacroTests.cpp 81 glcShaderMacroTests.hpp 82 glcShaderMultisampleInterpolationTests.cpp 83 glcShaderMultisampleInterpolationTests.hpp 84 glcShaderRenderCase.cpp 85 glcShaderRenderCase.hpp 86 glcShaderStructTests.cpp 87 glcShaderStructTests.hpp 88 glcSampleVariablesTests.cpp 89 glcSampleVariablesTests.hpp 90 glcSpirvUtils.cpp 91 glcSpirvUtils.hpp 92 glcTestCase.cpp 93 glcTestCase.hpp 94 glcTestCaseWrapper.cpp 95 glcTestCaseWrapper.hpp 96 glcTestPackage.cpp 97 glcTestPackage.hpp 98 glcTextureCompatibilityTests.cpp 99 glcTextureCompatibilityTests.hpp 100 glcTextureFilterAnisotropicTests.cpp 101 glcTextureFilterAnisotropicTests.hpp 102 glcTextureRepeatModeTests.cpp 103 glcTextureRepeatModeTests.hpp 104 glcUniformBlockCase.cpp 105 glcUniformBlockCase.hpp 106 glcUniformBlockTests.cpp 107 glcUniformBlockTests.hpp 108 glcViewportArrayTests.cpp 109 glcViewportArrayTests.hpp 110 glcTestSubcase.cpp 111 glcTestSubcase.hpp 112 glcExtTokens.cpp 113 glcExtTokens.hpp 114 glcLayoutLocationTests.cpp 115 glcLayoutLocationTests.hpp 116 glcLimitTest.inl 117 glcLimitTest.hpp 118 glcWaiver.hpp 119 glcGLSLVectorConstructorTests.cpp 120 glcGLSLVectorConstructorTests.hpp 121 glcFramebufferCompleteness.cpp 122 glcFramebufferCompleteness.hpp 123 glcCompressedFormatTests_data.inl 124 glcCompressedFormatTests.cpp 125 glcCompressedFormatTests.hpp 126 ) 127 128set(GLCTS_COMMON_LIBS 129 glutil 130 tcutil 131 eglutil 132 deqp-gl-subgroups 133 ) 134 135# Add glslang 136include_directories(${GLSLANG_INCLUDE_PATH}) 137 138# \note Code interfacing with glslang needs to include third-party headers 139# that cause all sorts of warnings to appear. 140if (DE_COMPILER_IS_GCC OR DE_COMPILER_IS_CLANG) 141 set_source_files_properties( 142 FILES glcSpirvUtils.cpp 143 PROPERTIES COMPILE_FLAGS "${DE_3RD_PARTY_CXX_FLAGS}") 144endif () 145 146set(GLCTS_COMMON_LIBS ${GLCTS_COMMON_LIBS} ${GLSLANG_LIBRARIES}) 147 148# Add spirv-tools 149include_directories(${spirv-tools_SOURCE_DIR}/include) 150include_directories(${spirv-tools_SOURCE_DIR}/external/include) 151include_directories(${PROJECT_BINARY_DIR}/external/vulkancts/framework/vulkan) 152 153set(GLCTS_COMMON_LIBS ${GLCTS_COMMON_LIBS} spirv-tools) 154 155 156PCH(GLCTS_COMMON_SRCS ../pch.cpp) 157 158add_library(glcts-common STATIC ${GLCTS_COMMON_SRCS}) 159add_dependencies(glcts-common deqp-vk-inl) 160target_link_libraries(glcts-common ${GLCTS_COMMON_LIBS}) 161 162set(GLCTS_COMMON_NOCONTEXTPACKAGE_SRCS 163 glcSingleConfigTestPackage.cpp 164 glcSingleConfigTestPackage.hpp 165 glcNoDefaultContextPackage.cpp 166 glcNoDefaultContextPackage.hpp 167 ) 168add_library(glcts-common-nocontext-package STATIC ${GLCTS_COMMON_NOCONTEXTPACKAGE_SRCS}) 169