diff options
author | David Robillard <d@drobilla.net> | 2008-11-30 20:58:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-11-30 20:58:58 +0000 |
commit | a81d373bfc93e77ef9759bbf522241e84378c09a (patch) | |
tree | 6e656f593dcd7e9cb72fd92def1da678ff258711 /wscript | |
parent | 790fdebd3f12eeb5a46f9be9d2d16f7737034db9 (diff) | |
download | lilv-a81d373bfc93e77ef9759bbf522241e84378c09a.tar.gz lilv-a81d373bfc93e77ef9759bbf522241e84378c09a.tar.bz2 lilv-a81d373bfc93e77ef9759bbf522241e84378c09a.zip |
Add --no-jack option.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1833 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,5 +1,6 @@ #!/usr/bin/env python import autowaf +import Options # Version of this package (even if built as a child) SLV2_VERSION = '0.6.2' @@ -36,6 +37,8 @@ blddir = 'build' def set_options(opt): autowaf.set_options(opt) + opt.add_option('--no-jack', action='store_true', default=False, dest='no_jack', + help="Do not build JACK clients") def configure(conf): autowaf.configure(conf) @@ -49,7 +52,8 @@ def configure(conf): autowaf.print_summary(conf) autowaf.display_header('SLV2 Configuration') - autowaf.display_msg(conf, "Jack clients", str(conf.env['HAVE_JACK'] == 1)) + autowaf.display_msg(conf, "Jack clients", + str(conf.env['HAVE_JACK'] == 1 and not Options.options.no_jack)) print def build(bld): @@ -104,7 +108,7 @@ def build(bld): hosts/lv2_jack_host hosts/lv2_simple_jack_host ''' - if bld.env['HAVE_JACK'] == 1: + if bld.env['HAVE_JACK'] == 1 and not Options.options.no_jack: for i in hosts.split(): obj = bld.new_task_gen('cc', 'program') obj.source = i + '.c' |