summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/ardour/wscript14
-rw-r--r--wscript2
2 files changed, 9 insertions, 7 deletions
diff --git a/libs/ardour/wscript b/libs/ardour/wscript
index fb75d7883a..527b0be985 100644
--- a/libs/ardour/wscript
+++ b/libs/ardour/wscript
@@ -255,11 +255,12 @@ def configure(conf):
atleast_version='0.1.0')
autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP',
atleast_version='2.0')
- autowaf.check_pkg(conf, 'lilv-0', uselib_store='LILV',
- atleast_version='0.0.0', mandatory=False)
- if conf.is_defined('HAVE_LILV'):
- autowaf.check_pkg(conf, 'suil-0', uselib_store='SUIL',
- atleast_version='0.2.0', mandatory=False)
+ if Options.options.lv2:
+ autowaf.check_pkg(conf, 'lilv-0', uselib_store='LILV',
+ atleast_version='0.0.0', mandatory=False)
+ if conf.is_defined('HAVE_LILV'):
+ autowaf.check_pkg(conf, 'suil-0', uselib_store='SUIL',
+ atleast_version='0.2.0', mandatory=False)
# autowaf.check_pkg(conf, 'soundtouch-1.0', uselib_store='SOUNDTOUCH',
# mandatory=False)
autowaf.check_pkg(conf, 'cppunit', uselib_store='CPPUNIT',
@@ -330,7 +331,8 @@ int main(int argc, char **argv) {
if ogg_supported():
conf.define ('HAVE_OGG', 1)
- if conf.is_defined('HAVE_LILV'):
+ if Options.options.lv2 and conf.is_defined('HAVE_LILV'):
+ print "LV2 option was ", Options.options.lv2
conf.define ('LV2_SUPPORT', 1)
conf.write_config_header('libardour-config.h', remove=False)
diff --git a/wscript b/wscript
index 699c77ff1f..a9c14668dc 100644
--- a/wscript
+++ b/wscript
@@ -367,7 +367,7 @@ def options(opt):
help='Include Freesound database lookup')
opt.add_option('--gprofile', action='store_true', default=False, dest='gprofile',
help='Compile for use with gprofile')
- opt.add_option('--lv2', action='store_true', default=False, dest='lv2',
+ opt.add_option('--lv2', action='store', type="int", default=0, dest='lv2',
help='Compile with support for LV2 (if Lilv+Suil is available)')
opt.add_option('--lxvst', action='store_true', default=lxvst_default, dest='lxvst',
help='Compile with support for linuxVST plugins')