Add --no-lrdf configure option.
authorDavid Robillard <d@drobilla.net>
Tue, 23 Dec 2014 23:44:33 +0000 (18:44 -0500)
committerDavid Robillard <d@drobilla.net>
Wed, 24 Dec 2014 18:00:32 +0000 (13:00 -0500)
libs/ardour/wscript
wscript

index 2b4cf453109b059439c93e28179dbdaaa5d78b5f..76d39bd0c3206df896e0cc88eb9f71924895aee4 100644 (file)
@@ -254,8 +254,9 @@ def configure(conf):
                       atleast_version='0.4.0', mandatory=False)
     autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
     if Options.options.dist_target != 'mingw':
-        autowaf.check_pkg(conf, 'lrdf', uselib_store='LRDF',
-                          atleast_version='0.4.0')
+        if not Options.options.no_lrdf:
+            autowaf.check_pkg(conf, 'lrdf', uselib_store='LRDF',
+                              atleast_version='0.4.0')
         autowaf.check_pkg(conf, 'aubio', uselib_store='AUBIO',
                           atleast_version='0.3.2')
     autowaf.check_pkg(conf, 'samplerate', uselib_store='SAMPLERATE',
diff --git a/wscript b/wscript
index 96b21b8a0abab4c50b681daff67643192483478c..4bd7776632a09bbccefba054b6af222224b964f7 100644 (file)
--- a/wscript
+++ b/wscript
@@ -594,6 +594,8 @@ def options(opt):
                     help='Compile with support for linuxVST plugins')
     opt.add_option('--no-lxvst', action='store_false', dest='lxvst',
                     help='Compile without support for linuxVST plugins')
+    opt.add_option('--no-lrdf', action='store_true', dest='no_lrdf',
+                    help='Compile without support for LRDF LADSPA data even if present')
     opt.add_option('--nls', action='store_true', default=True, dest='nls',
                     help='Enable i18n (native language support) (default)')
     opt.add_option('--no-nls', action='store_false', dest='nls')