From 2895b4fbd8e0d886de4b6a7fec1442ea2ac4c82a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 7 Oct 2017 13:17:09 +0200 Subject: Clean up waf options --- wscript | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'wscript') 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') -- cgit v1.2.1