summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-07-03 22:22:04 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-07-03 22:22:04 +0000
commite0f287045eff5b6f0581b741a3005f54d6578737 (patch)
tree5efa3dd113fe207e5d3813bd23f95def0106f3f6 /SConstruct
parent9decb3e027b402438471f357d5a17f4c5190a039 (diff)
set powermate env keys in SConstruct, so that POWERMATE is set even if SURFACES=false
git-svn-id: svn://localhost/ardour2/trunk@2101 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct16
1 files changed, 16 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 93be1e9b47..d88e8989cb 100644
--- a/SConstruct
+++ b/SConstruct
@@ -727,6 +727,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 ()
#
@@ -1002,8 +1008,18 @@ 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' ]
+else:
+ env['POWERMATE'] = 0
+ env['TRANZPORT'] = 0
opts.Save('scache.conf', env)
Help(opts.GenerateHelpText(env))