summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-19 03:49:52 +0000
committerDavid Robillard <d@drobilla.net>2008-01-19 03:49:52 +0000
commit4ca1fe7993adf63ea3f35958f63dd20ee546e7ae (patch)
treef773e6cf00e08a8260c2e2b28b8e16e28b39b887 /SConstruct
parentf80fad313a21228f31201279cccaf555796c7eec (diff)
Merge with trunk R2935.
git-svn-id: svn://localhost/ardour2/branches/3.0@2943 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct16
1 files changed, 14 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index cc21831df2..575c530300 100644
--- a/SConstruct
+++ b/SConstruct
@@ -46,6 +46,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('LV2', 'Compile with support for LV2 (if slv2 is available)', 1),
BoolOption('GPROFILE', 'Compile with support for gprofile (Developers only)', 0),
BoolOption('TRANZPORT', 'Compile with support for Frontier Designs (if libusb is available)', 1)
)
@@ -403,7 +404,6 @@ else:
if os.path.isfile('.personal_use_only'):
os.remove('.personal_use_only')
-
####################
# push environment
####################
@@ -527,6 +527,18 @@ if env['FFT_ANALYSIS']:
print ('FFT Analysis cannot be compiled without the FFTW3 headers, which do not seem to be installed')
sys.exit (1)
conf.Finish()
+
+if env['LV2']:
+ conf = env.Configure(custom_tests = { 'CheckPKGExists' : CheckPKGExists })
+
+ if conf.CheckPKGExists ('\"slv2 >= 0.4.4\"'):
+ libraries['slv2'] = LibraryInfo()
+ libraries['slv2'].ParseConfig('pkg-config --cflags --libs slv2')
+ else:
+ print 'Building Ardour with LV2 support requires SLV2 >= 0.4.4'
+ print 'WARNING: SLV2 not found, or too old. Ardour will be built without LV2 support.'
+ env['LV2'] = 0
+ conf.Finish()
libraries['jack'] = LibraryInfo()
libraries['jack'].ParseConfig('pkg-config --cflags --libs jack')
@@ -942,7 +954,7 @@ if env['SYSLIBS']:
print '%s >= %s not found.' %(pkg, version)
DependenciesRequiredMessage()
Exit(1)
-
+
env = conf.Finish()
libraries['sigc2'] = LibraryInfo()