use "new" VST search path code and adjust build system to reflect new source files
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 2 Mar 2014 15:53:25 +0000 (10:53 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 2 Mar 2014 15:53:25 +0000 (10:53 -0500)
libs/ardour/plugin_manager.cc
libs/ardour/wscript
libs/pbd/wscript

index bb3b5c7aecbcff484ac34628f18d17f268901347..b3117fcbb681c9208d49721ceba0fbdbe934130b 100644 (file)
@@ -63,6 +63,7 @@
 #include "ardour/rc_configuration.h"
 
 #include "ardour/ladspa_search_path.h"
+#include "ardour/vst_search_path.h"
 
 #ifdef LV2_SUPPORT
 #include "ardour/lv2_plugin.h"
@@ -83,7 +84,6 @@
 
 #include "pbd/error.h"
 #include "pbd/stl_delete.h"
-#include "pbd/fallback_folders.h"
 
 #include "i18n.h"
 
@@ -153,11 +153,7 @@ PluginManager::PluginManager ()
        }
 
        if (windows_vst_path.length() == 0) {
-#ifdef PLATFORM_WINDOWS
-               windows_vst_path = PBD::get_platform_fallback_folder (PBD::FOLDER_VST);
-#else
-               windows_vst_path = "/usr/local/lib/vst:/usr/lib/vst";
-#endif
+               windows_vst_path = vst_search_path ();
        }
 
        if ((s = getenv ("LXVST_PATH"))) {
index 24a4590d08ef9db519c15885140692f53c0e39a3..10ee3a7dbd82769ce08e49f01a96639b47a5e40a 100644 (file)
@@ -216,6 +216,7 @@ libardour_sources = [
         'user_bundle.cc',
         'utils.cc',
         'version.cc',
+        'vst_search_path.cc',
         'vumeterdsp.cc',
         'worker.cc'
 ]
index fc62641213d241ec59732a89e23620295906ffee..b18552af367f371416c8633442994ed9a81f6d20 100644 (file)
@@ -149,7 +149,7 @@ def build(bld):
     if bld.env['build_target'] == 'x86_64':
         obj.defines += [ 'USE_X86_64_ASM' ]
     if bld.env['build_target'] == 'mingw':
-        obj.source += [ 'fallback_folders.cc' ]
+        obj.source += [ 'windows_special_dirs.cc' ]
         obj.linkflags += ['-lole']
 
     if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'):