From c25055636aeea0713301e8f584f672ea41aa72d1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 7 Oct 2017 12:51:41 +0200 Subject: Clean up waf options --- wscript | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 097718ed..522a7649 100644 --- a/wscript +++ b/wscript @@ -18,16 +18,17 @@ VERSION = SERD_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) - flags = {'no-utils': 'Do not build command line utilities', - 'stack-check': 'Include runtime stack sanity checks', - 'static': 'Build static library', - 'no-shared': 'Do not build shared library', - 'static-progs': 'Build programs as static binaries', - 'largefile': 'Build with large file support on 32-bit systems', - 'no-posix': 'Do not use POSIX functions, even if present'} +def options(ctx): + ctx.load('compiler_c') + autowaf.set_options(ctx, test=True) + opt = ctx.get_option_group('Configuration options') + flags = {'no-utils': 'do not build command line utilities', + 'stack-check': 'include runtime stack sanity checks', + 'static': 'build static library', + 'no-shared': 'do not build shared library', + 'static-progs': 'build programs as static binaries', + 'largefile': 'build with large file support on 32-bit systems', + 'no-posix': 'do not use POSIX functions, even if present'} for name, desc in flags.items(): opt.add_option('--' + name, action='store_true', dest=name.replace('-', '_'), help=desc) -- cgit v1.2.1