update wscript for windowsVST + mingw
This commit is contained in:
parent
6217a80cd1
commit
0adac4e251
@ -356,7 +356,8 @@ def build(bld):
|
|||||||
|
|
||||||
VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR'])
|
VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR'])
|
||||||
|
|
||||||
if bld.is_defined('WINDOWS_VST_SUPPORT'):
|
if bld.is_defined('WINDOWS_VST_SUPPORT') and bld.env['build_target'] != 'mingw':
|
||||||
|
# Windows VST support w/wine
|
||||||
# If we require VST support we build a stub main() and the FST library
|
# If we require VST support we build a stub main() and the FST library
|
||||||
# here using winegcc, and link it to the GTK front-end library
|
# here using winegcc, and link it to the GTK front-end library
|
||||||
obj = bld (features = 'cxx c cxxprogram wine')
|
obj = bld (features = 'cxx c cxxprogram wine')
|
||||||
@ -382,7 +383,7 @@ def build(bld):
|
|||||||
]
|
]
|
||||||
obj.target = 'ardour-' + bld.env['VERSION'] + '-vst.exe.so'
|
obj.target = 'ardour-' + bld.env['VERSION'] + '-vst.exe.so'
|
||||||
obj.includes = [ '../libs/fst', '.' ]
|
obj.includes = [ '../libs/fst', '.' ]
|
||||||
obj.linkflags = ['-mwindows', '-Wl,--export-dynamic']
|
obj.linkflags = ['-mwindows', '-Wl,--export-dynamic', '-L/usr/lib/i386-linux-gnu/wine-unstable/']
|
||||||
obj.defines = ['_POSIX_SOURCE', 'USE_WS_PREFIX']
|
obj.defines = ['_POSIX_SOURCE', 'USE_WS_PREFIX']
|
||||||
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
||||||
# end of the wine executable
|
# end of the wine executable
|
||||||
@ -400,6 +401,17 @@ def build(bld):
|
|||||||
obj.target = 'ardour-' + bld.env['VERSION']
|
obj.target = 'ardour-' + bld.env['VERSION']
|
||||||
obj.includes = ['.']
|
obj.includes = ['.']
|
||||||
|
|
||||||
|
if bld.is_defined('WINDOWS_VST_SUPPORT'):
|
||||||
|
# Windows VST support mingw
|
||||||
|
obj.source += (
|
||||||
|
'../libs/fst/fst.c',
|
||||||
|
'../libs/fst/fstinfofile.c',
|
||||||
|
'../libs/fst/vsti.c',
|
||||||
|
'../libs/fst/vstwin.c',
|
||||||
|
'../vst/winmain.c',
|
||||||
|
)
|
||||||
|
obj.includes += [ '../libs/fst' ]
|
||||||
|
|
||||||
# at this point, "obj" refers to either the normal native executable
|
# at this point, "obj" refers to either the normal native executable
|
||||||
# OR the shared library built for use with wine on linux.
|
# OR the shared library built for use with wine on linux.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user