aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-25 07:28:10 +0000
committerDavid Robillard <d@drobilla.net>2011-02-25 07:28:10 +0000
commitddd073f0a1c47e5dbba2efd04617862e49171bed (patch)
treea3059f6da6da72fb17b6e47b059fad8e8ab4008a /wscript
parent7cab293e741784109f9e0a6a3893d3c6629da999 (diff)
downloadserd-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--wscript7
1 files changed, 7 insertions, 0 deletions
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)