build changes from robin gareus for OS X, changing AU support to be used appropriatel...
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 2 Dec 2011 20:03:03 +0000 (20:03 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 2 Dec 2011 20:03:03 +0000 (20:03 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10869 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/plugin_ui.cc
gtk2_ardour/wscript
libs/ardour/wscript

index c71fd1980d2525bfb9f5f8f33a4f4eb10ed97461..9774d3dc4632625caf65a334546158a1533051ac 100644 (file)
@@ -313,13 +313,13 @@ PluginUIWindow::create_lxvst_editor(boost::shared_ptr<PluginInsert>)
 }
 
 bool
-#ifdef GTKOSX
+#ifdef AUDIOUNIT_SUPPORT
 PluginUIWindow::create_audiounit_editor (boost::shared_ptr<PluginInsert> insert)
 #else
 PluginUIWindow::create_audiounit_editor (boost::shared_ptr<PluginInsert>)
 #endif
 {
-#ifndef GTKOSX
+#ifndef AUDIOUNIT_SUPPORT
        return false;
 #else
        VBox* box;
@@ -340,7 +340,7 @@ PluginUIWindow::app_activated (bool yn)
 PluginUIWindow::app_activated (bool)
 #endif
 {
-#ifdef GTKOSX
+#ifdef AUDIOUNIT_SUPPORT
        if (_pluginui) {
                if (yn) {
                        if (was_visible) {
index 3a5a301a13ae2b03dc1e85dee2e5a1f5d73c0589..358f17854fd0a17a79509b0af06714b0cbcd5f0e 100644 (file)
@@ -411,9 +411,12 @@ def build(bld):
 
     if bld.is_defined('HAVE_COREAUDIO'):
         TaskGen.task_gen.mappings['.mm'] = TaskGen.task_gen.mappings['.cc']
-        obj.source += [ 'cocoacarbon.mm', 'au_pluginui.mm' ]
+        obj.source += [ 'cocoacarbon.mm' ]
         obj.use += ' libappleutility '
 
+    if bld.is_defined('AUDIOUNIT_SUPPORT'):
+        obj.source += [ 'au_pluginui.mm' ]
+
     if bld.is_defined('WINDOWS_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
index ee5f209129771312dd4762c7718a38c52346a70d..dfdb4a47ca610aa0c60bfc861aafdde7c2268bb1 100644 (file)
@@ -398,6 +398,8 @@ def build(bld):
     if bld.is_defined('HAVE_COREAUDIO'):
         obj.source += [ 'coreaudiosource.cc', 'caimportable.cc' ]
         obj.use    += ['libappleutility']
+
+    if bld.is_defined('AUDIOUNIT_SUPPORT'):
         obj.source += [ 'audio_unit.cc' ]
 
     if Options.options.fpu_optimization: