[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39167] trunk/blender: Mac Compile fix for ndof, by jensverwiebe.
Thomas Dinges
blender at dingto.org
Mon Aug 8 00:48:05 CEST 2011
Revision: 39167
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39167
Author: dingto
Date: 2011-08-07 22:48:04 +0000 (Sun, 07 Aug 2011)
Log Message:
-----------
Mac Compile fix for ndof, by jensverwiebe. Thanks!
Modified Paths:
--------------
trunk/blender/SConstruct
trunk/blender/build_files/scons/config/darwin-config.py
trunk/blender/build_files/scons/tools/btools.py
Modified: trunk/blender/SConstruct
===================================================================
--- trunk/blender/SConstruct 2011-08-07 19:32:22 UTC (rev 39166)
+++ trunk/blender/SConstruct 2011-08-07 22:48:04 UTC (rev 39167)
@@ -265,10 +265,12 @@
# for now, Mac builders must download and install the driver framework from 3Dconnexion
# necessary header file lives here when installed:
# /Library/Frameworks/3DconnexionClient.framework/Versions/Current/Headers/ConnexionClientAPI.h
- if not os.path.exists('/Library/Frameworks/3DconnexionClient.framework'):
+ if env['WITH_BF_3DMOUSE'] == 1 and not os.path.exists('/Library/Frameworks/3DconnexionClient.framework'):
print "3D_CONNEXION_CLIENT_LIBRARY not found, disabling WITH_BF_3DMOUSE" # avoid build errors !
env['WITH_BF_3DMOUSE'] = 0
+ env['FOUND_NDOF_DRIVERS'] = 0
+
if env['WITH_BF_OPENMP'] == 1:
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
env['CCFLAGS'].append('/openmp')
Modified: trunk/blender/build_files/scons/config/darwin-config.py
===================================================================
--- trunk/blender/build_files/scons/config/darwin-config.py 2011-08-07 19:32:22 UTC (rev 39166)
+++ trunk/blender/build_files/scons/config/darwin-config.py 2011-08-07 22:48:04 UTC (rev 39167)
@@ -1,7 +1,9 @@
#
# Note : if you want to alter this file
-# setup a user-config.py in main directory
-# and set the wanted values there
+# copy it as a whole in the upper folder
+# as user-config.py
+# dont create a new file with only some
+# vars changed.
import commands
@@ -313,7 +315,7 @@
else:
PLATFORM_LINKFLAGS = PLATFORM_LINKFLAGS+['-framework','QuickTime']
-if WITH_BF_3DMOUSE:
+if FOUND_NDOF_DRIVERS:
PLATFORM_LINKFLAGS = PLATFORM_LINKFLAGS + ['-weak_framework','3DconnexionClient']
#note to build succesfully on 10.3.9 SDK you need to patch 10.3.9 by adding the SystemStubs.a lib from 10.4
Modified: trunk/blender/build_files/scons/tools/btools.py
===================================================================
--- trunk/blender/build_files/scons/tools/btools.py 2011-08-07 19:32:22 UTC (rev 39166)
+++ trunk/blender/build_files/scons/tools/btools.py 2011-08-07 22:48:04 UTC (rev 39167)
@@ -136,7 +136,7 @@
'BF_NO_ELBEEM',
'WITH_BF_CXX_GUARDEDALLOC',
'WITH_BF_JEMALLOC', 'WITH_BF_STATICJEMALLOC', 'BF_JEMALLOC', 'BF_JEMALLOC_INC', 'BF_JEMALLOC_LIBPATH', 'BF_JEMALLOC_LIB', 'BF_JEMALLOC_LIB_STATIC',
- 'BUILDBOT_BRANCH', 'WITH_BF_3DMOUSE', 'WITH_BF_STATIC3DMOUSE', 'BF_3DMOUSE', 'BF_3DMOUSE_INC', 'BF_3DMOUSE_LIB', 'BF_3DMOUSE_LIBPATH', 'BF_3DMOUSE_LIB_STATIC'
+ 'BUILDBOT_BRANCH', 'WITH_BF_3DMOUSE', 'FOUND_NDOF_DRIVERS', 'WITH_BF_STATIC3DMOUSE', 'BF_3DMOUSE', 'BF_3DMOUSE_INC', 'BF_3DMOUSE_LIB', 'BF_3DMOUSE_LIBPATH', 'BF_3DMOUSE_LIB_STATIC'
]
# Have options here that scons expects to be lists
@@ -439,6 +439,7 @@
(BoolVariable('WITH_BF_NOBLENDER', 'Do not build blender if true', False)),
(BoolVariable('WITH_BF_3DMOUSE', 'Build blender with support of 3D mouses', False)),
+ (BoolVariable('FOUND_NDOF_DRIVERS', 'We detected NDOF libs or framework', False)),
(BoolVariable('WITH_BF_STATIC3DMOUSE', 'Staticly link to 3d mouse library', False)),
('BF_3DMOUSE', '3d mouse library base path', ''),
('BF_3DMOUSE_INC', '3d mouse library include path', ''),
More information about the Bf-blender-cvs
mailing list