From 88103d9fc6c5ab22aab264d7bd6ad6865d5f7719 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Dec 2014 08:01:59 +0000 Subject: Upgrade to waf 1.8.5. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5496 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index a0e6aec..a089b3a 100644 --- a/wscript +++ b/wscript @@ -55,7 +55,7 @@ def configure(conf): if not Options.options.no_graphviz: autowaf.check_pkg(conf, 'libgvc', uselib_store='AGRAPH_2_30', atleast_version='2.30', mandatory=False) - if not conf.is_defined('HAVE_AGRAPH_2_30'): + if not conf.env.HAVE_AGRAPH_2_30: autowaf.check_pkg(conf, 'libgvc', uselib_store='AGRAPH_2_20', atleast_version='2.20', mandatory=False) @@ -70,13 +70,13 @@ def configure(conf): conf.write_config_header('ganv_config.h', remove=False) autowaf.display_msg(conf, "Static (Graphviz) arrange", - conf.is_defined('HAVE_AGRAPH_2_20') or - conf.is_defined('HAVE_AGRAPH_2_30')) + bool(conf.env.HAVE_AGRAPH_2_20 or + conf.env.HAVE_AGRAPH_2_30)) autowaf.display_msg(conf, "Interactive force-directed arrange", - conf.is_defined('GANV_FDGL')) - autowaf.display_msg(conf, "Native language support", conf.is_defined('ENABLE_NLS')) - autowaf.display_msg(conf, "GObject introspection", conf.is_defined('HAVE_GIR')) - autowaf.display_msg(conf, "Unit tests", str(conf.env.BUILD_TESTS)) + bool(conf.env.GANV_FDGL)) + autowaf.display_msg(conf, "Native language support", bool(conf.env.ENABLE_NLS)) + autowaf.display_msg(conf, "GObject introspection", bool(conf.env.HAVE_GIR)) + autowaf.display_msg(conf, "Unit tests", bool(conf.env.BUILD_TESTS)) print('') ganv_source = [ @@ -165,7 +165,7 @@ def build(bld): # Documentation #autowaf.build_dox(bld, 'GANV', GANV_VERSION, top, out) - if bld.is_defined('HAVE_GIR'): + if bld.env.HAVE_GIR: bld.add_group() bld_dir = os.path.join(out, APPNAME) -- cgit v1.2.1