- # continue with setup of obj, which could be a shared library
- # or an executable.
-
- obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
-
- obj.uselib = 'UUID FLAC FONTCONFIG GLIBMM GTHREAD GTK OGG ALSA CURL DL'
- obj.uselib += ' GTKMM GNOMECANVASMM GNOMECANVAS '
- obj.uselib += ' AUDIOUNITS OSX GTKOSX LO '
- obj.use = [ 'libpbd',
- 'libmidipp',
- 'libtaglib',
- 'ardour',
- 'libardour_cp',
- 'libgtkmm2ext',
- 'libtaglib' ]
- if bld.env['build_target'] == 'mingw':
- if bld.env['DEBUG'] == False:
- obj.linkflags = ['-mwindows']
- if sys.platform == 'darwin':
- obj.use += ' libappleutility'
- obj.defines = [
+ 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
+ # OR the shared library built for use with wine on linux.
+
+ obj.use = [ 'libpbd',
+ 'libardour',
+ 'libardour_cp',
+ 'libtimecode',
+ 'libmidipp',
+ 'libgtkmm2ext',
+ 'libcanvas',
+ ]
+
+ obj.defines = [