[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39012] trunk/blender/SConstruct: patch from jensverwiebe to disable ndof if header is not found.

Campbell Barton ideasman42 at gmail.com
Thu Aug 4 10:46:18 CEST 2011


Revision: 39012
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39012
Author:   campbellbarton
Date:     2011-08-04 08:46:17 +0000 (Thu, 04 Aug 2011)
Log Message:
-----------
patch from jensverwiebe to disable ndof if header is not found.

Modified Paths:
--------------
    trunk/blender/SConstruct

Modified: trunk/blender/SConstruct
===================================================================
--- trunk/blender/SConstruct	2011-08-04 07:31:23 UTC (rev 39011)
+++ trunk/blender/SConstruct	2011-08-04 08:46:17 UTC (rev 39012)
@@ -253,7 +253,16 @@
         if k not in B.arguments:
             env[k] = v
 
+# detect presence of 3D_CONNEXION_CLIENT_LIBRARY for OSX
+if env['OURPLATFORM']=='darwin':
+    envi = Environment()
+    conf = Configure(envi)
+    if not conf.CheckCHeader('ConnexionClientAPI.h'): # CheckCXXHeader if it is c++ !
+        print "3D_CONNEXION_CLIENT_LIBRARY not found, disabling WITH_BF_3DMOUSE" # avoid build errors !
+        env['WITH_BF_3DMOUSE'] = 0
+    envi = conf.Finish()
 
+
 if env['WITH_BF_OPENMP'] == 1:
         if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
                 env['CCFLAGS'].append('/openmp')




More information about the Bf-blender-cvs mailing list