# HG changeset patch # User Paul Brossier # Date 1469203175 -7200 # Node ID 0ca3b0a9991651efcd967fff74219812669d3301 # Parent 74fcc2846cfe4a05b3beb76341312e5935f7e05b wscript: improve windows build diff -r 74fcc2846cfe -r 0ca3b0a99916 wscript --- 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 = '.',