[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29198] branches/soc-2010-nicolasbishop: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r29022 :29193

Nicholas Bishop nicholasbishop at gmail.com
Thu Jun 3 22:27:17 CEST 2010


Revision: 29198
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29198
Author:   nicholasbishop
Date:     2010-06-03 22:27:16 +0200 (Thu, 03 Jun 2010)

Log Message:
-----------
svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r29022:29193

Modified Paths:
--------------
    branches/soc-2010-nicolasbishop/CMakeLists.txt
    branches/soc-2010-nicolasbishop/SConstruct
    branches/soc-2010-nicolasbishop/config/linuxcross-config.py
    branches/soc-2010-nicolasbishop/config/win32-mingw-config.py
    branches/soc-2010-nicolasbishop/intern/ghost/GHOST_C-api.h
    branches/soc-2010-nicolasbishop/intern/ghost/GHOST_IWindow.h
    branches/soc-2010-nicolasbishop/intern/ghost/intern/GHOST_C-api.cpp
    branches/soc-2010-nicolasbishop/intern/ghost/intern/GHOST_Window.cpp
    branches/soc-2010-nicolasbishop/intern/ghost/intern/GHOST_Window.h
    branches/soc-2010-nicolasbishop/intern/ghost/intern/GHOST_WindowCocoa.h
    branches/soc-2010-nicolasbishop/intern/ghost/intern/GHOST_WindowCocoa.mm
    branches/soc-2010-nicolasbishop/intern/ghost/intern/GHOST_WindowWin32.cpp
    branches/soc-2010-nicolasbishop/intern/ghost/intern/GHOST_WindowWin32.h
    branches/soc-2010-nicolasbishop/intern/ghost/intern/GHOST_WindowX11.cpp
    branches/soc-2010-nicolasbishop/intern/ghost/intern/GHOST_WindowX11.h
    branches/soc-2010-nicolasbishop/release/scripts/io/export_3ds.py
    branches/soc-2010-nicolasbishop/release/scripts/io/export_fbx.py
    branches/soc-2010-nicolasbishop/release/scripts/io/export_mdd.py
    branches/soc-2010-nicolasbishop/release/scripts/io/export_obj.py
    branches/soc-2010-nicolasbishop/release/scripts/io/export_ply.py
    branches/soc-2010-nicolasbishop/release/scripts/io/export_x3d.py
    branches/soc-2010-nicolasbishop/release/scripts/io/netrender/client.py
    branches/soc-2010-nicolasbishop/release/scripts/io/netrender/operators.py
    branches/soc-2010-nicolasbishop/release/scripts/io/netrender/repath.py
    branches/soc-2010-nicolasbishop/release/scripts/io/netrender/ui.py
    branches/soc-2010-nicolasbishop/release/scripts/modules/add_object_utils.py
    branches/soc-2010-nicolasbishop/release/scripts/modules/bpy/__init__.py
    branches/soc-2010-nicolasbishop/release/scripts/modules/bpy/utils.py
    branches/soc-2010-nicolasbishop/release/scripts/modules/graphviz_export.py
    branches/soc-2010-nicolasbishop/release/scripts/modules/rigify/__init__.py
    branches/soc-2010-nicolasbishop/release/scripts/op/add_mesh_torus.py
    branches/soc-2010-nicolasbishop/release/scripts/op/console_python.py
    branches/soc-2010-nicolasbishop/release/scripts/op/image.py
    branches/soc-2010-nicolasbishop/release/scripts/op/sequencer.py
    branches/soc-2010-nicolasbishop/release/scripts/op/uv.py
    branches/soc-2010-nicolasbishop/release/scripts/op/wm.py
    branches/soc-2010-nicolasbishop/release/scripts/ui/properties_data_armature_rigify.py
    branches/soc-2010-nicolasbishop/release/scripts/ui/properties_data_lamp.py
    branches/soc-2010-nicolasbishop/release/scripts/ui/properties_data_modifier.py
    branches/soc-2010-nicolasbishop/release/scripts/ui/properties_object_constraint.py
    branches/soc-2010-nicolasbishop/release/scripts/ui/properties_particle.py
    branches/soc-2010-nicolasbishop/release/scripts/ui/properties_texture.py
    branches/soc-2010-nicolasbishop/release/scripts/ui/space_info.py
    branches/soc-2010-nicolasbishop/release/scripts/ui/space_sequencer.py
    branches/soc-2010-nicolasbishop/release/scripts/ui/space_text.py
    branches/soc-2010-nicolasbishop/release/scripts/ui/space_userpref.py
    branches/soc-2010-nicolasbishop/release/scripts/ui/space_view3d.py
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_customdata.h
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_multires.h
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_particle.h
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_report.h
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_subsurf.h
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/CCGSubSurf.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/DerivedMesh.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/anim.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/cdderivedmesh.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/constraint.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/customdata.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/depsgraph.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/fcurve.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/fmodifier.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/image.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/library.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/multires.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/object.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/particle.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/particle_system.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/pointcache.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/report.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/sound.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/subsurf_ccg.c
    branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/texture.c
    branches/soc-2010-nicolasbishop/source/blender/blenlib/BLI_pbvh.h
    branches/soc-2010-nicolasbishop/source/blender/blenlib/intern/bpath.c
    branches/soc-2010-nicolasbishop/source/blender/blenlib/intern/math_geom.c
    branches/soc-2010-nicolasbishop/source/blender/blenlib/intern/path_util.c
    branches/soc-2010-nicolasbishop/source/blender/blenlib/intern/pbvh.c
    branches/soc-2010-nicolasbishop/source/blender/blenlib/intern/threads.c
    branches/soc-2010-nicolasbishop/source/blender/blenloader/intern/readfile.c
    branches/soc-2010-nicolasbishop/source/blender/collada/DocumentExporter.cpp
    branches/soc-2010-nicolasbishop/source/blender/collada/DocumentExporter.h
    branches/soc-2010-nicolasbishop/source/blender/collada/DocumentImporter.cpp
    branches/soc-2010-nicolasbishop/source/blender/collada/DocumentImporter.h
    branches/soc-2010-nicolasbishop/source/blender/collada/SConscript
    branches/soc-2010-nicolasbishop/source/blender/collada/collada.cpp
    branches/soc-2010-nicolasbishop/source/blender/collada/collada.h
    branches/soc-2010-nicolasbishop/source/blender/collada/collada_internal.h
    branches/soc-2010-nicolasbishop/source/blender/editors/include/UI_interface.h
    branches/soc-2010-nicolasbishop/source/blender/editors/interface/interface.c
    branches/soc-2010-nicolasbishop/source/blender/editors/interface/interface_handlers.c
    branches/soc-2010-nicolasbishop/source/blender/editors/interface/interface_regions.c
    branches/soc-2010-nicolasbishop/source/blender/editors/interface/interface_templates.c
    branches/soc-2010-nicolasbishop/source/blender/editors/interface/interface_widgets.c
    branches/soc-2010-nicolasbishop/source/blender/editors/mesh/editmesh_mods.c
    branches/soc-2010-nicolasbishop/source/blender/editors/mesh/editmesh_tools.c
    branches/soc-2010-nicolasbishop/source/blender/editors/object/object_constraint.c
    branches/soc-2010-nicolasbishop/source/blender/editors/object/object_edit.c
    branches/soc-2010-nicolasbishop/source/blender/editors/object/object_intern.h
    branches/soc-2010-nicolasbishop/source/blender/editors/object/object_ops.c
    branches/soc-2010-nicolasbishop/source/blender/editors/physics/particle_edit.c
    branches/soc-2010-nicolasbishop/source/blender/editors/physics/physics_fluid.c
    branches/soc-2010-nicolasbishop/source/blender/editors/screen/screen_ops.c
    branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/paint_image.c
    branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/sculpt.c
    branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/sculpt_intern.h
    branches/soc-2010-nicolasbishop/source/blender/editors/sound/sound_ops.c
    branches/soc-2010-nicolasbishop/source/blender/editors/space_image/image_buttons.c
    branches/soc-2010-nicolasbishop/source/blender/editors/space_info/info_intern.h
    branches/soc-2010-nicolasbishop/source/blender/editors/space_info/info_ops.c
    branches/soc-2010-nicolasbishop/source/blender/editors/space_info/space_info.c
    branches/soc-2010-nicolasbishop/source/blender/editors/space_logic/logic_window.c
    branches/soc-2010-nicolasbishop/source/blender/editors/space_node/drawnode.c
    branches/soc-2010-nicolasbishop/source/blender/editors/space_outliner/outliner.c
    branches/soc-2010-nicolasbishop/source/blender/editors/space_script/script_edit.c
    branches/soc-2010-nicolasbishop/source/blender/editors/space_script/script_intern.h
    branches/soc-2010-nicolasbishop/source/blender/editors/space_script/script_ops.c
    branches/soc-2010-nicolasbishop/source/blender/editors/space_sequencer/sequencer_add.c
    branches/soc-2010-nicolasbishop/source/blender/editors/space_view3d/drawobject.c
    branches/soc-2010-nicolasbishop/source/blender/editors/space_view3d/view3d_edit.c
    branches/soc-2010-nicolasbishop/source/blender/editors/space_view3d/view3d_intern.h
    branches/soc-2010-nicolasbishop/source/blender/editors/space_view3d/view3d_snap.c
    branches/soc-2010-nicolasbishop/source/blender/editors/space_view3d/view3d_view.c
    branches/soc-2010-nicolasbishop/source/blender/imbuf/IMB_thumbs.h
    branches/soc-2010-nicolasbishop/source/blender/imbuf/intern/IMB_filetype.h
    branches/soc-2010-nicolasbishop/source/blender/imbuf/intern/filetype.c
    branches/soc-2010-nicolasbishop/source/blender/imbuf/intern/thumbs.c
    branches/soc-2010-nicolasbishop/source/blender/imbuf/intern/thumbs_blend.c
    branches/soc-2010-nicolasbishop/source/blender/imbuf/intern/tiff.c
    branches/soc-2010-nicolasbishop/source/blender/makesdna/DNA_ID.h
    branches/soc-2010-nicolasbishop/source/blender/makesdna/DNA_constraint_types.h
    branches/soc-2010-nicolasbishop/source/blender/makesdna/DNA_texture_types.h
    branches/soc-2010-nicolasbishop/source/blender/makesdna/DNA_windowmanager_types.h
    branches/soc-2010-nicolasbishop/source/blender/makesrna/RNA_access.h
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_ID.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_actuator.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_constraint.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_fcurve.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_image.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_image_api.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_main.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_main_api.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_modifier.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_scene.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_sequencer.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_sound.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_space.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_text.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_texture.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_ui_api.c
    branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_vfont.c
    branches/soc-2010-nicolasbishop/source/blender/modifiers/intern/MOD_multires.c
    branches/soc-2010-nicolasbishop/source/blender/modifiers/intern/MOD_screw.c
    branches/soc-2010-nicolasbishop/source/blender/python/BPY_extern.h
    branches/soc-2010-nicolasbishop/source/blender/python/doc/blender-org/layout.html
    branches/soc-2010-nicolasbishop/source/blender/python/doc/blender-org/static/default.css_t
    branches/soc-2010-nicolasbishop/source/blender/python/doc/sphinx_doc_gen.py
    branches/soc-2010-nicolasbishop/source/blender/python/generic/bpy_internal_import.c
    branches/soc-2010-nicolasbishop/source/blender/python/generic/bpy_internal_import.h
    branches/soc-2010-nicolasbishop/source/blender/python/generic/mathutils_vector.c
    branches/soc-2010-nicolasbishop/source/blender/python/intern/bpy_driver.c
    branches/soc-2010-nicolasbishop/source/blender/python/intern/bpy_interface.c
    branches/soc-2010-nicolasbishop/source/blender/render/intern/source/convertblender.c
    branches/soc-2010-nicolasbishop/source/blender/render/intern/source/voxeldata.c
    branches/soc-2010-nicolasbishop/source/blender/windowmanager/WM_api.h
    branches/soc-2010-nicolasbishop/source/blender/windowmanager/intern/wm.c
    branches/soc-2010-nicolasbishop/source/blender/windowmanager/intern/wm_event_system.c
    branches/soc-2010-nicolasbishop/source/blender/windowmanager/intern/wm_files.c
    branches/soc-2010-nicolasbishop/source/blender/windowmanager/intern/wm_jobs.c
    branches/soc-2010-nicolasbishop/source/blender/windowmanager/intern/wm_operators.c
    branches/soc-2010-nicolasbishop/source/blender/windowmanager/intern/wm_window.c
    branches/soc-2010-nicolasbishop/source/blender/windowmanager/wm_event_types.h
    branches/soc-2010-nicolasbishop/source/blenderplayer/bad_level_call_stubs/stubs.c
    branches/soc-2010-nicolasbishop/source/creator/CMakeLists.txt
    branches/soc-2010-nicolasbishop/source/creator/creator.c
    branches/soc-2010-nicolasbishop/source/gameengine/Ketsji/KX_PythonInit.cpp
    branches/soc-2010-nicolasbishop/source/gameengine/PyDoc/bge.events.rst
    branches/soc-2010-nicolasbishop/source/gameengine/PyDoc/bge.logic.rst
    branches/soc-2010-nicolasbishop/source/gameengine/PyDoc/bge.render.rst
    branches/soc-2010-nicolasbishop/source/gameengine/PyDoc/bge.types.rst

