aboutsummaryrefslogtreecommitdiffstats
path: root/waflib/extras
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-16 14:33:48 +0200
committerDavid Robillard <d@drobilla.net>2018-09-16 14:33:48 +0200
commitb1824007fb21d9074006023174c34ea911dc7840 (patch)
treedf93d7bc5db5ce3d5340add4f2f2c5d2d174acb8 /waflib/extras
parent13dc3f28a65643633b2c7ecd870c66361698cd0d (diff)
parentbf547165c0273830c6e5611f71e3c19353f6ba5f (diff)
downloadserd-b1824007fb21d9074006023174c34ea911dc7840.tar.gz
serd-b1824007fb21d9074006023174c34ea911dc7840.tar.bz2
serd-b1824007fb21d9074006023174c34ea911dc7840.zip
Merge commit 'bf547165c0273830c6e5611f71e3c19353f6ba5f'
Diffstat (limited to 'waflib/extras')
-rw-r--r--waflib/extras/autowaf.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/waflib/extras/autowaf.py b/waflib/extras/autowaf.py
index a4a06ba8..be3bfe29 100644
--- a/waflib/extras/autowaf.py
+++ b/waflib/extras/autowaf.py
@@ -60,13 +60,13 @@ def set_options(opt, debug_by_default=False, test=False):
opts.add_option('--optimize', action='store_false', default=True,
dest='debug', help="build optimized binaries")
else:
- opts.add_option('--debug', action='store_true', default=False,
+ opts.add_option('-d', '--debug', action='store_true', default=False,
dest='debug', help="build debuggable binaries")
opts.add_option('--pardebug', action='store_true', default=False,
dest='pardebug',
help="build debug libraries with D suffix")
- opts.add_option('--strict', action='store_true', default=False,
+ opts.add_option('-s', '--strict', action='store_true', default=False,
dest='strict',
help="use strict compiler flags and show all warnings")
opts.add_option('--ultra-strict', action='store_true', default=False,
@@ -78,12 +78,12 @@ def set_options(opt, debug_by_default=False, test=False):
# Test options
if test:
test_opts = opt.add_option_group('Test options', '')
- opts.add_option('--test', action='store_true', dest='build_tests',
+ opts.add_option('-T', '--test', action='store_true', dest='build_tests',
help='build unit tests')
opts.add_option('--no-coverage', action='store_true',
dest='no_coverage',
help='do not instrument code for test coverage')
- test_opts.add_option('--test-wrapper', type='string',
+ test_opts.add_option('--wrapper', type='string',
dest='test_wrapper',
help='command prefix for tests (e.g. valgrind)')
test_opts.add_option('--verbose-tests', action='store_true',
@@ -441,6 +441,8 @@ def set_lib_env(conf, name, version):
conf.env['LIBPATH_' + NAME] = [conf.env.LIBDIR]
conf.env['LIB_' + NAME] = [lib_name]
+ conf.define(NAME + '_VERSION', version)
+
def set_line_just(conf, width):
global line_just
line_just = max(line_just, width)