mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
040cb17370
# Conflicts: # CMakeLists.txt # libraries/glslang/OGLCompilersDLL/CMakeLists.txt # libraries/glslang/OGLCompilersDLL/InitializeDll.cpp # libraries/glslang/OGLCompilersDLL/InitializeDll.h # libraries/glslang/glslang/CMakeLists.txt # libraries/glslang/glslang/GenericCodeGen/CodeGen.cpp # libraries/glslang/glslang/GenericCodeGen/Link.cpp # libraries/glslang/glslang/Include/BaseTypes.h # libraries/glslang/glslang/Include/Common.h # libraries/glslang/glslang/Include/ConstantUnion.h # libraries/glslang/glslang/Include/InfoSink.h # libraries/glslang/glslang/Include/InitializeGlobals.h # libraries/glslang/glslang/Include/PoolAlloc.h # libraries/glslang/glslang/Include/ResourceLimits.h # libraries/glslang/glslang/Include/ShHandle.h # libraries/glslang/glslang/Include/Types.h # libraries/glslang/glslang/Include/arrays.h # libraries/glslang/glslang/Include/intermediate.h # libraries/glslang/glslang/Include/revision.h # libraries/glslang/glslang/Include/revision.template # libraries/glslang/glslang/MachineIndependent/Constant.cpp # libraries/glslang/glslang/MachineIndependent/InfoSink.cpp # libraries/glslang/glslang/MachineIndependent/Initialize.cpp # libraries/glslang/glslang/MachineIndependent/Initialize.h # libraries/glslang/glslang/MachineIndependent/IntermTraverse.cpp # libraries/glslang/glslang/MachineIndependent/Intermediate.cpp # libraries/glslang/glslang/MachineIndependent/LiveTraverser.h # libraries/glslang/glslang/MachineIndependent/ParseContextBase.cpp # libraries/glslang/glslang/MachineIndependent/ParseHelper.cpp # libraries/glslang/glslang/MachineIndependent/ParseHelper.h # libraries/glslang/glslang/MachineIndependent/PoolAlloc.cpp # libraries/glslang/glslang/MachineIndependent/RemoveTree.cpp # libraries/glslang/glslang/MachineIndependent/RemoveTree.h # libraries/glslang/glslang/MachineIndependent/Scan.cpp # libraries/glslang/glslang/MachineIndependent/Scan.h # libraries/glslang/glslang/MachineIndependent/ScanContext.h # libraries/glslang/glslang/MachineIndependent/ShaderLang.cpp # libraries/glslang/glslang/MachineIndependent/SymbolTable.cpp # libraries/glslang/glslang/MachineIndependent/SymbolTable.h # libraries/glslang/glslang/MachineIndependent/Versions.cpp # libraries/glslang/glslang/MachineIndependent/Versions.h # libraries/glslang/glslang/MachineIndependent/attribute.cpp # libraries/glslang/glslang/MachineIndependent/attribute.h # libraries/glslang/glslang/MachineIndependent/gl_types.h # libraries/glslang/glslang/MachineIndependent/glslang.y # libraries/glslang/glslang/MachineIndependent/glslang_tab.cpp # libraries/glslang/glslang/MachineIndependent/glslang_tab.cpp.h # libraries/glslang/glslang/MachineIndependent/intermOut.cpp # libraries/glslang/glslang/MachineIndependent/iomapper.cpp # libraries/glslang/glslang/MachineIndependent/iomapper.h # libraries/glslang/glslang/MachineIndependent/limits.cpp # libraries/glslang/glslang/MachineIndependent/linkValidate.cpp # libraries/glslang/glslang/MachineIndependent/localintermediate.h # libraries/glslang/glslang/MachineIndependent/parseConst.cpp # libraries/glslang/glslang/MachineIndependent/parseVersions.h # libraries/glslang/glslang/MachineIndependent/pch.cpp # libraries/glslang/glslang/MachineIndependent/pch.h # libraries/glslang/glslang/MachineIndependent/preprocessor/Pp.cpp # libraries/glslang/glslang/MachineIndependent/preprocessor/PpAtom.cpp # libraries/glslang/glslang/MachineIndependent/preprocessor/PpContext.cpp # libraries/glslang/glslang/MachineIndependent/preprocessor/PpContext.h # libraries/glslang/glslang/MachineIndependent/preprocessor/PpScanner.cpp # libraries/glslang/glslang/MachineIndependent/preprocessor/PpTokens.cpp # libraries/glslang/glslang/MachineIndependent/preprocessor/PpTokens.h # libraries/glslang/glslang/MachineIndependent/propagateNoContraction.cpp # libraries/glslang/glslang/MachineIndependent/propagateNoContraction.h # libraries/glslang/glslang/MachineIndependent/reflection.cpp # libraries/glslang/glslang/MachineIndependent/reflection.h # libraries/glslang/glslang/OSDependent/Unix/CMakeLists.txt # libraries/glslang/glslang/OSDependent/Unix/ossource.cpp # libraries/glslang/glslang/OSDependent/Windows/CMakeLists.txt # libraries/glslang/glslang/OSDependent/Windows/main.cpp # libraries/glslang/glslang/OSDependent/Windows/ossource.cpp # libraries/glslang/glslang/OSDependent/osinclude.h # libraries/glslang/glslang/Public/ShaderLang.h # libraries/glslang/glslang/updateGrammar # libraries/glslang/spirv/CMakeLists.txt # libraries/glslang/spirv/GLSL.ext.AMD.h # libraries/glslang/spirv/GLSL.ext.EXT.h # libraries/glslang/spirv/GLSL.ext.KHR.h # libraries/glslang/spirv/GLSL.ext.NV.h # libraries/glslang/spirv/GLSL.std.450.h # libraries/glslang/spirv/GlslangToSpv.cpp # libraries/glslang/spirv/GlslangToSpv.h # libraries/glslang/spirv/InReadableOrder.cpp # libraries/glslang/spirv/Logger.cpp # libraries/glslang/spirv/Logger.h # libraries/glslang/spirv/SPVRemapper.cpp # libraries/glslang/spirv/SPVRemapper.h # libraries/glslang/spirv/SpvBuilder.cpp # libraries/glslang/spirv/SpvBuilder.h # libraries/glslang/spirv/SpvPostProcess.cpp # libraries/glslang/spirv/SpvTools.cpp # libraries/glslang/spirv/SpvTools.h # libraries/glslang/spirv/bitutils.h # libraries/glslang/spirv/disassemble.cpp # libraries/glslang/spirv/disassemble.h # libraries/glslang/spirv/doc.cpp # libraries/glslang/spirv/doc.h # libraries/glslang/spirv/hex_float.h # libraries/glslang/spirv/spirv.hpp # libraries/glslang/spirv/spvIR.h # src/CMakeLists.txt
118 lines
3.1 KiB
CMake
118 lines
3.1 KiB
CMake
cmake_minimum_required(VERSION 2.8.7)
|
|
project(libdumb C)
|
|
|
|
set(CMAKE_C_FLAGS "-Wall -DDUMB_DECLARE_DEPRECATED -D_USE_SSE -msse -Wno-unused-variable -Wno-unused-but-set-variable")
|
|
set(CMAKE_C_FLAGS_DEBUG "-ggdb -DDEBUGMODE=1 -D_DEBUG")
|
|
set(CMAKE_C_FLAGS_RELEASE "-ffast-math -O2 -DNDEBUG")
|
|
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-ffast-math -g -O2 -DNDEBUG")
|
|
set(CMAKE_C_FLAGS_MINSIZEREL "-ffast-math -Os -DNDEBUG")
|
|
|
|
link_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
include_directories(../include/)
|
|
|
|
SET(SOURCES
|
|
../src/core/unload.c
|
|
../src/core/rendsig.c
|
|
../src/core/rendduh.c
|
|
../src/core/register.c
|
|
../src/core/readduh.c
|
|
../src/core/rawsig.c
|
|
../src/core/makeduh.c
|
|
../src/core/loadduh.c
|
|
../src/core/dumbfile.c
|
|
../src/core/duhtag.c
|
|
../src/core/duhlen.c
|
|
../src/core/atexit.c
|
|
../src/helpers/stdfile.c
|
|
../src/helpers/silence.c
|
|
../src/helpers/sampbuf.c
|
|
../src/helpers/riff.c
|
|
../src/helpers/resample.c
|
|
../src/helpers/memfile.c
|
|
../src/helpers/clickrem.c
|
|
../src/helpers/barray.c
|
|
../src/helpers/tarray.c
|
|
../src/it/xmeffect.c
|
|
../src/it/readxm2.c
|
|
../src/it/readxm.c
|
|
../src/it/readstm2.c
|
|
../src/it/readstm.c
|
|
../src/it/reads3m2.c
|
|
../src/it/reads3m.c
|
|
../src/it/readriff.c
|
|
../src/it/readptm.c
|
|
../src/it/readpsm.c
|
|
../src/it/readoldpsm.c
|
|
../src/it/readokt2.c
|
|
../src/it/readokt.c
|
|
../src/it/readmtm.c
|
|
../src/it/readmod2.c
|
|
../src/it/readmod.c
|
|
../src/it/readdsmf.c
|
|
../src/it/readasy.c
|
|
../src/it/readamf2.c
|
|
../src/it/readamf.c
|
|
../src/it/readam.c
|
|
../src/it/read6692.c
|
|
../src/it/read669.c
|
|
../src/it/ptmeffect.c
|
|
../src/it/loadxm2.c
|
|
../src/it/loadxm.c
|
|
../src/it/loadstm2.c
|
|
../src/it/loadstm.c
|
|
../src/it/loads3m2.c
|
|
../src/it/loads3m.c
|
|
../src/it/loadriff2.c
|
|
../src/it/loadriff.c
|
|
../src/it/loadptm2.c
|
|
../src/it/loadptm.c
|
|
../src/it/loadpsm2.c
|
|
../src/it/loadpsm.c
|
|
../src/it/loadoldpsm2.c
|
|
../src/it/loadoldpsm.c
|
|
../src/it/loadokt2.c
|
|
../src/it/loadokt.c
|
|
../src/it/loadmtm2.c
|
|
../src/it/loadmtm.c
|
|
../src/it/loadmod2.c
|
|
../src/it/loadmod.c
|
|
../src/it/loadasy2.c
|
|
../src/it/loadasy.c
|
|
../src/it/loadamf2.c
|
|
../src/it/loadamf.c
|
|
../src/it/load6692.c
|
|
../src/it/load669.c
|
|
../src/it/itunload.c
|
|
../src/it/itrender.c
|
|
../src/it/itread2.c
|
|
../src/it/itread.c
|
|
../src/it/itorder.c
|
|
../src/it/itmisc.c
|
|
../src/it/itload2.c
|
|
../src/it/itload.c
|
|
../src/it/readany.c
|
|
../src/it/loadany2.c
|
|
../src/it/loadany.c
|
|
../src/it/readany2.c
|
|
../src/helpers/resampler.c
|
|
../src/helpers/lpc.c
|
|
)
|
|
|
|
set(INSTALL_HEADERS
|
|
../include/dumb.h
|
|
)
|
|
|
|
add_library(dumb ${SOURCES})
|
|
set_target_properties(dumb PROPERTIES DEBUG_POSTFIX d)
|
|
|
|
# Make sure the dylib install name path is set on OSX so you can include dumb in app bundles
|
|
IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
|
set_target_properties(dumb PROPERTIES INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib)
|
|
ENDIF()
|
|
|
|
INSTALL(FILES ${INSTALL_HEADERS} DESTINATION include/)
|
|
INSTALL(TARGETS dumb
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|