diff options
author | David Robillard <d@drobilla.net> | 2011-02-25 07:28:10 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-25 07:28:10 +0000 |
commit | ddd073f0a1c47e5dbba2efd04617862e49171bed (patch) | |
tree | a3059f6da6da72fb17b6e47b059fad8e8ab4008a /wscript | |
parent | 7cab293e741784109f9e0a6a3893d3c6629da999 (diff) | |
download | serd-ddd073f0a1c47e5dbba2efd04617862e49171bed.tar.gz serd-ddd073f0a1c47e5dbba2efd04617862e49171bed.tar.bz2 serd-ddd073f0a1c47e5dbba2efd04617862e49171bed.zip |
Abstract common read state tracking code (SerdReadState) to make user code less tedious.
git-svn-id: http://svn.drobilla.net/serd/trunk@110 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -32,6 +32,8 @@ def options(opt): help="Do not build command line utilities") opt.add_option('--test', action='store_true', default=False, dest='build_tests', help="Build unit tests") + opt.add_option('--stack-check', action='store_true', default=False, dest='stack_check', + help="Include runtime stack sanity checks") def configure(conf): conf.line_just = max(conf.line_just, 59) @@ -44,6 +46,11 @@ def configure(conf): conf.env['BUILD_TESTS'] = Options.options.build_tests conf.env['BUILD_UTILS'] = not Options.options.no_utils + if Options.options.stack_check: + autowaf.define(conf, 'SERD_STACK_CHECK', SERD_VERSION) + + conf.env['BUILD_TESTS'] = Options.options.build_tests + autowaf.define(conf, 'SERD_VERSION', SERD_VERSION) conf.write_config_header('serd-config.h', remove=False) |