From f17015940a7a01c94ce93a7dd437d0fcff0261bd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 3 Aug 2012 18:21:51 +0000 Subject: MSVC portability work. git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4611 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wscript') 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) -- cgit v1.2.1