diff options
author | David Runge <dave@sleepmap.de> | 2019-05-30 22:12:44 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2019-05-30 22:12:44 +0200 |
commit | 4eda614f72fb2c2072f78edf16a5f80cacdc757e (patch) | |
tree | b9e104e60ccee287f67caa23f793a6c1eacacf08 /wscript | |
parent | bd0b2ce5846204d4190502cabde1fa5c04c02088 (diff) | |
download | jack2-4eda614f72fb2c2072f78edf16a5f80cacdc757e.tar.gz |
wscript: Adding the installation of systemd unit/configuration file to a configure option, that is off by default.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -75,6 +75,7 @@ def options(opt): opt.add_option('--profile', action='store_true', default=False, help='Build with engine profiling') opt.add_option('--clients', default=64, type='int', dest='clients', help='Maximum number of JACK clients') opt.add_option('--ports-per-application', default=768, type='int', dest='application_ports', help='Maximum number of ports per application') + opt.add_option('--systemd', action='store_true', default=False, help='Install systemd units.') opt.set_auto_options_define('HAVE_%s') opt.set_auto_options_style('yesno_and_hack') @@ -266,7 +267,8 @@ def configure(conf): if conf.env['BUILD_JACKDBUS'] != True: conf.fatal('jackdbus was explicitly requested but cannot be built') if conf.env['IS_LINUX']: - conf.recurse('systemd') + if Options.options.systemd: + conf.recurse('systemd') conf.recurse('example-clients') @@ -771,7 +773,8 @@ def build(bld): bld.recurse('example-clients') if bld.env['IS_LINUX']: bld.recurse('man') - bld.recurse('systemd') + if Options.options.systemd: + bld.recurse('systemd') if not bld.env['IS_WINDOWS']: bld.recurse('tests') if bld.env['BUILD_JACKDBUS']: |