aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-03 18:21:51 +0000
committerDavid Robillard <d@drobilla.net>2012-08-03 18:21:51 +0000
commitf17015940a7a01c94ce93a7dd437d0fcff0261bd (patch)
tree8d417a37438ae46750fb9aeb4e673eb9ce692365 /wscript
parent551ba602e3123a4efdf2fb32d0e32a0c5506503a (diff)
downloadjalv-f17015940a7a01c94ce93a7dd437d0fcff0261bd.tar.gz
jalv-f17015940a7a01c94ce93a7dd437d0fcff0261bd.tar.bz2
jalv-f17015940a7a01c94ce93a7dd437d0fcff0261bd.zip
MSVC portability work.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4611 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/wscript b/wscript
index 4df5a6d..4d4fc11 100644
--- a/wscript
+++ b/wscript
@@ -29,6 +29,11 @@ def configure(conf):
autowaf.configure(conf)
autowaf.display_header('Jalv Configuration')
+ if conf.env['MSVC_COMPILER']:
+ conf.env.append_unique('CFLAGS', ['-TP', '-MD'])
+ else:
+ conf.env.append_unique('CFLAGS', '-std=c99')
+
autowaf.check_pkg(conf, 'lv2', atleast_version='1.0.5', uselib_store='LV2')
autowaf.check_pkg(conf, 'lilv-0', uselib_store='LILV',
atleast_version='0.14.0', mandatory=True)
@@ -57,7 +62,6 @@ def configure(conf):
if not Options.options.no_jack_session:
autowaf.define(conf, 'JALV_JACK_SESSION', 1)
- conf.env.append_unique('CFLAGS', '-std=c99')
autowaf.define(conf, 'JALV_VERSION', JALV_VERSION)
conf.write_config_header('jalv_config.h', remove=False)