Added Paths:
-----------
    branches/soc-2010-nicolasbishop/source/blender/python/doc/sphinx_html_compact.diff

Modified: branches/soc-2010-nicolasbishop/CMakeLists.txt
===================================================================
--- branches/soc-2010-nicolasbishop/CMakeLists.txt	2010-06-03 20:25:00 UTC (rev 29197)
+++ branches/soc-2010-nicolasbishop/CMakeLists.txt	2010-06-03 20:27:16 UTC (rev 29198)
@@ -1,4 +1,4 @@
- # $Id$
+# $Id$
 # ***** BEGIN GPL LICENSE BLOCK *****
 #
 # This program is free software; you can redistribute it and/or
@@ -92,7 +92,7 @@
 	OPTION(WITH_OPENCOLLADA		"Enable OpenCollada Support (http://www.opencollada.org/)"	OFF)
 ELSE()
 	OPTION(WITH_OPENMP        "Enable OpenMP (has to be supported by the compiler)" OFF)
-	OPTION(WITH_OPENCOLLADA		"Enable OpenCollada Support (http://www.opencollada.org/)"	ON)
+	OPTION(WITH_OPENCOLLADA		"Enable OpenCollada Support (http://www.opencollada.org/)"	OFF)
 ENDIF()
 
 IF (APPLE)
