From f50b54a4625e35bf09b5aef2ff44f57deef9865d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 2 Oct 2008 01:49:02 +0000 Subject: Factor more things into autowaf. Only call autowaf functions once no matter how many sub-projects call them (global counter, barf). Print pretty summary for everything with options, in order so you can see which project caused which check. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@1581 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index a87e05d..1019a0f 100644 --- a/wscript +++ b/wscript @@ -24,9 +24,11 @@ srcdir = '.' blddir = 'build' def set_options(opt): + autowaf.set_options(opt) opt.tool_options('compiler_cxx') def configure(conf): + autowaf.configure(conf) if not conf.env['CXX']: conf.check_tool('compiler_cxx') if not conf.env['HAVE_GLIBMM']: @@ -34,7 +36,12 @@ def configure(conf): if not conf.env['HAVE_GTHREAD']: conf.check_pkg('gthread-2.0', destvar='GTHREAD', vnum='2.16.0', mandatory=True) if not conf.env['HAVE_JACK']: - conf.check_pkg('jack', destvar='JACK', vnum='0.107.0', mandatory=True) + conf.check_pkg('jack', destvar='JACK', vnum='0.107.0', mandatory=False) + + autowaf.print_summary(conf) + print '= Raul Configuration =' + autowaf.display_msg("Jack", str(bool(conf.env['HAVE_JACK'])), 'YELLOW') + print def build(bld): # Headers -- cgit v1.2.1