[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37905] branches/cycles: Cycles: svn merge -r37694:37904 https://svn.blender.org/svnroot/bf-blender/trunk/ blender

Brecht Van Lommel brechtvanlommel at pandora.be
Tue Jun 28 17:00:43 CEST 2011


Revision: 37905
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37905
Author:   blendix
Date:     2011-06-28 15:00:42 +0000 (Tue, 28 Jun 2011)
Log Message:
-----------
Cycles: svn merge -r37694:37904 https://svn.blender.org/svnroot/bf-blender/trunk/blender

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37694

Modified Paths:
--------------
    branches/cycles/CMakeLists.txt
    branches/cycles/GNUmakefile
    branches/cycles/SConstruct
    branches/cycles/build_files/buildbot/master.cfg
    branches/cycles/build_files/buildbot/master_unpack.py
    branches/cycles/build_files/buildbot/slave_pack.py
    branches/cycles/build_files/cmake/cmake_consistency_check.py
    branches/cycles/build_files/cmake/macros.cmake
    branches/cycles/build_files/scons/config/aix4-config.py
    branches/cycles/build_files/scons/config/win32-vc-config.py
    branches/cycles/build_files/scons/config/win64-vc-config.py
    branches/cycles/doc/doxygen/Doxyfile
    branches/cycles/doc/python_api/examples/bpy.props.4.py
    branches/cycles/doc/python_api/rst/change_log.rst
    branches/cycles/doc/python_api/sphinx_changelog_gen.py
    branches/cycles/doc/python_api/sphinx_doc_gen.py
    branches/cycles/extern/bullet2/CMakeLists.txt
    branches/cycles/intern/CMakeLists.txt
    branches/cycles/intern/ffmpeg/ffmpeg_compat.h
    branches/cycles/intern/ghost/intern/GHOST_DisplayManagerCocoa.mm
    branches/cycles/intern/ghost/intern/GHOST_SystemCocoa.h
    branches/cycles/intern/ghost/intern/GHOST_SystemCocoa.mm
    branches/cycles/intern/ghost/intern/GHOST_Window.cpp
    branches/cycles/intern/ghost/intern/GHOST_Window.h
    branches/cycles/intern/ghost/intern/GHOST_WindowCarbon.cpp
    branches/cycles/intern/ghost/intern/GHOST_WindowCocoa.h
    branches/cycles/intern/ghost/intern/GHOST_WindowCocoa.mm
    branches/cycles/intern/ghost/intern/GHOST_WindowWin32.cpp
    branches/cycles/intern/ghost/intern/GHOST_WindowX11.cpp
    branches/cycles/intern/iksolver/intern/IK_QSegment.cpp
    branches/cycles/intern/itasc/ConstraintSet.cpp
    branches/cycles/release/datafiles/splash.png
    branches/cycles/release/scripts/modules/bpy_extras/image_utils.py
    branches/cycles/release/scripts/modules/bpy_extras/mesh_utils.py
    branches/cycles/release/scripts/modules/bpy_extras/view3d_utils.py
    branches/cycles/release/scripts/startup/bl_operators/nla.py
    branches/cycles/release/scripts/startup/bl_operators/object_quick_effects.py
    branches/cycles/release/scripts/startup/bl_operators/uvcalc_smart_project.py
    branches/cycles/release/scripts/startup/bl_operators/wm.py
    branches/cycles/release/scripts/startup/bl_ui/properties_data_curve.py
    branches/cycles/release/scripts/startup/bl_ui/properties_data_mesh.py
    branches/cycles/release/scripts/startup/bl_ui/properties_data_metaball.py
    branches/cycles/release/scripts/startup/bl_ui/properties_data_modifier.py
    branches/cycles/release/scripts/startup/bl_ui/properties_material.py
    branches/cycles/release/scripts/startup/bl_ui/properties_object_constraint.py
    branches/cycles/release/scripts/startup/bl_ui/properties_particle.py
    branches/cycles/release/scripts/startup/bl_ui/space_image.py
    branches/cycles/release/scripts/startup/bl_ui/space_userpref.py
    branches/cycles/release/scripts/startup/bl_ui/space_view3d.py
    branches/cycles/release/scripts/startup/bl_ui/space_view3d_toolbar.py
    branches/cycles/source/blender/blenkernel/BKE_blender.h
    branches/cycles/source/blender/blenkernel/BKE_particle.h
    branches/cycles/source/blender/blenkernel/CMakeLists.txt
    branches/cycles/source/blender/blenkernel/intern/blender.c
    branches/cycles/source/blender/blenkernel/intern/brush.c
    branches/cycles/source/blender/blenkernel/intern/bvhutils.c
    branches/cycles/source/blender/blenkernel/intern/paint.c
    branches/cycles/source/blender/blenkernel/intern/particle.c
    branches/cycles/source/blender/blenkernel/intern/sequencer.c
    branches/cycles/source/blender/blenkernel/intern/sound.c
    branches/cycles/source/blender/blenkernel/intern/writeffmpeg.c
    branches/cycles/source/blender/blenlib/BLI_math_color.h
    branches/cycles/source/blender/blenlib/BLI_math_geom.h
    branches/cycles/source/blender/blenlib/CMakeLists.txt
    branches/cycles/source/blender/blenlib/intern/math_color.c
    branches/cycles/source/blender/blenlib/intern/math_geom.c
    branches/cycles/source/blender/blenloader/intern/readfile.c
    branches/cycles/source/blender/blenloader/intern/writefile.c
    branches/cycles/source/blender/editors/armature/armature_intern.h
    branches/cycles/source/blender/editors/armature/armature_ops.c
    branches/cycles/source/blender/editors/armature/editarmature.c
    branches/cycles/source/blender/editors/datafiles/splash.png.c
    branches/cycles/source/blender/editors/datafiles/startup.blend.c
    branches/cycles/source/blender/editors/interface/interface_style.c
    branches/cycles/source/blender/editors/mesh/editmesh_mods.c
    branches/cycles/source/blender/editors/object/object_bake.c
    branches/cycles/source/blender/editors/render/render_opengl.c
    branches/cycles/source/blender/editors/sculpt_paint/paint_image.c
    branches/cycles/source/blender/editors/sound/CMakeLists.txt
    branches/cycles/source/blender/editors/sound/sound_ops.c
    branches/cycles/source/blender/editors/space_file/file_ops.c
    branches/cycles/source/blender/editors/space_graph/CMakeLists.txt
    branches/cycles/source/blender/editors/space_graph/graph_edit.c
    branches/cycles/source/blender/editors/space_info/info_stats.c
    branches/cycles/source/blender/editors/space_sequencer/CMakeLists.txt
    branches/cycles/source/blender/editors/space_sequencer/sequencer_add.c
    branches/cycles/source/blender/editors/space_view3d/drawobject.c
    branches/cycles/source/blender/editors/transform/transform_constraints.c
    branches/cycles/source/blender/editors/transform/transform_snap.c
    branches/cycles/source/blender/editors/uvedit/uvedit_draw.c
    branches/cycles/source/blender/gpu/intern/gpu_buffers.c
    branches/cycles/source/blender/imbuf/CMakeLists.txt
    branches/cycles/source/blender/imbuf/IMB_imbuf.h
    branches/cycles/source/blender/imbuf/intern/divers.c
    branches/cycles/source/blender/makesdna/DNA_particle_types.h
    branches/cycles/source/blender/makesdna/DNA_space_types.h
    branches/cycles/source/blender/makesrna/intern/CMakeLists.txt
    branches/cycles/source/blender/makesrna/intern/makesrna.c
    branches/cycles/source/blender/makesrna/intern/rna_ID.c
    branches/cycles/source/blender/makesrna/intern/rna_access.c
    branches/cycles/source/blender/makesrna/intern/rna_curve.c
    branches/cycles/source/blender/makesrna/intern/rna_mesh.c
    branches/cycles/source/blender/makesrna/intern/rna_modifier.c
    branches/cycles/source/blender/makesrna/intern/rna_object.c
    branches/cycles/source/blender/makesrna/intern/rna_particle.c
    branches/cycles/source/blender/makesrna/intern/rna_rna.c
    branches/cycles/source/blender/makesrna/intern/rna_scene.c
    branches/cycles/source/blender/makesrna/intern/rna_space.c
    branches/cycles/source/blender/makesrna/intern/rna_userdef.c
    branches/cycles/source/blender/nodes/intern/CMP_nodes/CMP_channelMatte.c
    branches/cycles/source/blender/nodes/intern/CMP_nodes/CMP_glare.c
    branches/cycles/source/blender/nodes/intern/CMP_nodes/CMP_rotate.c
    branches/cycles/source/blender/python/BPY_extern.h
    branches/cycles/source/blender/python/generic/mathutils_Matrix.c
    branches/cycles/source/blender/python/generic/mathutils_geometry.c
    branches/cycles/source/blender/python/intern/CMakeLists.txt
    branches/cycles/source/blender/python/intern/bpy.c
    branches/cycles/source/blender/python/intern/bpy_app.c
    branches/cycles/source/blender/python/intern/bpy_interface.c
    branches/cycles/source/blender/python/intern/bpy_rna.c
    branches/cycles/source/blender/quicktime/CMakeLists.txt
    branches/cycles/source/blender/quicktime/apple/qtkit_export.m
    branches/cycles/source/blender/render/intern/source/convertblender.c
    branches/cycles/source/blender/render/intern/source/imagetexture.c
    branches/cycles/source/blender/render/intern/source/pipeline.c
    branches/cycles/source/blender/render/intern/source/volume_precache.c
    branches/cycles/source/blender/render/intern/source/volumetric.c
    branches/cycles/source/blender/windowmanager/intern/wm_event_system.c
    branches/cycles/source/blender/windowmanager/intern/wm_files.c
    branches/cycles/source/blender/windowmanager/intern/wm_init_exit.c
    branches/cycles/source/blender/windowmanager/intern/wm_window.c
    branches/cycles/source/creator/CMakeLists.txt
    branches/cycles/source/creator/creator.c
    branches/cycles/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
    branches/cycles/source/gameengine/BlenderRoutines/CMakeLists.txt
    branches/cycles/source/gameengine/Converter/BL_BlenderDataConversion.cpp
    branches/cycles/source/gameengine/Converter/CMakeLists.txt
    branches/cycles/source/gameengine/Converter/KX_ConvertActuators.cpp
    branches/cycles/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp
    branches/cycles/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
    branches/cycles/source/gameengine/Ketsji/CMakeLists.txt
    branches/cycles/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
    branches/cycles/source/gameengine/Ketsji/KX_SoundActuator.cpp
    branches/cycles/source/gameengine/Ketsji/KX_SoundActuator.h
    branches/cycles/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
    branches/cycles/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.h
    branches/cycles/source/tools/CTS/FBlender.py

