From 4ab5bf08d410582ceef1ab30bfbdba9e3e71b7c2 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 26 Feb 2007 23:54:18 +0000 Subject: [PATCH] compile tranzport stuff by default but do not allow compilation if libusb is not found git-svn-id: svn://localhost/ardour2/trunk@1518 d708f5d6-7413-0410-9779-e7cbd77b26cf --- SConstruct | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index d08b1badab..78de60206b 100644 --- a/SConstruct +++ b/SConstruct @@ -44,7 +44,7 @@ opts.AddOptions( 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), BoolOption('VST', 'Compile with support for VST', 0), - BoolOption('TRANZPORT', 'Compile with support for Frontier Designs (if libusb is available)', 0) + BoolOption('TRANZPORT', 'Compile with support for Frontier Designs (if libusb is available)', 1) ) #---------------------------------------------------------------------- @@ -961,7 +961,10 @@ surface_subdirs = [ 'libs/surfaces/control_protocol', 'libs/surfaces/generic_mid if env['SURFACES']: if have_libusb: - env['TRANZPORT'] = 'yes' + env['TRANZPORT'] = 1 + else: + env['TRANZPORT'] = 0 + print 'Disabled building Tranzport code because libusb could not be found' if os.access ('libs/surfaces/sony9pin', os.F_OK): surface_subdirs += [ 'libs/surfaces/sony9pin' ]