aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-26 20:15:58 -0500
committerDavid Robillard <d@drobilla.net>2017-12-29 10:56:53 -0500
commit96c608dfb8e26a36aa6e446c2f392e46b84d87d1 (patch)
tree0ef21ea25e3ade69bd16d33043c878a672ff5c2b /wscript
parent8e49670aef7c092fe8deb2ae82fead75d3e585fa (diff)
downloadserd-96c608dfb8e26a36aa6e446c2f392e46b84d87d1.tar.gz
serd-96c608dfb8e26a36aa6e446c2f392e46b84d87d1.tar.bz2
serd-96c608dfb8e26a36aa6e446c2f392e46b84d87d1.zip
Upgrade to waf 2.0.3
Diffstat (limited to 'wscript')
-rw-r--r--wscript15
1 files changed, 8 insertions, 7 deletions
diff --git a/wscript b/wscript
index c07fb5c6..574446c0 100644
--- a/wscript
+++ b/wscript
@@ -34,9 +34,9 @@ def options(ctx):
dest=name.replace('-', '_'), help=desc)
def configure(conf):
- conf.load('compiler_c')
- autowaf.configure(conf)
autowaf.display_header('Serd Configuration')
+ conf.load('compiler_c', cache=True)
+ conf.load('autowaf', cache=True)
conf.env.update({
'BUILD_UTILS': not Options.options.no_utils,
@@ -57,16 +57,17 @@ def configure(conf):
for name, header in {'posix_memalign': 'stdlib.h',
'posix_fadvise': 'fcntl.h',
'fileno': 'stdio.h'}.items():
- conf.check(function_name = name,
- header_name = header,
- define_name = 'HAVE_' + name.upper(),
- defines = ['_POSIX_C_SOURCE=200809L'],
- mandatory = False)
+ autowaf.check_function(conf, 'c', name,
+ header_name = header,
+ define_name = 'HAVE_' + name.upper(),
+ defines = ['_POSIX_C_SOURCE=200809L'],
+ mandatory = False)
autowaf.define(conf, 'SERD_VERSION', SERD_VERSION)
autowaf.set_lib_env(conf, 'serd', SERD_VERSION)
conf.write_config_header('serd_config.h', remove=False)
+ autowaf.display_summary(conf)
autowaf.display_msg(conf, 'Static library', bool(conf.env.BUILD_STATIC))
autowaf.display_msg(conf, 'Shared library', bool(conf.env.BUILD_SHARED))
autowaf.display_msg(conf, 'Utilities', bool(conf.env.BUILD_UTILS))