Added Paths:
-----------
    branches/cycles/build_files/cmake/cmake_consistency_check_config.py
    branches/cycles/doc/python_api/examples/aud.py
    branches/cycles/source/blender/blenlib/BLI_callbacks.h
    branches/cycles/source/blender/blenlib/intern/callbacks.c
    branches/cycles/source/blender/python/intern/bpy_app_handlers.c
    branches/cycles/source/blender/python/intern/bpy_app_handlers.h

Removed Paths:
-------------
    branches/cycles/source/blender/blenlib/intern/BLI_callbacks.h

Property Changed:
----------------
    branches/cycles/
    branches/cycles/source/blender/editors/datafiles/startup.blend.c
    branches/cycles/source/blender/editors/render/render_update.c
    branches/cycles/source/blender/editors/uvedit/uvedit_buttons.c
    branches/cycles/source/blender/python/intern/


Property changes on: branches/cycles
___________________________________________________________________
Modified: svn:mergeinfo
   - /trunk/blender:36353-37694
   + /trunk:37695-37700
/trunk/blender:36353-37904

Modified: branches/cycles/CMakeLists.txt
===================================================================
--- branches/cycles/CMakeLists.txt	2011-06-28 14:42:11 UTC (rev 37904)
+++ branches/cycles/CMakeLists.txt	2011-06-28 15:00:42 UTC (rev 37905)
@@ -53,10 +53,17 @@
 	set(FIRST_RUN "TRUE")
 endif()
 
