From cb3803433491abfe7c58742dbe7801591b21694a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 13 Nov 2014 19:57:40 +0100 Subject: install all additional binaries in $libdir --- libs/ardour/plugin_manager.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libs/ardour/plugin_manager.cc') diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index 344b2ef9b6..b6100f74b5 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -116,12 +116,17 @@ PluginManager::PluginManager () string lrdf_path; #if defined WINDOWS_VST_SUPPORT || defined LXVST_SUPPORT + // source-tree (ardev, etc) PBD::Searchpath vstsp(Glib::build_filename(ARDOUR::ardour_dll_directory(), "fst")); + #ifdef PLATFORM_WINDOWS + // on windows the .exe needs to be in the same folder with libardour.dll vstsp += Glib::build_filename(g_win32_get_package_installation_directory_of_module (0), "bin"); #else - vstsp += Glib::getenv("PATH"); + // on Unices additional internal-use binaries are deployed to $libdir + vstsp += ARDOUR::ardour_dll_directory(); #endif + if (!PBD::find_file (vstsp, #ifdef PLATFORM_WINDOWS #ifdef DEBUGGABLE_SCANNER_APP -- cgit v1.2.3