Only build launchpad surfaces if libUSB is available

This commit is contained in:
Robin Gareus 2025-01-15 16:00:05 +01:00
parent 90755045f5
commit c8f17ee0a5
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -20,10 +20,7 @@ children = [
'us2400',
'launch_control_xl',
'osc',
'console1',
'launchpad_pro',
'launchpad_x',
'launchkey_4'
'console1'
]
def options(opt):
@ -37,6 +34,9 @@ def configure(conf):
if conf.is_defined('HAVE_USB'):
children += [ 'push2' ]
children += [ 'contourdesign' ]
children += [ 'launchpad_pro' ]
children += [ 'launchpad_x' ]
children += [ 'launchpad_4' ]
else:
print ('You are missing the libusb-1.0 development package needed to compile Push2 and ContourDesign support')