+# set default build type to Release
+if(NOT CMAKE_BUILD_TYPE)
+	set(CMAKE_BUILD_TYPE "Release")
+endif()
 
 # this starts out unset
 list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/build_files/cmake/Modules")
 
+# avoid having empty buildtype
+set(CMAKE_BUILD_TYPE_INIT "Release")
+
 # quiet output for Makefiles, 'make -s' helps too
 # set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
 
@@ -105,6 +112,9 @@
 option(WITH_GAMEENGINE    "Enable Game Engine" ON)
 option(WITH_PLAYER        "Build Player" OFF)
 
+option(WITH_AUDASPACE    "Build with blenders audio library" ON)
+mark_as_advanced(WITH_AUDASPACE)
+
 option(WITH_HEADLESS      "Build without graphical support (renderfarm, server mode only)" OFF)
 mark_as_advanced(WITH_HEADLESS)
 
@@ -205,8 +215,8 @@
 	message(FATAL_ERROR "WITH_PLAYER requires WITH_GAMEENGINE")
 endif()
 
-if(NOT WITH_SAMPLERATE AND (WITH_OPENAL OR WITH_SDL OR WITH_JACK))
-	message(FATAL_ERROR "WITH_OPENAL/WITH_SDL/WITH_JACK require WITH_SAMPLERATE")
+if(NOT WITH_AUDASPACE AND (WITH_OPENAL OR WITH_SDL OR WITH_JACK))
+	message(FATAL_ERROR "WITH_OPENAL/WITH_SDL/WITH_JACK/WITH_CODEC_FFMPEG require WITH_AUDASPACE")
 endif()
 
 if(NOT WITH_IMAGE_OPENJPEG AND WITH_IMAGE_REDCODE)