@@ -162,20 +162,24 @@
 	FIND_PACKAGE(Freetype)
 	# UNSET(FREETYPE_INCLUDE_DIRS CACHE) # cant use
 
-	# No way to set py31. remove for now.
-	# FIND_PACKAGE(PythonLibs)
-	SET(PYTHON /usr)
-	SET(PYTHON_VERSION 3.1)
-	SET(PYTHON_INC "${PYTHON}/include/python${PYTHON_VERSION}" CACHE STRING "")
-	# SET(PYTHON_BINARY python) # not used yet
-	SET(PYTHON_LIB python${PYTHON_VERSION} CACHE STRING "")
-	SET(PYTHON_LIBPATH ${PYTHON}/lib CACHE STRING "")
-  
-	# FIND_PACKAGE(PythonInterp) # not used yet
-	# SET(PYTHON_BINARY ${PYTHON_EXECUTABLE} CACHE STRING "")
-  
-	SET(PYTHON_LINKFLAGS "-Xlinker -export-dynamic")
 
+	IF(WITH_PYTHON)
+		# No way to set py31. remove for now.
+		# FIND_PACKAGE(PythonLibs)
+		SET(PYTHON /usr)
+		SET(PYTHON_VERSION 3.1)
+		SET(PYTHON_INC "${PYTHON}/include/python${PYTHON_VERSION}" CACHE STRING "")
+		# SET(PYTHON_BINARY python) # not used yet
+		SET(PYTHON_LIB python${PYTHON_VERSION} CACHE STRING "")
+		SET(PYTHON_LIBPATH ${PYTHON}/lib CACHE STRING "")
+	
+		# FIND_PACKAGE(PythonInterp) # not used yet
+		# SET(PYTHON_BINARY ${PYTHON_EXECUTABLE} CACHE STRING "")
+
+		SET(PYTHON_LINKFLAGS "-Xlinker -export-dynamic")
+	ENDIF(WITH_PYTHON)
+
+
 	IF(WITH_SDL)
 		FIND_PACKAGE(SDL)
 		# UNSET(SDLMAIN_LIBRARY CACHE)
