From ddd073f0a1c47e5dbba2efd04617862e49171bed Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 25 Feb 2011 07:28:10 +0000 Subject: 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 --- wscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 007a9207..f44ba1ad 100644 --- a/wscript +++ b/wscript @@ -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) -- cgit v1.2.1