[Bf-blender-cvs] [529ca92] master: MinGW still uses SDL1 - will need to change this of course but no need to keep compilation broken for now
Antony Riakiotakis
noreply at git.blender.org
Tue Feb 3 12:51:21 CET 2015
Commit: 529ca9297563d44db6f7354438c183ad8f1fe18d
Author: Antony Riakiotakis
Date: Tue Feb 3 12:51:12 2015 +0100
Branches: master
https://developer.blender.org/rB529ca9297563d44db6f7354438c183ad8f1fe18d
MinGW still uses SDL1 - will need to change this of course but no need
to keep compilation broken for now
===================================================================
M CMakeLists.txt
===================================================================
diff --git a/CMakeLists.txt b/CMakeLists.txt
index abee2a9..9935750 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1494,6 +1494,13 @@ elseif(WIN32)
)
endif()
+ if(WITH_SDL)
+ set(SDL ${LIBDIR}/sdl)
+ set(SDL_INCLUDE_DIR ${SDL}/include)
+ set(SDL_LIBRARY SDL2)
+ set(SDL_LIBPATH ${SDL}/lib)
+ endif()
+
# used in many places so include globally, like OpenGL
blender_include_dirs_sys("${PTHREADS_INCLUDE_DIRS}")
@@ -1723,6 +1730,13 @@ elseif(WIN32)
set(OPENCOLORIO_DEFINITIONS)
endif()
+ if(WITH_SDL)
+ set(SDL ${LIBDIR}/sdl)
+ set(SDL_INCLUDE_DIR ${SDL}/include)
+ set(SDL_LIBRARY SDL)
+ set(SDL_LIBPATH ${SDL}/lib)
+ endif()
+
set(PLATFORM_LINKFLAGS "-Xlinker --stack=2097152")
## DISABLE - causes linking errors
@@ -1754,13 +1768,6 @@ elseif(WIN32)
set(SNDFILE_LIBPATH ${SNDFILE}/lib) # TODO, deprecate
endif()
- if(WITH_SDL)
- set(SDL ${LIBDIR}/sdl)
- set(SDL_INCLUDE_DIR ${SDL}/include)
- set(SDL_LIBRARY SDL2)
- set(SDL_LIBPATH ${SDL}/lib)
- endif()
-
if(WITH_RAYOPTIMIZATION AND SUPPORT_SSE_BUILD)
add_definitions(-D__SSE__ -D__MMX__)
endif()
More information about the Bf-blender-cvs
mailing list