@@ -184,23 +188,27 @@
 		ENDIF(NOT SDL_FOUND)
 	ENDIF(WITH_SDL)
 
-	SET(OPENEXR /usr CACHE FILEPATH "OPENEXR Directory")
-	FIND_PATH(OPENEXR_INC
-		ImfXdr.h
-		PATHS
-		${OPENEXR}/include/OpenEXR
-		/usr/local/include/OpenEXR
-		/sw/include/OpenEXR
-		/opt/local/include/OpenEXR
-		/opt/csw/include/OpenEXR
-		/opt/include/OpenEXR
-	)
-	SET(OPENEXR_LIB Half IlmImf Iex Imath)
+	IF(WITH_OPENEXR)
+		SET(OPENEXR /usr CACHE FILEPATH "OPENEXR Directory")
+		FIND_PATH(OPENEXR_INC
+			ImfXdr.h
+			PATHS
+			${OPENEXR}/include/OpenEXR
+			/usr/local/include/OpenEXR
+			/sw/include/OpenEXR
+			/opt/local/include/OpenEXR
+			/opt/csw/include/OpenEXR
+			/opt/include/OpenEXR
+		)
+		SET(OPENEXR_LIB Half IlmImf Iex Imath)
+	ENDIF(WITH_OPENEXR)
 