@@ -242,13 +252,26 @@
 set(WITH_BINRELOC OFF)
 
 # MAXOSX only, set to avoid uninitialized 
-set(EXETYPE "")
+set(EXETYPE)
 
+# C/C++ flags
+set(PLATFORM_CFLAGS)
+
 # these are added to later on.
-set(C_WARNINGS "")
-set(CXX_WARNINGS "")
+set(C_WARNINGS)
+set(CXX_WARNINGS)
 
+# libraries to link the binary with passed to target_link_libraries()
+# known as LLIBS to scons
+set(PLATFORM_LINKLIBS)
 
+# Added to linker flags in setup_liblinks
+# - CMAKE_EXE_LINKER_FLAGS
+# - CMAKE_EXE_LINKER_FLAGS_DEBUG
+set(PLATFORM_LINKFLAGS)
+set(PLATFORM_LINKFLAGS_DEBUG)
+
+
 # disabled for now, not supported
 # option(WITH_WEBPLUGIN     "Enable Web Plugin (Unix only)" OFF)
 
@@ -418,24 +441,24 @@
 	endif()
 
 	# OpenSuse needs lutil, ArchLinux not, for now keep, can avoid by using --as-needed
-	set(LLIBS "-lutil -lc -lm -lpthread -lstdc++")
+	set(PLATFORM_LINKLIBS "-lutil -lc -lm -lpthread -lstdc++")
 
 	if(NOT WITH_HEADLESS)
 		find_package(X11 REQUIRED)
 		find_path(X11_XF86keysym_INCLUDE_PATH X11/XF86keysym.h ${X11_INC_SEARCH_PATH})
 		mark_as_advanced(X11_XF86keysym_INCLUDE_PATH)
 
-		list(APPEND LLIBS ${X11_X11_LIB})
+		list(APPEND PLATFORM_LINKLIBS ${X11_X11_LIB})
 
 		if(WITH_X11_XINPUT)
