diff options
author | David Robillard <d@drobilla.net> | 2008-10-02 19:16:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-10-02 19:16:36 +0000 |
commit | ea8a26433b83f62e433c0cfedfe79168c545cff6 (patch) | |
tree | e608952dfa30e64add1373872e6605aa457167e2 /wscript | |
parent | c934ba7f40138d3fc5af3846ddd3181f04e0f2cb (diff) | |
download | patchage-ea8a26433b83f62e433c0cfedfe79168c545cff6.tar.gz patchage-ea8a26433b83f62e433c0cfedfe79168c545cff6.tar.bz2 patchage-ea8a26433b83f62e433c0cfedfe79168c545cff6.zip |
Use libjack by default unless --jack-dbus is passed (D-Bus present doesn't mean Jack D-Bus is...).
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@1593 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -23,8 +23,8 @@ def set_options(opt): help="Install name. [Default: '" + APPNAME + "']") opt.add_option('--app-human-name', type='string', default=APP_HUMAN_NAME, dest='app_human_name', help="Human name for app. [Default: '" + APP_HUMAN_NAME + "']") - opt.add_option('--no-jack-dbus', action='store_true', default=False, dest='no_jack_dbus', - help="Do not build Jack via D-Bus support") + opt.add_option('--jack-dbus', action='store_true', default=False, dest='jack_dbus', + help="Use Jack via D-Bus") opt.add_option('--no-lash', action='store_true', default=False, dest='no_lash', help="Do not build Lash support") opt.add_option('--no-alsa', action='store_true', default=False, dest='no_alsa', @@ -53,13 +53,13 @@ def configure(conf): if not conf.env['HAVE_RAUL']: conf.check_pkg('raul', destvar='RAUL', vnum='0.5.1', mandatory=True) - # Use Jack D-Bus unless --no-jack-dbus (only one jack driver is allowed) - conf.env['HAVE_JACK_DBUS'] = conf.env['HAVE_DBUS'] and not Params.g_options.no_jack_dbus + # Use Jack D-Bus if requested (only one jack driver is allowed) + conf.env['HAVE_JACK_DBUS'] = conf.env['HAVE_DBUS'] and Params.g_options.jack_dbus + if conf.env['HAVE_JACK_DBUS']: - conf.define('HAVE_JACK_DBUS', True) - else: - if not conf.env['HAVE_JACK']: - conf.check_pkg('jack', destvar='JACK', vnum='0.107.0', mandatory=False) + conf.define('HAVE_JACK_DBUS', conf.env['HAVE_JACK_DBUS']) + if not conf.env['HAVE_JACK_DBUS'] and not conf.env['HAVE_JACK']: + conf.check_pkg('jack', destvar='JACK', vnum='0.107.0', mandatory=False) conf.define('USE_LIBJACK', conf.env['HAVE_JACK']) # Use Alsa if present unless --no-alsa |