-	SET(FFMPEG /usr CACHE FILEPATH "FFMPEG Directory")
-	SET(FFMPEG_INC ${FFMPEG}/include)
-	SET(FFMPEG_LIB avformat avcodec avutil avdevice swscale CACHE STRING "FFMPEG Libraries")
-	SET(FFMPEG_LIBPATH ${FFMPEG}/lib)
+	IF(WITH_FFMPEG)
+		SET(FFMPEG /usr CACHE FILEPATH "FFMPEG Directory")
+		SET(FFMPEG_INC ${FFMPEG}/include)
+		SET(FFMPEG_LIB avformat avcodec avutil avdevice swscale CACHE STRING "FFMPEG Libraries")
+		SET(FFMPEG_LIBPATH ${FFMPEG}/lib)
+	ENDIF(WITH_FFMPEG)
   
 	IF(WITH_FFTW3)
 		SET(FFTW3 /usr)
@@ -247,6 +255,10 @@
 	IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
 		# BSD's dont use libdl.so
 		SET(LLIBS "${LLIBS} -ldl")
+
+		# binreloc is linux only
+		SET(BINRELOC ${CMAKE_SOURCE_DIR}/extern/binreloc)
+		SET(BINRELOC_INC ${BINRELOC}/include)
 	ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
 
 	IF(WITH_OPENMP)
@@ -267,6 +279,7 @@
 	INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR} ${PNG_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} )
 ENDIF(UNIX AND NOT APPLE)
 
+
 IF(WIN32)
 
 	# this file is included anyway when building under Windows with cl.exe
@@ -279,26 +292,45 @@
 		message("64 bit compiler detected.")
 		SET(LIBDIR ${CMAKE_SOURCE_DIR}/../lib/win64)
 	ENDIF(CMAKE_CL_64)
