summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJesse Chappell <jesse@essej.net>2007-07-03 02:16:55 +0000
committerJesse Chappell <jesse@essej.net>2007-07-03 02:16:55 +0000
commit3239d42bdfa5278bce3b9eeab3cb3f20426cd685 (patch)
treea34c380fab5ac6a5d85333b6a5ba91acda36bc70 /SConstruct
parentb5c8f14271f55a1bef078c6eeeee1fd32f6cd305 (diff)
updated scons to make powermate optional and defaults to off when not on linux
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2096 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct13
1 files changed, 13 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index ad24a75ec0..c2db8547d5 100644
--- a/SConstruct
+++ b/SConstruct
@@ -726,6 +726,12 @@ if conf.CheckLib ('usb', 'usb_interrupt_write'):
else:
have_libusb = False
+# check for linux/input.h while we're at it for powermate
+if conf.CheckHeader('linux/input.h'):
+ have_linux_input = True
+else:
+ have_linux_input = False
+
libraries['usb'] = conf.Finish ()
#
@@ -996,6 +1002,13 @@ if env['SURFACES']:
else:
env['TRANZPORT'] = 0
print 'Disabled building Tranzport code because libusb could not be found'
+
+ if have_linux_input:
+ env['POWERMATE'] = 1
+ else:
+ env['POWERMATE'] = 0
+ print 'Disabled building Powermate code because linux/input.h could not be found'
+
if os.access ('libs/surfaces/sony9pin', os.F_OK):
surface_subdirs += [ 'libs/surfaces/sony9pin' ]