diff options
author | David Robillard <d@drobilla.net> | 2018-09-15 11:45:07 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-15 11:45:07 +0200 |
commit | 423a9894c58b1ee08e00b8853a61d2745e74d37a (patch) | |
tree | 658bd4d95abc27fc90b853535577314e3ca9e9e1 | |
parent | 9f0097662a0047984c379a8118e60851cf01b65b (diff) | |
download | pugl-423a9894c58b1ee08e00b8853a61d2745e74d37a.tar.gz pugl-423a9894c58b1ee08e00b8853a61d2745e74d37a.tar.bz2 pugl-423a9894c58b1ee08e00b8853a61d2745e74d37a.zip |
Print nicer configuration summary
-rw-r--r-- | wscript | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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 |