+	
+	ADD_DEFINITIONS(-DWIN32)
 
-	SET(PYTHON ${LIBDIR}/python)
-	SET(PYTHON_VERSION 3.1)
-	SET(PYTHON_INC "${PYTHON}/include/python${PYTHON_VERSION}")
-	# SET(PYTHON_BINARY python) # not used yet
-	SET(PYTHON_LIB python31)
-	SET(PYTHON_LIBPATH ${PYTHON}/lib)
+	SET(ICONV ${LIBDIR}/iconv)
+	SET(ICONV_INC ${ICONV}/include)
+	SET(ICONV_LIB iconv)
+	SET(ICONV_LIBPATH ${ICONV}/lib)
 
-	SET(OPENAL ${LIBDIR}/openal)
-	SET(OPENAL_INCLUDE_DIR ${OPENAL}/include)
-	SET(OPENAL_LIBRARY wrap_oal)
-	SET(OPENAL_LIBPATH ${OPENAL}/lib)
+	SET(LIBSAMPLERATE ${LIBDIR}/samplerate)
+	SET(LIBSAMPLERATE_INC ${LIBSAMPLERATE}/include)
+	SET(LIBSAMPLERATE_LIB libsamplerate)
+	SET(LIBSAMPLERATE_LIBPATH ${LIBSAMPLERATE}/lib)
 
-	IF(WITH_JACK)
-		SET(JACK ${LIBDIR}/jack)
-		SET(JACK_INC ${JACK}/include/jack ${JACK}/include)
-		SET(JACK_LIB libjack)
-		SET(JACK_LIBPATH ${JACK}/lib)
-	ENDIF(WITH_JACK)
+	SET(PNG "${LIBDIR}/png")
+	SET(PNG_INC "${PNG}/include")
+	SET(PNG_LIBPATH ${PNG}/lib)
 
+	SET(JPEG "${LIBDIR}/jpeg")
+	SET(JPEG_INC "${JPEG}/include")
+	SET(JPEG_LIBPATH ${JPEG}/lib)
+
+	SET(WINTAB_INC ${LIBDIR}/wintab/include) 
+
+	IF(WITH_PYTHON)
+		SET(PYTHON ${LIBDIR}/python)
+		SET(PYTHON_VERSION 3.1)
+		SET(PYTHON_INC "${PYTHON}/include/python${PYTHON_VERSION}")
+		# SET(PYTHON_BINARY python) # not used yet
+		SET(PYTHON_LIB python31)
+		SET(PYTHON_LIBPATH ${PYTHON}/lib)
+	ENDIF(WITH_PYTHON)
+
+	IF(WITH_OPENAL)
+		SET(OPENAL ${LIBDIR}/openal)
+		SET(OPENAL_INCLUDE_DIR ${OPENAL}/include)
+		SET(OPENAL_LIBRARY wrap_oal)
+		SET(OPENAL_LIBPATH ${OPENAL}/lib)
+	ENDIF(WITH_OPENAL)
+
 	IF(WITH_SNDFILE)
 		SET(SNDFILE ${LIBDIR}/sndfile)
 		SET(SNDFILE_INC ${SNDFILE}/include)
@@ -306,140 +338,241 @@
 		SET(SNDFILE_LIBPATH ${SNDFILE}/lib)
 	ENDIF(WITH_SNDFILE)
 
-	IF(CMAKE_CL_64)
-		SET(PNG_LIBRARIES libpng)
-	ELSE(CMAKE_CL_64)
-		SET(PNG_LIBRARIES libpng_st)
-	ENDIF(CMAKE_CL_64)
-	SET(JPEG_LIBRARY libjpeg)
+	IF(WITH_SDL)
+		SET(SDL ${LIBDIR}/sdl)
+		SET(SDL_INCLUDE_DIR ${SDL}/include)
+		SET(SDL_LIBRARY SDL)
+		SET(SDL_LIBPATH ${SDL}/lib)
+	ENDIF(WITH_SDL)
 
