summaryrefslogtreecommitdiff
path: root/libs/surfaces/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-01-07 18:28:09 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2013-01-07 18:28:09 +0000
commit02092679808718c993e741f7328a33888ddc294c (patch)
tree79548571062cfcb555886b42860321e2bad45636 /libs/surfaces/wscript
parent6e0fc35806a99a91a09980e26a4d53b9d5331657 (diff)
reinstate wiimote support, thanks to work by jannis pohlmann
git-svn-id: svn://localhost/ardour2/branches/3.0@13796 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/wscript')
-rw-r--r--libs/surfaces/wscript20
1 files changed, 10 insertions, 10 deletions
diff --git a/libs/surfaces/wscript b/libs/surfaces/wscript
index 57770340b8..20ad07d60f 100644
--- a/libs/surfaces/wscript
+++ b/libs/surfaces/wscript
@@ -51,16 +51,16 @@ def configure(conf):
conf.check_cc (header_name='linux/input.h', define_name='BUILD_POWERMATE',mandatory=False)
autowaf.check_pkg (conf, 'liblo', mandatory=False, uselib_store="LO", atleast_version="0.24")
- if Options.options.wiimote:
- conf.check_cc (header_name='cwiid.h', define_name='HAVE_CWIID_H')
- if not conf.is_defined('HAVE_CWIID_H'):
- print('WIIMOTE configured but you are missing libcwiid!')
- sys.exit(1)
- conf.check_cc (header_name='bluetooth/bluetooth.h', define_name='HAVE_BLUETOOTH_H')
- if not conf.is_defined('HAVE_BLUETOOTH_H'):
- print('WIIMOTE configured but you are missing the libbluetooth headers needed to compile wiimote support!')
- sys.exit(1)
- conf.define ('BUILD_WIIMOTE', 1)
+ conf.check_cc (header_name='cwiid.h', define_name='HAVE_CWIID_H',mandatory=False)
+ if conf.is_defined('HAVE_CWIID_H'):
+ conf.check_cc (header_name='bluetooth/bluetooth.h', define_name='HAVE_BLUETOOTH_H',mandatory=False)
+ if conf.is_defined('HAVE_BLUETOOTH_H'):
+ autowaf.check_pkg(conf, 'cwiid', uselib_store='CWIID', atleast_version='0.6.00')
+ conf.define ('BUILD_WIIMOTE', 1)
+ else:
+ print('You are missing the libbluetooth headers needed to compile wiimote support')
+ else:
+ print('You are missing the cwiid headers needed to compile wiimote support')
def build(bld):
bld.recurse('control_protocol')