mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-24 14:17:21 +01:00
Fix dll path when running from source with msys
For ardev to work on windows (msys) the enviroment variable for the DLL path needs to be used. Without this, ardour fails to find the VST(3) scanner programs.
This commit is contained in:
parent
823b088a45
commit
192a976cf9
1 changed files with 7 additions and 7 deletions
|
|
@ -194,18 +194,18 @@ user_cache_directory (int version)
|
|||
std::string
|
||||
ardour_dll_directory ()
|
||||
{
|
||||
std::string dll_dir_path = Glib::getenv("ARDOUR_DLL_PATH");
|
||||
if (dll_dir_path.empty()) {
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
std::string dll_dir_path(windows_package_directory_path());
|
||||
dll_dir_path = Glib::build_filename (dll_dir_path, "lib");
|
||||
return Glib::build_filename (dll_dir_path, LIBARDOUR);
|
||||
dll_dir_path = windows_package_directory_path();
|
||||
dll_dir_path = Glib::build_filename (dll_dir_path, "lib");
|
||||
dll_dir_path = Glib::build_filename (dll_dir_path, LIBARDOUR);
|
||||
#else
|
||||
std::string s = Glib::getenv("ARDOUR_DLL_PATH");
|
||||
if (s.empty()) {
|
||||
std::cerr << _("ARDOUR_DLL_PATH not set in environment - exiting\n");
|
||||
::exit (EXIT_FAILURE);
|
||||
}
|
||||
return s;
|
||||
#endif
|
||||
}
|
||||
return dll_dir_path;
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue