aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-15 11:45:07 +0200
committerDavid Robillard <d@drobilla.net>2018-09-15 11:45:07 +0200
commit423a9894c58b1ee08e00b8853a61d2745e74d37a (patch)
tree658bd4d95abc27fc90b853535577314e3ca9e9e1 /wscript
parent9f0097662a0047984c379a8118e60851cf01b65b (diff)
downloadpugl-423a9894c58b1ee08e00b8853a61d2745e74d37a.tar.gz
pugl-423a9894c58b1ee08e00b8853a61d2745e74d37a.tar.bz2
pugl-423a9894c58b1ee08e00b8853a61d2745e74d37a.zip
Print nicer configuration summary
Diffstat (limited to 'wscript')
-rw-r--r--wscript13
1 files changed, 7 insertions, 6 deletions
diff --git a/wscript b/wscript
index 8bf7b9a..bdcfbf1 100644
--- a/wscript
+++ b/wscript
@@ -69,12 +69,13 @@ def configure(conf):
autowaf.set_lib_env(conf, 'pugl', PUGL_VERSION)
conf.write_config_header('pugl_config.h', remove=False)
- autowaf.display_msg(conf, "OpenGL support", conf.is_defined('HAVE_GL'))
- autowaf.display_msg(conf, "Cairo support", conf.is_defined('HAVE_CAIRO'))
- autowaf.display_msg(conf, "Verbose console output", conf.is_defined('PUGL_VERBOSE'))
- autowaf.display_msg(conf, "Static library", str(conf.env['BUILD_STATIC']))
- autowaf.display_msg(conf, "Unit tests", str(conf.env['BUILD_TESTS']))
- print('')
+ autowaf.display_summary(
+ conf,
+ {"Build static library": bool(conf.env['BUILD_STATIC']),
+ "Build shared library": bool(conf.env['BUILD_SHARED']),
+ "OpenGL support": conf.is_defined('HAVE_GL'),
+ "Cairo support": conf.is_defined('HAVE_CAIRO'),
+ "Verbose console output": conf.is_defined('PUGL_VERBOSE')})
def build(bld):
# C Headers