From f6b7b6c09aed60217f32a99b6a35b13fa1f43f7e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 26 Dec 2017 14:41:02 -0500 Subject: Upgrade to waf 2.0.3 --- wscript | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 8c1c013..76f3590 100644 --- a/wscript +++ b/wscript @@ -34,10 +34,10 @@ def options(ctx): help='build GObject introspection data') def configure(conf): - conf.load('compiler_c') - conf.load('compiler_cxx') - autowaf.configure(conf) autowaf.display_header('Ganv Configuration') + conf.load('compiler_c', cache=True) + conf.load('compiler_cxx', cache=True) + conf.load('autowaf', cache=True) autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.0.0', mandatory=True) @@ -64,16 +64,17 @@ def configure(conf): autowaf.define(conf, 'GANV_USE_LIGHT_THEME', 1) if not Options.options.no_nls: - conf.check(function_name = 'dgettext', - header_name = 'libintl.h', - lib = 'intl', - define_name = 'ENABLE_NLS', - mandatory = False) + autowaf.check_function(conf, 'cxx', 'dgettext', + header_name = 'libintl.h', + lib = 'intl', + define_name = 'ENABLE_NLS', + mandatory = False) conf.env.LIB_GANV = ['ganv-%s' % GANV_MAJOR_VERSION] conf.write_config_header('ganv_config.h', remove=False) + autowaf.display_summary(conf) autowaf.display_msg(conf, "Static (Graphviz) arrange", bool(conf.env.HAVE_AGRAPH_2_20 or conf.env.HAVE_AGRAPH_2_30)) -- cgit v1.2.1