summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-09-10 19:02:41 +0000
committerDavid Robillard <d@drobilla.net>2012-09-10 19:02:41 +0000
commit66979634294b0efe592b867cbcc45e021742d916 (patch)
treecccc09bbd355fc76cdf20f99c6ee89a856321d2c /wscript
parentff904a7df6bdf3663877c01f337b41a62551f56d (diff)
downloadsuil-66979634294b0efe592b867cbcc45e021742d916.tar.gz
suil-66979634294b0efe592b867cbcc45e021742d916.tar.bz2
suil-66979634294b0efe592b867cbcc45e021742d916.zip
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
Diffstat (limited to 'wscript')
-rw-r--r--wscript15
1 files changed, 11 insertions, 4 deletions
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)