From 66979634294b0efe592b867cbcc45e021742d916 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 10 Sep 2012 19:02:41 +0000 Subject: Load debug version of modules if built with --pardebug. git-svn-id: http://svn.drobilla.net/lad/trunk/suil@4768 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 915154d..844af57 100644 --- a/wscript +++ b/wscript @@ -72,12 +72,19 @@ def configure(conf): conf.env.LIBDIR + '/suil-' + SUIL_MAJOR_VERSION) autowaf.define(conf, 'SUIL_DIR_SEP', '/') autowaf.define(conf, 'SUIL_GTK2_LIB_NAME', Options.options.gtk2_lib_name); + + module_prefix = '' + module_ext = '' + if conf.env.PARDEBUG: + module_ext += 'D' if Options.platform == 'win32': - autowaf.define(conf, 'SUIL_MODULE_PREFIX', '') - autowaf.define(conf, 'SUIL_MODULE_EXT', '.dll') + module_ext += '.dll' else: - autowaf.define(conf, 'SUIL_MODULE_PREFIX', 'lib') - autowaf.define(conf, 'SUIL_MODULE_EXT', '.so') + module_prefix = 'lib' + module_ext += '.so' + + autowaf.define(conf, 'SUIL_MODULE_PREFIX', module_prefix) + autowaf.define(conf, 'SUIL_MODULE_EXT', module_ext) autowaf.set_lib_env(conf, 'suil', SUIL_VERSION) conf.write_config_header('suil_config.h', remove=False) -- cgit v1.2.1