summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-17 13:04:07 +0200
committerDavid Robillard <d@drobilla.net>2019-10-17 13:04:07 +0200
commitffb19e1fdaf5c3de5b537dec61372c2c9a7e44f8 (patch)
treeae21d2bce3ab6bc4f33f8b96ce64063eda3e16a9
parent253d96b2fdabb70a9881ebfad4f47c0b7a0f1418 (diff)
downloadganv-ffb19e1fdaf5c3de5b537dec61372c2c9a7e44f8.tar.gz
ganv-ffb19e1fdaf5c3de5b537dec61372c2c9a7e44f8.tar.bz2
ganv-ffb19e1fdaf5c3de5b537dec61372c2c9a7e44f8.zip
Remove use of autowaf.define
-rw-r--r--wscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/wscript b/wscript
index c63429e..4120a44 100644
--- a/wscript
+++ b/wscript
@@ -51,10 +51,10 @@ def configure(conf):
atleast_version='2.30', system=True, mandatory=False)
if not Options.options.no_fdgl:
- autowaf.define(conf, 'GANV_FDGL', 1)
+ conf.define('GANV_FDGL', 1)
if Options.options.light_theme:
- autowaf.define(conf, 'GANV_USE_LIGHT_THEME', 1)
+ conf.define('GANV_USE_LIGHT_THEME', 1)
if not Options.options.no_nls:
autowaf.check_function(conf, 'cxx', 'dgettext',
@@ -69,7 +69,7 @@ def configure(conf):
autowaf.display_summary(
conf,
{'Static (Graphviz) arrange': bool(conf.env.HAVE_AGRAPH_2_20),
- 'Interactive force-directed arrange': bool(conf.env.GANV_FDGL),
+ 'Interactive force-directed arrange': conf.is_defined('GANV_FDGL'),
'Native language support': bool(conf.env.ENABLE_NLS),
'GObject introspection': bool(conf.env.HAVE_GIR),
'Unit tests': bool(conf.env.BUILD_TESTS)})