summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorSampo Savolainen <v2@iki.fi>2008-11-01 20:10:56 +0000
committerSampo Savolainen <v2@iki.fi>2008-11-01 20:10:56 +0000
commit43d868cde8bea9932fc828dfd2461b0296bb9135 (patch)
tree0596dd4549c56eb78ba6d6fccb8fa5cf41f5ba13 /SConstruct
parent3043b68bfbcd70ba13d132c8b833cdf3ba199266 (diff)
Wiimote control surface. Bind one wiimote by pressing 1+2 after the surface module is loaded. You need to bind every time you start ardour:
A Toggle play/stop D-pad: Up/Down: scroll tracks in the editor Left/Right: move playhead (nudge) +/- Zoom 1 Arm selected track(s) for recording 2 Toggle recording As an extra, if you press down B and then A to stopp recording pass, Ardour scraps the recorded audio. This is a work in progress. Please test. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4079 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct14
1 files changed, 14 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index dd91ed2f19..d841472956 100644
--- a/SConstruct
+++ b/SConstruct
@@ -50,6 +50,7 @@ opts.AddOptions(
BoolOption('NLS', 'Set to turn on i18n support', 1),
PathOption('PREFIX', 'Set the install "prefix"', '/usr/local'),
BoolOption('SURFACES', 'Build support for control surfaces', 1),
+ BoolOption('WIIMOTE', 'Build the wiimote control surface', 0),
BoolOption('SYSLIBS', 'USE AT YOUR OWN RISK: CANCELS ALL SUPPORT FROM ARDOUR AUTHORS: Use existing system versions of various libraries instead of internal ones', 0),
BoolOption('UNIVERSAL', 'Compile as universal binary. Requires that external libraries are already universal.', 0),
BoolOption('VERSIONED', 'Add revision information to ardour/gtk executable name inside the build directory', 0),
@@ -578,6 +579,12 @@ if env['LV2']:
else:
print 'LV2 support is not enabled. Build with \'scons LV2=1\' to enable.'
+if env['WIIMOTE']:
+ wiimote_surface = [ 'libs/surfaces/wiimote' ]
+else:
+ wiimote_surface = [ ]
+ print 'WIIMOTE support not enabled. Build with \'scons WIIMOTE=1\' to enale.'
+
libraries['jack'] = LibraryInfo()
libraries['jack'].ParseConfig('pkg-config --cflags --libs jack')
@@ -900,6 +907,12 @@ if conf.CheckHeader('linux/input.h'):
else:
have_linux_input = False
+# let's continue checking, check for libcwiid
+if not conf.CheckHeader('cwiid.h'):
+ if env['WIIMOTE']:
+ print 'WIIIMOTE configured but you are missing libcwiid!'
+ sys.exit(1)
+
libraries['usb'] = conf.Finish ()
#
@@ -1196,6 +1209,7 @@ surface_subdirs = [ 'libs/surfaces/control_protocol',
'libs/surfaces/mackie',
'libs/surfaces/powermate'
]
+surface_subdirs += wiimote_surface
if env['SURFACES']:
if have_libusb: