updated build script for SpaceNav on Linux -- was foolishly relying on user-config.py
authorMike Erwin <significant.bit@gmail.com>
Tue, 28 Jun 2011 21:20:47 +0000 (21:20 +0000)
committerMike Erwin <significant.bit@gmail.com>
Tue, 28 Jun 2011 21:20:47 +0000 (21:20 +0000)
build_files/scons/config/linux2-config.py

index bc2917055fb68104f07fedfebc06eb9ade5a4d2c..bf87889751c5199b743abc826e75e3904b5d25f1 100644 (file)
@@ -192,6 +192,10 @@ WITH_BF_OPENMP = True
 WITH_BF_RAYOPTIMIZATION = True
 BF_RAYOPTIMIZATION_SSE_FLAGS = ['-msse','-pthread']
 
+#SpaceNavigator and friends
+WITH_BF_NDOF = True
+BF_NDOF_LIB = 'spnav'
+
 ##
 CC = 'gcc'
 CXX = 'g++'
@@ -223,6 +227,8 @@ CXX_WARN = ['-Wno-invalid-offsetof', '-Wno-sign-compare']
 ##FIX_STUBS_WARNINGS = -Wno-unused
 
 LLIBS = ['util', 'c', 'm', 'dl', 'pthread', 'stdc++']
+if WITH_BF_NDOF:
+       LLIBS = LLIBS + [BF_NDOF_LIB];
 ##LOPTS = --dynamic
 ##DYNLDFLAGS = -shared $(LDFLAGS)