-	SET(ZLIB ${LIBDIR}/zlib)
-	SET(ZLIB_INC ${ZLIB}/include)
-	IF(CMAKE_CL_64)
-		SET(ZLIB_LIBRARIES libz)
-	ELSE(CMAKE_CL_64)
-		SET(ZLIB_LIBRARIES zlib)
-	ENDIF(CMAKE_CL_64)
-	SET(ZLIB_LIBPATH ${ZLIB}/lib)
-  
-	SET(PTHREADS ${LIBDIR}/pthreads)
-	SET(PTHREADS_INC ${PTHREADS}/include)
-	SET(PTHREADS_LIB pthreadVC2)
-	SET(PTHREADS_LIBPATH ${PTHREADS}/lib)
-  
-	SET(ICONV ${LIBDIR}/iconv)
-	SET(ICONV_INC ${ICONV}/include)
-	SET(ICONV_LIB iconv)
-	SET(ICONV_LIBPATH ${ICONV}/lib)
-  
-	IF(WITH_FFTW3)
-		SET(FFTW3 ${LIBDIR}/fftw3)
-		SET(FFTW3_INC ${FFTW3}/include)
-		SET(FFTW3_LIB libfftw)
-		SET(FFTW3_LIBPATH ${FFTW3}/lib)
-	ENDIF(WITH_FFTW3)
-  
-	SET(GETTEXT ${LIBDIR}/gettext)
-	SET(GETTEXT_INC ${GETTEXT}/include)
-	IF(CMAKE_CL_64)
-		SET(GETTEXT_LIB gettext)
-	ELSE(CMAKE_CL_64)
-		SET(GETTEXT_LIB gnu_gettext)
-	ENDIF(CMAKE_CL_64)
-	SET(GETTEXT_LIBPATH ${GETTEXT}/lib)
+	IF(WITH_QUICKTIME)
+		SET(QUICKTIME ${LIBDIR}/QTDevWin)
+		SET(QUICKTIME_INC ${QUICKTIME}/CIncludes)
+		SET(QUICKTIME_LIB qtmlClient)
+		SET(QUICKTIME_LIBPATH ${QUICKTIME}/Libraries)
+	ENDIF(WITH_QUICKTIME)
 
