Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-08-04 12:46:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-04 12:46:17 +0400
commitaf786843b05ce434d46c2036643aefb7bbaa92b6 (patch)
tree5645f40ee54485cfd67ee977a7a3128e7b3abf69 /SConstruct
parenta6fed14da4569380cecac3154482d0e6e54d1433 (diff)
patch from jensverwiebe to disable ndof if header is not found.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 9 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 529f6daeef1..4f920190276 100644
--- a/SConstruct
+++ b/SConstruct
@@ -253,6 +253,15 @@ if 'blenderlite' in B.targets:
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'):