Browse Source

wscript: Adding the installation of systemd unit/configuration file to a configure option, that is off by default.

tags/v1.9.13
David Runge 6 years ago
parent
commit
4eda614f72
No known key found for this signature in database GPG Key ID: 54C28F4FF5A1A949
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      wscript

+ 5
- 2
wscript View File

@@ -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']:


Loading…
Cancel
Save