+ if bld.env['VST_SUPPORT']:
+ # 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.new_task_gen (features = 'cxx cc cprogram wine')
+ 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'
+ obj.target = 'ardour-3.0-vst'
+ obj.linkflags = ['-mwindows', '-Wl,--export-dynamic', '-lpthread']
+ obj.defines = ['_POSIX_SOURCE', 'USE_WS_PREFIX']
+ obj.uselib = 'ALSA'
+ obj.uselib_local = '''libpbd libmidipp libtaglib libardour libardour_cp libgtkmm2ext libtaglib gtk2_ardour'''
+