-			list(APPEND LLIBS ${X11_Xinput_LIB})
+			list(APPEND PLATFORM_LINKLIBS ${X11_Xinput_LIB})
 		endif()
 	endif()
 
 	if(CMAKE_SYSTEM_NAME MATCHES "Linux")
 		if(NOT WITH_PYTHON_MODULE)
 			# BSD's dont use libdl.so
-			list(APPEND LLIBS -ldl)
+			list(APPEND PLATFORM_LINKLIBS -ldl)
 			# binreloc is linux only
 			set(BINRELOC_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/extern/binreloc/include)
 			set(WITH_BINRELOC ON)
@@ -546,14 +569,16 @@
 
 	if(MSVC)
 		if(CMAKE_CL_64)
-			set(LLIBS ws2_32 vfw32 winmm kernel32 user32 gdi32 comdlg32 advapi32 shfolder shell32 ole32 oleaut32 uuid )
+			set(PLATFORM_LINKLIBS ws2_32 vfw32 winmm kernel32 user32 gdi32 comdlg32 advapi32 shfolder shell32 ole32 oleaut32 uuid)
 		else()
-			set(LLIBS kernel32 user32 gdi32 comdlg32 advapi32 shell32 ole32 oleaut32 uuid ws2_32 vfw32 winmm)
+			set(PLATFORM_LINKLIBS ws2_32 vfw32 winmm kernel32 user32 gdi32 comdlg32 advapi32 shfolder shell32 ole32 oleaut32 uuid)
 		endif()
-		
-		set(CMAKE_CXX_FLAGS "/D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /we4013 /wd4018 /wd4800 /wd4244 /wd4305 /wd4065 /wd4267" CACHE STRING "MSVC MT C++ flags " FORCE)
-		set(CMAKE_C_FLAGS   "/D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /we4013 /wd4018 /wd4800 /wd4244 /wd4305 /wd4065 /wd4267" CACHE STRING "MSVC MT C++ flags " FORCE)
 
+		add_definitions(/D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_CONSOLE /D_LIB)
+
+		set(CMAKE_CXX_FLAGS "/nologo /J /W0 /Gd /wd4018 /wd4244 /wd4305 /wd4800 /wd4065 /wd4267 /we4013" CACHE STRING "MSVC MT C++ flags " FORCE)
+		set(CMAKE_C_FLAGS   "/nologo /J /W0 /Gd /wd4018 /wd4244 /wd4305 /wd4800 /wd4065 /wd4267 /we4013 /EHsc" CACHE STRING "MSVC MT C++ flags " FORCE)
+
 		if(CMAKE_CL_64)
 			set(CMAKE_CXX_FLAGS_DEBUG "/D_DEBUG /Od /Gm /EHsc /RTC1 /MTd /W3 /nologo /Zi /J" CACHE STRING "MSVC MT flags " FORCE)
 		else()
@@ -589,25 +614,22 @@
 		endif()
 		set(JPEG_LIBRARIES libjpeg)
 
-		set(ZLIB ${LIBDIR}/zlib)
-		set(ZLIB_INCLUDE_DIRS ${ZLIB}/include)
-		set(ZLIB_LIBPATH ${ZLIB}/lib)
+		set(ZLIB_INCLUDE_DIRS ${LIBDIR}/zlib/include)
 		if(CMAKE_CL_64)
-			set(ZLIB_LIBRARIES libz)
+			set(ZLIB_LIBRARIES ${LIBDIR}/zlib/lib/libz.lib)
 		else()
-			set(ZLIB_LIBRARIES zlib)
+			set(ZLIB_LIBRARIES ${LIBDIR}/zlib/lib/zlib.lib)
 		endif()
 
