summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
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' ]