Mercurial > hg > vamp-aubio-plugins
diff wscript @ 153:0ca3b0a99916
wscript: improve windows build
author | Paul Brossier <piem@piem.org> |
---|---|
date | Fri, 22 Jul 2016 17:59:35 +0200 |
parents | 74fcc2846cfe |
children | 4b5c9e2d11c7 |
line wrap: on
line diff
--- a/wscript Fri Jul 22 17:39:21 2016 +0200 +++ b/wscript Fri Jul 22 17:59:35 2016 +0200 @@ -17,7 +17,14 @@ opt.load('compiler_cxx') def configure(conf): - conf.load('compiler_cxx') + if sys.platform.startswith('win'): + # build same binary version as current vamp-plugin-sdk + # currently Visual Studio 2013 (x86), + conf.env.MSVC_VERSIONS = ['msvc 12.0'] + conf.env.MSVC_TARGETS = ['x86'] + conf.load('msvc') + else: + conf.load('compiler_cxx') local_aubio_stlib = 'libaubio.a' local_vamp_stlib = 'libvamp-sdk.a' @@ -85,7 +92,10 @@ bld.env['cxxshlib_PATTERN'] = '%s.dylib' install_path = '/Library/Audio/Plug-Ins/Vamp' elif sys.platform.startswith('win32'): - install_path = None + if platform.machine() == 'AMD64': + install_path = 'C:\\Program Files (x86)\\Vamp Plugins' + else: + install_path = 'C:\\Program Files\\Vamp Plugins' bld.program(source = plugin_sources, includes = '.',