summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-17 17:31:04 +0100
committerDavid Robillard <d@drobilla.net>2019-03-17 18:14:27 +0100
commita31cace29a936dfff80c16d25a5c24d783c9611f (patch)
tree9a5aa34548658092800c7f9fc799170500c5e55e /wscript
parent04129c016c366332c89b7068b11b37c0843e20eb (diff)
parent619946be846e7cfa9b79ccd433746f172ccdefc3 (diff)
downloadsratom-a31cace29a936dfff80c16d25a5c24d783c9611f.tar.gz
sratom-a31cace29a936dfff80c16d25a5c24d783c9611f.tar.bz2
sratom-a31cace29a936dfff80c16d25a5c24d783c9611f.zip
Update autowaf and adapt to new API
Diffstat (limited to 'wscript')
-rw-r--r--wscript15
1 files changed, 4 insertions, 11 deletions
diff --git a/wscript b/wscript
index 1f76b90..8eba8dc 100644
--- a/wscript
+++ b/wscript
@@ -21,15 +21,12 @@ out = 'build' # Build directory
def options(ctx):
ctx.load('compiler_c')
- autowaf.set_options(ctx, test=True)
- opt = ctx.get_option_group('Configuration options')
- autowaf.add_flags(
- opt,
+ ctx.add_flags(
+ ctx.configuration_options(),
{'static': 'build static library',
'no-shared': 'do not build shared library'})
def configure(conf):
- autowaf.display_header('Sratom Configuration')
conf.load('compiler_c', cache=True)
conf.load('autowaf', cache=True)
autowaf.set_c_lang(conf, 'c99')
@@ -143,12 +140,8 @@ def build(bld):
if bld.env.DOCS:
bld.add_post_fun(fix_docs)
-def test(ctx):
- autowaf.pre_test(ctx, APPNAME)
- os.environ['PATH'] = '.' + os.pathsep + os.getenv('PATH')
- Logs.pprint('GREEN', '')
- autowaf.run_test(ctx, APPNAME, 'sratom_test', dirs=['./src','./tests'])
- autowaf.post_test(ctx, APPNAME)
+def test(tst):
+ tst(['./sratom_test'])
def lint(ctx):
"checks code for style issues"