-	SET(FREETYPE ${LIBDIR}/freetype)
-	SET(FREETYPE_INCLUDE_DIRS ${FREETYPE}/include ${FREETYPE}/include/freetype2)
-	SET(FREETYPE_LIBPATH ${FREETYPE}/lib)
-	SET(FREETYPE_LIBRARY freetype2ST)
-  
-	SET(OPENEXR ${LIBDIR}/openexr)
-	SET(OPENEXR_INC ${OPENEXR}/include ${OPENEXR}/include/IlmImf ${OPENEXR}/include/Iex ${OPENEXR}/include/Imath)
-	SET(OPENEXR_LIB Iex Half IlmImf Imath IlmThread)
-	IF (MSVC80)
-		SET(OPENEXR_LIBPATH ${OPENEXR}/lib_vs2005)
-	ELSE (MSVC80)
-		SET(OPENEXR_LIBPATH ${OPENEXR}/lib_msvc)
-	ENDIF(MSVC80)
-	IF (MSVC90)
-		SET(OPENEXR_LIBPATH ${OPENEXR}/lib_vs2008)
-	ENDIF(MSVC90)
+	IF(MSVC)
+		IF(CMAKE_CL_64)
+			SET(LLIBS kernel32 user32 vfw32 winmm ws2_32 )
+		ELSE(CMAKE_CL_64)
+			SET(LLIBS kernel32 user32 gdi32 comdlg32 advapi32 shell32 ole32 oleaut32 uuid ws2_32 vfw32 winmm)
+		ENDIF(CMAKE_CL_64)
+		
+		SET(CMAKE_CXX_FLAGS "/D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /wd4800 /wd4244 /wd4305" 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 /wd4800 /wd4244 /wd4305" CACHE STRING "MSVC MT C++ flags " FORCE)
 
-  
-	SET(QUICKTIME ${LIBDIR}/QTDevWin)
-	SET(QUICKTIME_INC ${QUICKTIME}/CIncludes)
-	SET(QUICKTIME_LIB qtmlClient)
-	SET(QUICKTIME_LIBPATH ${QUICKTIME}/Libraries)
+		SET(CMAKE_CXX_FLAGS_DEBUG "/D_DEBUG /Od /Gm /EHsc /RTC1 /MTd /W3 /nologo /ZI /J" CACHE STRING "MSVC MT flags " FORCE)
+		SET(CMAKE_CXX_FLAGS_RELEASE "/O2 /Ob2 /DNDEBUG /EHsc /MT /W3 /nologo /J" CACHE STRING "MSVC MT flags " FORCE)
+		SET(CMAKE_CXX_FLAGS_MINSIZEREL "/O1 /Ob1 /DNDEBUG /EHsc /MT /W3 /nologo /J" CACHE STRING "MSVC MT flags " FORCE)
+		SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/O2 /Ob1 /DNDEBUG /EHsc /MT /W3 /nologo /Zi /J" CACHE STRING "MSVC MT flags " FORCE)
+		SET(CMAKE_C_FLAGS_DEBUG "/D_DEBUG /Od /Gm /EHsc /RTC1 /MTd /W3 /nologo /ZI /J" CACHE STRING "MSVC MT flags " FORCE)
+		SET(CMAKE_C_FLAGS_RELEASE "/O2 /Ob2 /DNDEBUG /EHsc /MT /W3 /nologo /J" CACHE STRING "MSVC MT flags " FORCE)
+		SET(CMAKE_C_FLAGS_MINSIZEREL "/O1 /Ob1 /DNDEBUG /EHsc /MT /W3 /nologo /J" CACHE STRING "MSVC MT flags " FORCE)
+		SET(CMAKE_C_FLAGS_RELWITHDEBINFO "/O2 /Ob1 /DNDEBUG /EHsc /MT /W3 /nologo /Zi /J" CACHE STRING "MSVC MT flags " FORCE)
+		
+		IF(WITH_OPENMP)
+			SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /openmp ")
+			SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /openmp ")
+		ENDIF(WITH_OPENMP)
+		
+		SET(GETTEXT ${LIBDIR}/gettext)
+		SET(GETTEXT_INC ${GETTEXT}/include)
+		SET(GETTEXT_LIBPATH ${GETTEXT}/lib)
+		IF(CMAKE_CL_64)
+			SET(GETTEXT_LIB gettext)
+		ELSE(CMAKE_CL_64)
+			SET(GETTEXT_LIB gnu_gettext)
+		ENDIF(CMAKE_CL_64)
 
-	SET(FFMPEG ${LIBDIR}/ffmpeg)
-	SET(FFMPEG_INC ${FFMPEG}/include ${FFMPEG}/include/msvc)
-	SET(FFMPEG_LIB avcodec-52 avformat-52 avdevice-52 avutil-50 swscale-0)
-	SET(FFMPEG_LIBPATH ${FFMPEG}/lib)
+		IF(CMAKE_CL_64)
+			SET(PNG_LIBRARIES libpng)
+		ELSE(CMAKE_CL_64)
+			SET(PNG_LIBRARIES libpng_st)
+		ENDIF(CMAKE_CL_64)
+		SET(JPEG_LIBRARY libjpeg)
 
-	SET(LIBSAMPLERATE ${LIBDIR}/samplerate)
-	SET(LIBSAMPLERATE_INC ${LIBSAMPLERATE}/include)
-	SET(LIBSAMPLERATE_LIB libsamplerate)
-	SET(LIBSAMPLERATE_LIBPATH ${LIBSAMPLERATE}/lib)
+		SET(ZLIB ${LIBDIR}/zlib)
+		SET(ZLIB_INC ${ZLIB}/include)
+		SET(ZLIB_LIBPATH ${ZLIB}/lib)
+		IF(CMAKE_CL_64)
+			SET(ZLIB_LIBRARIES libz)
+		ELSE(CMAKE_CL_64)

@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list