summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-10-07 13:17:09 +0200
committerDavid Robillard <d@drobilla.net>2017-12-16 14:00:56 +0100
commit2895b4fbd8e0d886de4b6a7fec1442ea2ac4c82a (patch)
tree60633192355c153e387184560407a057341f4162 /wscript
parent18e652993fd76bc0e192ffc6dbd3344381429136 (diff)
downloadsratom-2895b4fbd8e0d886de4b6a7fec1442ea2ac4c82a.tar.gz
sratom-2895b4fbd8e0d886de4b6a7fec1442ea2ac4c82a.tar.bz2
sratom-2895b4fbd8e0d886de4b6a7fec1442ea2ac4c82a.zip
Clean up waf options
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 6 insertions, 5 deletions
diff --git a/wscript b/wscript
index 3a8c765..78c0329 100644
--- a/wscript
+++ b/wscript
@@ -18,13 +18,14 @@ VERSION = SRATOM_VERSION # Package version for waf dist
top = '.' # Source directory
out = 'build' # Build directory
-def options(opt):
- opt.load('compiler_c')
- autowaf.set_options(opt, test=True)
+def options(ctx):
+ ctx.load('compiler_c')
+ autowaf.set_options(ctx, test=True)
+ opt = ctx.get_option_group('Configuration options')
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')
def configure(conf):
conf.load('compiler_c')