summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-19 18:43:19 +0000
committerDavid Robillard <d@drobilla.net>2011-01-19 18:43:19 +0000
commit4511d957ee883ee11bff70cade91715404fe1c2c (patch)
tree670496f04f3519311a01f6f90a9cf6e078655cd9 /wscript
parent797b0ff60ee3e4708ef9cde602d5ec40a1f0473c (diff)
downloadlilv-4511d957ee883ee11bff70cade91715404fe1c2c.tar.gz
lilv-4511d957ee883ee11bff70cade91715404fe1c2c.tar.bz2
lilv-4511d957ee883ee11bff70cade91715404fe1c2c.zip
Add ./waf configure --no-utils option to avoid building command line utilities.
Support latest autowaf. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2836 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 4 insertions, 2 deletions
diff --git a/wscript b/wscript
index 512efa5..2f5f72b 100644
--- a/wscript
+++ b/wscript
@@ -41,6 +41,8 @@ out = 'build'
def options(opt):
autowaf.set_options(opt)
+ opt.add_option('--no-utils', action='store_true', default=False, dest='no_utils',
+ help="Do not build command line utilities")
opt.add_option('--no-jack', action='store_true', default=False, dest='no_jack',
help="Do not build JACK clients")
opt.add_option('--dyn-manifest', action='store_true', default=False, dest='dyn_manifest',
@@ -75,7 +77,7 @@ def configure(conf):
conf.env['USE_JACK'] = conf.env['HAVE_JACK'] and not Options.options.no_jack
conf.env['BUILD_TESTS'] = Options.options.build_tests
- conf.env['BUILD_UTILS'] = 1
+ conf.env['BUILD_UTILS'] = not Options.options.no_utils
conf.env['BASH_COMPLETION'] = Options.options.bash_completion
autowaf.define(conf, 'SLV2_DEFAULT_LV2_PATH', Options.options.default_lv2_path)
@@ -193,4 +195,4 @@ def build(bld):
bld.add_post_fun(autowaf.run_ldconfig)
def test(ctx):
- autowaf.run_tests(ctx, APPNAME, tests.split())
+ autowaf.run_tests(ctx, APPNAME, tests.split(), dirs=['./src','./test'])