aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-26 14:41:02 -0500
committerDavid Robillard <d@drobilla.net>2017-12-29 15:03:11 -0500
commit4c6ac01736bad6a0a25802ce03c012d32cba5024 (patch)
tree01e6689235d6a4412ff9272ec91e1b613fda8089 /wscript
parented8fb700c7f92772701db649cff38a766bcc75b0 (diff)
downloadjalv-4c6ac01736bad6a0a25802ce03c012d32cba5024.tar.gz
jalv-4c6ac01736bad6a0a25802ce03c012d32cba5024.tar.bz2
jalv-4c6ac01736bad6a0a25802ce03c012d32cba5024.zip
Upgrade to waf 2.0.3
Diffstat (limited to 'wscript')
-rw-r--r--wscript62
1 files changed, 32 insertions, 30 deletions
diff --git a/wscript b/wscript
index ef3101f..d4d34cb 100644
--- a/wscript
+++ b/wscript
@@ -44,11 +44,11 @@ def options(ctx):
help='do not build Qt5 GUI')
def configure(conf):
- conf.line_just = 52
- conf.load('compiler_c')
- conf.load('compiler_cxx')
- autowaf.configure(conf)
autowaf.display_header('Jalv Configuration')
+ autowaf.set_line_just(conf, 45)
+ conf.load('compiler_c', cache=True)
+ conf.load('compiler_cxx', cache=True)
+ conf.load('autowaf', cache=True)
if conf.check(cflags=["-std=c11"]):
conf.env.append_unique('CFLAGS', ['-std=c11'])
@@ -98,37 +98,38 @@ def configure(conf):
conf.find_program('moc', var='MOC5')
if conf.env.HAVE_JACK:
- conf.check(function_name='jack_port_type_get_buffer_size',
- header_name='jack/jack.h',
- define_name='HAVE_JACK_PORT_TYPE_GET_BUFFER_SIZE',
- uselib='JACK',
- mandatory=False)
-
- conf.check(function_name='jack_set_property',
- header_name='jack/metadata.h',
- define_name='HAVE_JACK_METADATA',
- uselib='JACK',
- mandatory=False)
+ autowaf.check_function(
+ conf, 'c', 'jack_port_type_get_buffer_size',
+ header_name = 'jack/jack.h',
+ define_name = 'HAVE_JACK_PORT_TYPE_GET_BUFFER_SIZE',
+ uselib = 'JACK',
+ mandatory = False)
+
+ autowaf.check_function(conf, 'c', 'jack_set_property',
+ header_name = 'jack/metadata.h',
+ define_name = 'HAVE_JACK_METADATA',
+ uselib = 'JACK',
+ mandatory = False)
defines = ['_POSIX_C_SOURCE=200809L']
- conf.check(function_name='isatty',
- header_name='unistd.h',
- defines=defines,
- define_name='HAVE_ISATTY',
- mandatory=False)
+ autowaf.check_function(conf, 'c', 'isatty',
+ header_name = 'unistd.h',
+ defines = defines,
+ define_name = 'HAVE_ISATTY',
+ mandatory = False)
- conf.check(function_name='fileno',
- header_name='stdio.h',
- defines=defines,
- define_name='HAVE_FILENO',
- mandatory=False)
+ autowaf.check_function(conf, 'c', 'fileno',
+ header_name = 'stdio.h',
+ defines = defines,
+ define_name = 'HAVE_FILENO',
+ mandatory = False)
- conf.check(function_name='mlock',
- header_name='sys/mman.h',
- defines=defines,
- define_name='HAVE_MLOCK',
- mandatory=False)
+ autowaf.check_function(conf, 'c', 'mlock',
+ header_name = 'sys/mman.h',
+ defines = defines,
+ define_name = 'HAVE_MLOCK',
+ mandatory = False)
if conf.is_defined('HAVE_ISATTY') and conf.is_defined('HAVE_FILENO'):
autowaf.define(conf, 'JALV_WITH_COLOR', 1)
@@ -141,6 +142,7 @@ def configure(conf):
conf.write_config_header('jalv_config.h', remove=False)
+ autowaf.display_summary(conf)
autowaf.display_msg(conf, "Backend", "Jack" if conf.env.HAVE_JACK else "PortAudio")
if conf.env.HAVE_JACK:
autowaf.display_msg(conf, "Jack metadata support",