-		set(PTHREADS ${LIBDIR}/pthreads)
-		set(PTHREADS_INCLUDE_DIRS ${PTHREADS}/include)
-		set(PTHREADS_LIBPATH ${PTHREADS}/lib)
-		set(PTHREADS_LIBRARIES pthreadVC2)
-		
-		set(FREETYPE ${LIBDIR}/freetype)
-		set(FREETYPE_INCLUDE_DIRS ${FREETYPE}/include ${FREETYPE}/include/freetype2)
-		set(FREETYPE_LIBPATH ${FREETYPE}/lib)
-		set(FREETYPE_LIBRARY freetype2ST)
+		set(PTHREADS_INCLUDE_DIRS ${LIBDIR}/pthreads/include)
+		set(PTHREADS_LIBRARIES ${LIBDIR}/pthreads/lib/pthreadVC2.lib)
 
+		set(FREETYPE_INCLUDE_DIRS
+			${FREETYPE}/include
+			${FREETYPE}/include/freetype2
+		)
+		set(FREETYPE_LIBRARY ${LIBDIR}/freetype/lib/freetype2ST.lib)
+
 		if(WITH_FFTW3)
 			set(FFTW3 ${LIBDIR}/fftw3)
 			set(FFTW3_LIBRARIES libfftw)
@@ -637,10 +659,17 @@
 		endif()
 
 		if(WITH_CODEC_FFMPEG)
-			set(FFMPEG ${LIBDIR}/ffmpeg)
-			set(FFMPEG_INCLUDE_DIRS ${FFMPEG}/include ${FFMPEG}/include/msvc)
-			set(FFMPEG_LIBRARIES avcodec-52 avformat-52 avdevice-52 avutil-50 swscale-0)
-			set(FFMPEG_LIBPATH ${FFMPEG}/lib)
+			set(FFMPEG_INCLUDE_DIRS
+				${LIBDIR}/ffmpeg/include
+				${LIBDIR}/ffmpeg/include/msvc
+			)
+			set(FFMPEG_LIBRARIES
+				${LIBDIR}/ffmpeg/lib/avcodec-52.lib
+				${LIBDIR}/ffmpeg/lib/avformat-52.lib
+				${LIBDIR}/ffmpeg/lib/avdevice-52.lib
+				${LIBDIR}/ffmpeg/lib/avutil-50.lib
+				${LIBDIR}/ffmpeg/lib/swscale-0.lib
+			)
 		endif()
 
 		if(WITH_IMAGE_OPENEXR)
@@ -675,17 +704,16 @@
 		endif()
 
 		if(WITH_IMAGE_TIFF)
-			set(TIFF ${LIBDIR}/tiff)
-			set(TIFF_LIBRARY libtiff)
-			set(TIFF_INCLUDE_DIR ${TIFF}/include)
-			set(TIFF_LIBPATH ${TIFF}/lib)
+			set(TIFF_LIBRARY ${LIBDIR}/tiff/lib/libtiff.lib)
+			set(TIFF_INCLUDE_DIR ${LIBDIR}/tiff/include)
 		endif()
 
 		if(WITH_JACK)
-			set(JACK ${LIBDIR}/jack)
-			set(JACK_INCLUDE_DIRS ${JACK}/include/jack ${JACK}/include)
-			set(JACK_LIBRARIES libjack)
-			set(JACK_LIBPATH ${JACK}/lib)
+			set(JACK_INCLUDE_DIRS
+				${LIBDIR}/jack/include/jack
+				${LIBDIR}/jack/include
+			)
+			set(JACK_LIBRARIES ${LIBDIR}/jack/lib/libjack.lib)
 		endif()
 
 		if(WITH_PYTHON)
@@ -695,23 +723,24 @@
 			set(PYTHON_LIBRARIES ${LIBDIR}/python/lib/python32.lib)
 		endif()
 
+		set(PLATFORM_LINKFLAGS "/SUBSYSTEM:CONSOLE /STACK:2097152 /INCREMENTAL:NO  /NODEFAULTLIB:msvcrt.lib\;msvcmrt.lib\;msvcurt.lib\;msvcrtd.lib ")
+
 		# MSVC only, Mingw doesnt need
 		if(CMAKE_CL_64)
