prepare GUI notifications for plugin scan
[ardour.git] / gtk2_ardour / wscript
index d385da5a200ab9dab9abb1817ae7ec9e37922e42..24349d928d38d10d3c3fff61daab103bb042a6d3 100644 (file)
@@ -237,7 +237,6 @@ gtk2_ardour_sources = [
         'add_video_dialog.cc',
         'editor_videotimeline.cc',
         'video_timeline.cc',
-        'system_exec.cc',
         'video_monitor.cc',
         'transcode_ffmpeg.cc',
         'transcode_video_dialog.cc',
@@ -357,14 +356,13 @@ def build(bld):
 
     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
         # 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',
             )
@@ -401,6 +399,17 @@ def build(bld):
         obj.target = 'ardour-' + bld.env['VERSION']
         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
     # OR the shared library built for use with wine on linux.
 
@@ -433,7 +442,7 @@ def build(bld):
     obj.includes += ['../libs']
 
     if bld.env['build_target'] == 'mingw':
-       if bld.env['DEBUG'] == False:
+        if bld.env['DEBUG'] == False:
             obj.linkflags = ['-mwindows']
 
     if bld.is_defined('HAVE_SUIL'):