mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
a3a3bf9144
* -Wno-unused-but-set-variable: only set this flag with gcc, otherwise clang will issue warnings about the warning option being unknown :) (-Wunknown-warning-option) * -Wmissing-variable-declarations: clang warns about missing extern declarations for non-static variables.
71 lines
2.3 KiB
CMake
71 lines
2.3 KiB
CMake
set(SRCS
|
|
glslang/GenericCodeGen/CodeGen.cpp
|
|
glslang/GenericCodeGen/Link.cpp
|
|
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
|
|
glslang/MachineIndependent/limits.cpp
|
|
glslang/MachineIndependent/linkValidate.cpp
|
|
glslang/MachineIndependent/parseConst.cpp
|
|
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/PpMemory.cpp
|
|
glslang/MachineIndependent/preprocessor/PpScanner.cpp
|
|
glslang/MachineIndependent/preprocessor/PpSymbols.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
|
|
glslang/MachineIndependent/SymbolTable.cpp
|
|
glslang/MachineIndependent/Versions.cpp
|
|
|
|
hlsl/hlslGrammar.cpp
|
|
hlsl/hlslOpMap.cpp
|
|
hlsl/hlslParseables.cpp
|
|
hlsl/hlslParseHelper.cpp
|
|
hlsl/hlslScanContext.cpp
|
|
hlsl/hlslTokenStream.cpp
|
|
OGLCompilersDLL/InitializeDll.cpp
|
|
SPIRV/disassemble.cpp
|
|
SPIRV/doc.cpp
|
|
SPIRV/GlslangToSpv.cpp
|
|
SPIRV/InReadableOrder.cpp
|
|
SPIRV/Logger.cpp
|
|
SPIRV/SpvBuilder.cpp
|
|
SPIRV/SPVRemapper.cpp
|
|
)
|
|
|
|
if(WIN32)
|
|
list(APPEND SRCS glslang/OSDependent/Windows/ossource.cpp)
|
|
else()
|
|
list(APPEND SRCS glslang/OSDependent/Unix/ossource.cpp)
|
|
endif()
|
|
|
|
if(NOT MSVC)
|
|
# glslang requires C++11 at a minimum to compile.
|
|
add_compile_options(-std=c++11)
|
|
|
|
# Silence some warnings that occur frequently to reduce noise in build logs.
|
|
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)
|
|
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()
|
|
endif()
|
|
|
|
add_library(glslang STATIC ${SRCS})
|