wscript: add msvc configuration
authorPaul Brossier <piem@piem.org>
Fri, 22 Jul 2016 03:25:33 +0000 (05:25 +0200)
committerPaul Brossier <piem@piem.org>
Fri, 22 Jul 2016 03:25:33 +0000 (05:25 +0200)
wscript

diff --git a/wscript b/wscript
index cdc9a53..d58a666 100644 (file)
--- a/wscript
+++ b/wscript
@@ -59,6 +59,13 @@ def configure(conf):
         conf.env.append_value('LINKFLAGS', '-Wl,-z,defs')
         # add plugin.map
         conf.env.append_value('LINKFLAGS', '-Wl,--version-script=../vamp-plugin.map')
         conf.env.append_value('LINKFLAGS', '-Wl,-z,defs')
         # add plugin.map
         conf.env.append_value('LINKFLAGS', '-Wl,--version-script=../vamp-plugin.map')
+    elif sys.platform == 'win32':
+        conf.env.append_value('CXXFLAGS', '/W4')
+        conf.env.append_value('CXXFLAGS', '/EHsc')
+        #conf.env.append_value('CXXFLAGS', '/D_CRT_SECURE_NO_WARNINGS')
+        #, '/DWIN32', '/D_WINDOWS', '/D_USRDLL', '/D_WINDLL'
+        conf.env.append_value('LINKFLAGS', '/EXPORT:vampGetPluginDescriptor')
+        conf.env.append_value('LINKFLAGS', '/NODEFAULTLIB:LIBCMT')
 
 def build(bld):
     # Host Library
 
 def build(bld):
     # Host Library