Fixes for CMake.
This commit is contained in:
@@ -67,7 +67,6 @@ OPTION(WITH_OPENEXR "Enable OpenEXR Support (http://www.openexr.com)" OFF)
|
|||||||
OPTION(WITH_FFMPEG "Enable FFMPeg Support (http://ffmpeg.mplayerhq.hu/)" OFF)
|
OPTION(WITH_FFMPEG "Enable FFMPeg Support (http://ffmpeg.mplayerhq.hu/)" OFF)
|
||||||
OPTION(WITH_OPENAL "Enable OpenAL Support (http://www.openal.org)" ON)
|
OPTION(WITH_OPENAL "Enable OpenAL Support (http://www.openal.org)" ON)
|
||||||
OPTION(YESIAMSTUPID "Enable execution on 64-bit platforms" OFF)
|
OPTION(YESIAMSTUPID "Enable execution on 64-bit platforms" OFF)
|
||||||
OPTION(WITH_BINRELOC "Enable binreloc filepath support" OFF)
|
|
||||||
|
|
||||||
IF(NOT WITH_GAMEENGINE AND WITH_PLAYER)
|
IF(NOT WITH_GAMEENGINE AND WITH_PLAYER)
|
||||||
MESSAGE("WARNING: WITH_PLAYER needs WITH_GAMEENGINE")
|
MESSAGE("WARNING: WITH_PLAYER needs WITH_GAMEENGINE")
|
||||||
@@ -257,9 +256,6 @@ IF(WIN32)
|
|||||||
SET(FFMPEG_LIB avcodec-51 avformat-51 avutil-49)
|
SET(FFMPEG_LIB avcodec-51 avformat-51 avutil-49)
|
||||||
SET(FFMPEG_LIBPATH ${FFMPEG}/lib)
|
SET(FFMPEG_LIBPATH ${FFMPEG}/lib)
|
||||||
|
|
||||||
SET(BINRELC ${LIBDIR}/binreloc)
|
|
||||||
SET(BINRELC_INC ${BINRELOC}/include)
|
|
||||||
|
|
||||||
SET(LLIBS kernel32 user32 gdi32 comdlg32 advapi32 shell32 ole32 oleaut32 uuid ws2_32 vfw32 winmm)
|
SET(LLIBS kernel32 user32 gdi32 comdlg32 advapi32 shell32 ole32 oleaut32 uuid ws2_32 vfw32 winmm)
|
||||||
IF(WITH_OPENAL)
|
IF(WITH_OPENAL)
|
||||||
SET(LLIBS ${LLIBS} dxguid)
|
SET(LLIBS ${LLIBS} dxguid)
|
||||||
@@ -370,6 +366,11 @@ IF(APPLE)
|
|||||||
SET(EXETYPE MACOSX_BUNDLE)
|
SET(EXETYPE MACOSX_BUNDLE)
|
||||||
ENDIF(APPLE)
|
ENDIF(APPLE)
|
||||||
|
|
||||||
|
IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
|
SET(BINRELOC ${CMAKE_SOURCE_DIR}/extern/binreloc)
|
||||||
|
SET(BINRELOC_INC ${BINRELOC}/include)
|
||||||
|
ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# Common.
|
# Common.
|
||||||
SET(VERSE_INC ${CMAKE_SOURCE_DIR}/extern/verse/dist)
|
SET(VERSE_INC ${CMAKE_SOURCE_DIR}/extern/verse/dist)
|
||||||
|
4
extern/CMakeLists.txt
vendored
4
extern/CMakeLists.txt
vendored
@@ -43,6 +43,6 @@ IF(WITH_VERSE)
|
|||||||
SUBDIRS(verse)
|
SUBDIRS(verse)
|
||||||
ENDIF(WITH_VERSE)
|
ENDIF(WITH_VERSE)
|
||||||
|
|
||||||
if(WITH_BINRELOC)
|
IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
SUBDIRS(binreloc)
|
SUBDIRS(binreloc)
|
||||||
ENDIF(WITH_BINRELOC)
|
ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
|
2
extern/binreloc/CMakeLists.txt
vendored
2
extern/binreloc/CMakeLists.txt
vendored
@@ -22,5 +22,5 @@ SET(INC ./include ${WINTAB_INC})
|
|||||||
ADD_DEFINITIONS(-DWITH_BINRELOC)
|
ADD_DEFINITIONS(-DWITH_BINRELOC)
|
||||||
FILE(GLOB SRC *.c)
|
FILE(GLOB SRC *.c)
|
||||||
|
|
||||||
BLENDERLIB(binreloc "${SRC}" "${INC}")
|
BLENDERLIB(extern_binreloc "${SRC}" "${INC}")
|
||||||
#, libtype=['core','player'], priority = [25,15] )
|
#, libtype=['core','player'], priority = [25,15] )
|
||||||
|
@@ -36,6 +36,13 @@ SET(INC
|
|||||||
${ZLIB_INC}
|
${ZLIB_INC}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
|
SET(INC
|
||||||
|
${INC}
|
||||||
|
${BINRELOC_INC}
|
||||||
|
)
|
||||||
|
ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
|
|
||||||
IF(WITH_VERSE)
|
IF(WITH_VERSE)
|
||||||
ADD_DEFINITIONS(-DWITH_VERSE)
|
ADD_DEFINITIONS(-DWITH_VERSE)
|
||||||
SET(INC ${INC} ${VERSE_INC})
|
SET(INC ${INC} ${VERSE_INC})
|
||||||
|
@@ -42,16 +42,18 @@ INCLUDE_DIRECTORIES(../../intern/guardedalloc
|
|||||||
../blender/makesdna
|
../blender/makesdna
|
||||||
../kernel/gen_messaging
|
../kernel/gen_messaging
|
||||||
../kernel/gen_system
|
../kernel/gen_system
|
||||||
../../extern/binreloc/include
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
IF(WITH_QUICKTIME)
|
IF(WITH_QUICKTIME)
|
||||||
ADD_DEFINITIONS(-DWITH_QUICKTIME)
|
ADD_DEFINITIONS(-DWITH_QUICKTIME)
|
||||||
ENDIF(WITH_QUICKTIME)
|
ENDIF(WITH_QUICKTIME)
|
||||||
|
|
||||||
IF(WITH_BINRELOC)
|
IF(LINUX)
|
||||||
ADD_DEFINITIONS(-DWITH_BINRELOC)
|
ADD_DEFINITIONS(-DWITH_BINRELOC)
|
||||||
endif(WITH_BINRELOC)
|
INCLUDE_DIRECTORIES(${BINRELOC_INC})
|
||||||
|
endif(LINUX)
|
||||||
|
|
||||||
IF(YESIAMSTUPID)
|
IF(YESIAMSTUPID)
|
||||||
ADD_DEFINITIONS(-DYESIAMSTUPID)
|
ADD_DEFINITIONS(-DYESIAMSTUPID)
|
||||||
@@ -196,6 +198,10 @@ FILE(READ ${CMAKE_BINARY_DIR}/cmake_blender_libs.txt BLENDER_LINK_LIBS)
|
|||||||
|
|
||||||
SET(BLENDER_LINK_LIBS bf_nodes ${BLENDER_LINK_LIBS} src blender_python blender_render blender_radiosity blender_IK bf_elbeem)
|
SET(BLENDER_LINK_LIBS bf_nodes ${BLENDER_LINK_LIBS} src blender_python blender_render blender_radiosity blender_IK bf_elbeem)
|
||||||
|
|
||||||
|
IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
|
SET(BLENDER_LINK_LIBS ${BLENDER_LINK_LIBS} extern_binreloc)
|
||||||
|
ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
|
|
||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
# Sort libraries
|
# Sort libraries
|
||||||
SET(BLENDER_SORTED_LIBS
|
SET(BLENDER_SORTED_LIBS
|
||||||
@@ -259,6 +265,7 @@ IF(UNIX)
|
|||||||
bf_moto
|
bf_moto
|
||||||
blender_python
|
blender_python
|
||||||
bf_quicktime
|
bf_quicktime
|
||||||
|
extern_binreloc
|
||||||
)
|
)
|
||||||
|
|
||||||
FOREACH(SORTLIB ${BLENDER_SORTED_LIBS})
|
FOREACH(SORTLIB ${BLENDER_SORTED_LIBS})
|
||||||
|
Reference in New Issue
Block a user