Mercurial > hg > vamp-aubio-plugins
comparison 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 |
comparison
equal
deleted
inserted
replaced
152:74fcc2846cfe | 153:0ca3b0a99916 |
---|---|
15 | 15 |
16 def options(opt): | 16 def options(opt): |
17 opt.load('compiler_cxx') | 17 opt.load('compiler_cxx') |
18 | 18 |
19 def configure(conf): | 19 def configure(conf): |
20 conf.load('compiler_cxx') | 20 if sys.platform.startswith('win'): |
21 # build same binary version as current vamp-plugin-sdk | |
22 # currently Visual Studio 2013 (x86), | |
23 conf.env.MSVC_VERSIONS = ['msvc 12.0'] | |
24 conf.env.MSVC_TARGETS = ['x86'] | |
25 conf.load('msvc') | |
26 else: | |
27 conf.load('compiler_cxx') | |
21 local_aubio_stlib = 'libaubio.a' | 28 local_aubio_stlib = 'libaubio.a' |
22 local_vamp_stlib = 'libvamp-sdk.a' | 29 local_vamp_stlib = 'libvamp-sdk.a' |
23 | 30 |
24 if sys.platform.startswith('linux'): | 31 if sys.platform.startswith('linux'): |
25 if platform.machine() == 'x86_64': | 32 if platform.machine() == 'x86_64': |
83 install_path = '${LIBDIR}/vamp' | 90 install_path = '${LIBDIR}/vamp' |
84 elif sys.platform.startswith('darwin'): | 91 elif sys.platform.startswith('darwin'): |
85 bld.env['cxxshlib_PATTERN'] = '%s.dylib' | 92 bld.env['cxxshlib_PATTERN'] = '%s.dylib' |
86 install_path = '/Library/Audio/Plug-Ins/Vamp' | 93 install_path = '/Library/Audio/Plug-Ins/Vamp' |
87 elif sys.platform.startswith('win32'): | 94 elif sys.platform.startswith('win32'): |
88 install_path = None | 95 if platform.machine() == 'AMD64': |
96 install_path = 'C:\\Program Files (x86)\\Vamp Plugins' | |
97 else: | |
98 install_path = 'C:\\Program Files\\Vamp Plugins' | |
89 | 99 |
90 bld.program(source = plugin_sources, | 100 bld.program(source = plugin_sources, |
91 includes = '.', | 101 includes = '.', |
92 target = 'vamp-aubio', | 102 target = 'vamp-aubio', |
93 name = 'vamp-aubio', | 103 name = 'vamp-aubio', |