summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-10-07 12:52:24 +0200
committerDavid Robillard <d@drobilla.net>2017-12-16 14:00:28 +0100
commitda0059c653382f74a46665302c6263119b3f12e0 (patch)
tree0d9df28b0547c5c1f7a94d767525c2b45a79e939 /wscript
parentc9f2eef3e51d39c8dabdc2189f7d0bdaa22d5fe0 (diff)
downloadsord-da0059c653382f74a46665302c6263119b3f12e0.tar.gz
sord-da0059c653382f74a46665302c6263119b3f12e0.tar.bz2
sord-da0059c653382f74a46665302c6263119b3f12e0.zip
Clean up waf options
Diffstat (limited to 'wscript')
-rw-r--r--wscript19
1 files changed, 10 insertions, 9 deletions
diff --git a/wscript b/wscript
index 3910df5..866854e 100644
--- a/wscript
+++ b/wscript
@@ -20,20 +20,21 @@ VERSION = SORD_VERSION # Package version for waf dist
top = '.' # Source directory
out = 'build' # Build directory
-def options(opt):
- opt.load('compiler_c')
- opt.load('compiler_cxx')
- autowaf.set_options(opt, test=True)
+def options(ctx):
+ ctx.load('compiler_c')
+ ctx.load('compiler_cxx')
+ autowaf.set_options(ctx, test=True)
+ opt = ctx.get_option_group('Configuration options')
opt.add_option('--no-utils', action='store_true', dest='no_utils',
- help='Do not build command line utilities')
+ help='do not build command line utilities')
opt.add_option('--static', action='store_true', dest='static',
- help='Build static library')
+ help='build static library')
opt.add_option('--no-shared', action='store_true', dest='no_shared',
- help='Do not build shared library')
+ help='do not build shared library')
opt.add_option('--static-progs', action='store_true', dest='static_progs',
- help='Build programs as static binaries')
+ help='build programs as static binaries')
opt.add_option('--dump', type='string', default='', dest='dump',
- help='Dump debugging output (iter, search, write, all)')
+ help='dump debugging output (iter, search, write, all)')
def configure(conf):
conf.load('compiler_c')