summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-16 21:39:53 +0000
committerDavid Robillard <d@drobilla.net>2010-12-16 21:39:53 +0000
commit39b61955e4db79b7e152f15ebe8326056e6d038b (patch)
treefa1a1b09af13ff8720a91f431a5025e7b4957faf /wscript
parent51d3ef8b9f5b5e70695c58332ab75930d6da639d (diff)
downloadingen-39b61955e4db79b7e152f15ebe8326056e6d038b.tar.gz
ingen-39b61955e4db79b7e152f15ebe8326056e6d038b.tar.bz2
ingen-39b61955e4db79b7e152f15ebe8326056e6d038b.zip
Fix use of conf.define and subsequent check in conf.env (no longer works with waf 1.6) (fix ticket #610).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2724 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript21
1 files changed, 9 insertions, 12 deletions
diff --git a/wscript b/wscript
index c2dc9ab3..c46c6ce7 100644
--- a/wscript
+++ b/wscript
@@ -83,24 +83,21 @@ def configure(conf):
build_gui = conf.env['HAVE_GLADEMM'] == 1 and conf.env['HAVE_FLOWCANVAS'] == 1
- conf.define('INGEN_VERSION', INGEN_VERSION)
- conf.env['INGEN_VERSION'] = INGEN_VERSION
- conf.define('BUILD_INGEN_GUI', int(build_gui))
- conf.define('HAVE_JACK_MIDI', int(conf.env['HAVE_JACK'] == 1))
+ autowaf.define(conf, 'INGEN_VERSION', INGEN_VERSION)
+ autowaf.define(conf, 'BUILD_INGEN_GUI', int(build_gui))
+ autowaf.define(conf, 'HAVE_JACK_MIDI', int(conf.env['HAVE_JACK'] == 1))
if conf.env['BUNDLE']:
- conf.define('INGEN_DATA_DIR', os.path.join(
- conf.env['DATADIRNAME'], 'ingen'))
- conf.define('INGEN_MODULE_DIR', conf.env['LIBDIRNAME'])
+ autowaf.define(conf, 'INGEN_DATA_DIR', os.path.join(conf.env['DATADIRNAME'], 'ingen'))
+ autowaf.define(conf, 'INGEN_MODULE_DIR', conf.env['LIBDIRNAME'])
else:
- conf.define('INGEN_DATA_DIR', os.path.join(
- conf.env['DATADIR'], 'ingen'))
- conf.define('INGEN_MODULE_DIR', conf.env['LIBDIR'])
+ autowaf.define(conf, 'INGEN_DATA_DIR', os.path.join(conf.env['DATADIR'], 'ingen'))
+ autowaf.define(conf, 'INGEN_MODULE_DIR', conf.env['LIBDIR'])
if Options.options.log_debug:
- conf.define('LOG_DEBUG', 1)
+ autowaf.define(conf, 'LOG_DEBUG', 1)
if Options.options.liblo_bundles:
- conf.define('LIBLO_BUNDLES', 1)
+ autowaf.define(conf, 'LIBLO_BUNDLES', 1)
conf.write_config_header('ingen-config.h', remove=False)