diff options
author | David Robillard <d@drobilla.net> | 2017-10-07 12:51:41 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-10-07 12:51:41 +0200 |
commit | c25055636aeea0713301e8f584f672ea41aa72d1 (patch) | |
tree | f0c0e8783df6f6010a165f6e03f59c8fb040fe37 /wscript | |
parent | 2c88a44d204c5d53e3ee54189e6335181b6dcd76 (diff) | |
download | serd-c25055636aeea0713301e8f584f672ea41aa72d1.tar.gz serd-c25055636aeea0713301e8f584f672ea41aa72d1.tar.bz2 serd-c25055636aeea0713301e8f584f672ea41aa72d1.zip |
Clean up waf options
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -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) |