+ # 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
+ obj = bld(features = 'cxx c cxxprogram wine')
+ obj.source = '''
+ ../libs/fst/fst.c
+ ../libs/fst/fstinfofile.c
+ ../libs/fst/vsti.c
+ ../libs/fst/vstwin.c
+ ../vst/winmain.c
+ '''
+ obj.uselib = 'ALSA'
+ obj.use = [ 'libpbd',
+ 'libmidipp',
+ 'libtaglib',
+ 'libardour',
+ 'libardour_cp',
+ 'libgtk2_ardour',
+ 'libgtkmm2ext',
+ 'libtaglib']
+ obj.target = 'ardour-' + bld.env['VERSION'] + '-vst.exe.so'
+ obj.includes = [ '../libs/fst', '.' ]
+ obj.linkflags = ['-mwindows', '-Wl,--export-dynamic']
+ obj.defines = ['_POSIX_SOURCE', 'USE_WS_PREFIX']
+ obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
+ # end of the wine executable
+
+ # now the shared library containing the GTK GUI for ardour
+ obj = bld (features = 'cxx c cxxshlib')
+ obj.source = gtk2_ardour_sources
+ obj.includes = [ '../libs/fst', '.' ]
+ obj.name = 'libgtk2_ardour'
+ obj.target = 'gtk2_ardour'