-			set(PLATFORM_LINKFLAGS "/MACHINE:X64 /NODEFAULTLIB:libc.lib /STACK:2097152 ")
+			set(PLATFORM_LINKFLAGS "/MACHINE:X64 /OPT:NOREF ${PLATFORM_LINKFLAGS}")
 		else()
-			set(PLATFORM_LINKFLAGS "/NODEFAULTLIB:libc.lib /STACK:2097152 ")
+			set(PLATFORM_LINKFLAGS "/MACHINE:IX86 /LARGEADDRESSAWARE ${PLATFORM_LINKFLAGS}")
 		endif()
 
-		set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:libcmt.lib;libc.lib ")
+		set(PLATFORM_LINKFLAGS_DEBUG "/NODEFAULTLIB:libcmt.lib\;libc.lib")
 
 	else()
 		# keep GCC spesific stuff here
 		if(CMAKE_COMPILER_IS_GNUCC)
-			set(LLIBS "-lshell32 -lshfolder -lgdi32 -lmsvcrt -lwinmm -lmingw32 -lm -lws2_32 -lz -lstdc++ -lole32 -luuid")
+			set(PLATFORM_LINKLIBS "-lshell32 -lshfolder -lgdi32 -lmsvcrt -lwinmm -lmingw32 -lm -lws2_32 -lz -lstdc++ -lole32 -luuid")
 			set(PLATFORM_CFLAGS "-pipe -funsigned-char -fno-strict-aliasing")
 
-			set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE")
-			set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE")
+			add_definitions(-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE)
 		endif()
 
 		add_definitions(-DFREE_WINDOWS)
@@ -798,7 +827,7 @@
 			set(PYTHON_VERSION 3.2)
 			set(PYTHON_INCLUDE_DIRS "${PYTHON}/include/python${PYTHON_VERSION}")
 			# set(PYTHON_BINARY python) # not used yet
-			set(PYTHON_LIBRARIES python32mw)
+			set(PYTHON_LIBRARIES ${PYTHON}/lib/python32mw.lib)
 			set(PYTHON_LIBPATH ${PYTHON}/lib)
 		endif()
 
@@ -921,7 +950,7 @@
 		set(SAMPLERATE_LIBPATH ${SAMPLERATE}/lib)
 	endif()
 
-	set(LLIBS stdc++ SystemStubs)
+	set(PLATFORM_LINKLIBS stdc++ SystemStubs)
 
 	if(WITH_COCOA)
 		set(PLATFORM_CFLAGS "-pipe -funsigned-char -DGHOST_COCOA")
@@ -998,7 +1027,7 @@
 # Common.
 
 if(APPLE OR WIN32)
-	if(NOT IS_DIRECTORY "${LIBDIR}")
+	if(NOT EXISTS "${LIBDIR}/")
 		message(FATAL_ERROR "Apple and Windows require pre-compiled libs at: '${LIBDIR}'")
 	endif()
 endif()
@@ -1145,6 +1174,18 @@
 
 endif()
 
+# MSVC2010 fails to links C++ libs right
+if(MSVC10)
+	if(WITH_IMAGE_OPENEXR)
+		message(WARNING "MSVC 2010 does not support OpenEXR, disabling WITH_IMAGE_OPENEXR. To enable support use Use MSVC 2008")
+		set(WITH_IMAGE_OPENEXR OFF)
+	endif()
+	if(WITH_OPENCOLLADA)
+		message(WARNING "MSVC 2010 does not support OpenCollada, disabling WITH_OPENCOLLADA. To enable support use Use MSVC 2008")
+		set(WITH_OPENCOLLADA OFF)
+	endif()
+endif()
+
 if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
 	if(WITH_IK_ITASC OR WITH_MOD_FLUID)
 		message(WARNING "Using Clang as CXX compiler: disabling WITH_IK_ITASC and WITH_MOD_FLUID, these features will be missing.")

Modified: branches/cycles/GNUmakefile
===================================================================
--- branches/cycles/GNUmakefile	2011-06-28 14:42:11 UTC (rev 37904)

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list