diff options
author | David Robillard <d@drobilla.net> | 2010-12-16 21:39:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-16 21:39:53 +0000 |
commit | 39b61955e4db79b7e152f15ebe8326056e6d038b (patch) | |
tree | fa1a1b09af13ff8720a91f431a5025e7b4957faf /wscript | |
parent | 51d3ef8b9f5b5e70695c58332ab75930d6da639d (diff) | |
download | ingen-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-- | wscript | 21 |
1 files changed, 9 insertions, 12 deletions
@@ -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) |