2016-06-25 23:06:20 -06:00
|
|
|
set(SRCS
|
|
|
|
glslang/GenericCodeGen/CodeGen.cpp
|
|
|
|
glslang/GenericCodeGen/Link.cpp
|
2022-04-29 23:37:59 -06:00
|
|
|
#glslang/HLSL/hlslAttributes.cpp
|
|
|
|
#glslang/HLSL/hlslGrammar.cpp
|
|
|
|
#glslang/HLSL/hlslOpMap.cpp
|
|
|
|
#glslang/HLSL/hlslParseables.cpp
|
|
|
|
#glslang/HLSL/hlslParseHelper.cpp
|
|
|
|
#glslang/HLSL/hlslScanContext.cpp
|
|
|
|
#glslang/HLSL/hlslTokenStream.cpp
|
2018-06-02 01:26:43 -06:00
|
|
|
glslang/MachineIndependent/attribute.cpp
|
2016-06-25 23:06:20 -06:00
|
|
|
glslang/MachineIndependent/Constant.cpp
|
|
|
|
glslang/MachineIndependent/glslang_tab.cpp
|
|
|
|
glslang/MachineIndependent/InfoSink.cpp
|
|
|
|
glslang/MachineIndependent/Initialize.cpp
|
|
|
|
glslang/MachineIndependent/Intermediate.cpp
|
|
|
|
glslang/MachineIndependent/intermOut.cpp
|
|
|
|
glslang/MachineIndependent/IntermTraverse.cpp
|
2018-06-02 01:26:43 -06:00
|
|
|
glslang/MachineIndependent/iomapper.cpp
|
2016-06-25 23:06:20 -06:00
|
|
|
glslang/MachineIndependent/limits.cpp
|
|
|
|
glslang/MachineIndependent/linkValidate.cpp
|
|
|
|
glslang/MachineIndependent/parseConst.cpp
|
2018-06-02 01:26:43 -06:00
|
|
|
glslang/MachineIndependent/ParseContextBase.cpp
|
2016-06-25 23:06:20 -06:00
|
|
|
glslang/MachineIndependent/ParseHelper.cpp
|
|
|
|
glslang/MachineIndependent/PoolAlloc.cpp
|
|
|
|
glslang/MachineIndependent/preprocessor/Pp.cpp
|
|
|
|
glslang/MachineIndependent/preprocessor/PpAtom.cpp
|
|
|
|
glslang/MachineIndependent/preprocessor/PpContext.cpp
|
|
|
|
glslang/MachineIndependent/preprocessor/PpScanner.cpp
|
|
|
|
glslang/MachineIndependent/preprocessor/PpTokens.cpp
|
|
|
|
glslang/MachineIndependent/propagateNoContraction.cpp
|
|
|
|
glslang/MachineIndependent/reflection.cpp
|
|
|
|
glslang/MachineIndependent/RemoveTree.cpp
|
|
|
|
glslang/MachineIndependent/Scan.cpp
|
|
|
|
glslang/MachineIndependent/ShaderLang.cpp
|
2022-04-29 23:37:59 -06:00
|
|
|
glslang/MachineIndependent/SpirvIntrinsics.cpp
|
2016-06-25 23:06:20 -06:00
|
|
|
glslang/MachineIndependent/SymbolTable.cpp
|
|
|
|
glslang/MachineIndependent/Versions.cpp
|
|
|
|
OGLCompilersDLL/InitializeDll.cpp
|
|
|
|
SPIRV/disassemble.cpp
|
|
|
|
SPIRV/doc.cpp
|
|
|
|
SPIRV/GlslangToSpv.cpp
|
|
|
|
SPIRV/InReadableOrder.cpp
|
|
|
|
SPIRV/Logger.cpp
|
|
|
|
SPIRV/SpvBuilder.cpp
|
2020-03-02 08:56:41 -07:00
|
|
|
SPIRV/SpvPostProcess.cpp
|
2016-06-25 23:06:20 -06:00
|
|
|
SPIRV/SPVRemapper.cpp
|
2022-04-29 23:37:59 -06:00
|
|
|
SPIRV/SpvTools.cpp
|
2020-03-02 08:56:41 -07:00
|
|
|
StandAlone/ResourceLimits.cpp
|
2016-06-25 23:06:20 -06:00
|
|
|
)
|
|
|
|
|
2017-01-20 09:50:44 -07:00
|
|
|
if(WIN32)
|
|
|
|
list(APPEND SRCS glslang/OSDependent/Windows/ossource.cpp)
|
|
|
|
else()
|
|
|
|
list(APPEND SRCS glslang/OSDependent/Unix/ossource.cpp)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT MSVC)
|
2016-06-25 23:06:20 -06:00
|
|
|
# glslang requires C++11 at a minimum to compile.
|
2017-07-28 06:08:15 -06:00
|
|
|
add_compile_options(-std=c++11)
|
2016-06-25 23:06:20 -06:00
|
|
|
|
|
|
|
# Silence some warnings that occur frequently to reduce noise in build logs.
|
2017-07-28 06:08:15 -06:00
|
|
|
add_compile_options(-Wno-shadow)
|
|
|
|
add_compile_options(-Wno-reorder)
|
|
|
|
add_compile_options(-Wno-sign-compare)
|
|
|
|
add_compile_options(-Wno-parentheses)
|
|
|
|
add_compile_options(-Wno-unused-variable)
|
2017-07-28 07:50:04 -06:00
|
|
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
|
|
|
add_compile_options(-Wno-unused-but-set-variable)
|
|
|
|
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
|
|
|
add_compile_options(-Wno-missing-variable-declarations)
|
|
|
|
endif()
|
2017-01-20 09:50:44 -07:00
|
|
|
endif()
|
2016-06-25 23:06:20 -06:00
|
|
|
|
|
|
|
add_library(glslang STATIC ${SRCS})
|
2024-03-19 00:08:54 -06:00
|
|
|
dolphin_disable_warnings(glslang)
|
2020-03-02 08:56:41 -07:00
|
|
|
|
|
|
|
target_include_directories(glslang
|
|
|
|
PRIVATE
|
|
|
|
${CMAKE_SOURCE_DIR}/Externals/glslang
|
|
|
|
)
|