summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2013-10-14 17:19:39 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2013-10-14 17:19:39 +0100
commitb4d0d47b633300bda6a8faa7ef1a257e4d4caa57 (patch)
tree3e1cd3c0f5bd9a06f0fd8759c057cbd2635d35cd /libs
parent98880915af06429e60f36378e660601871a748f1 (diff)
'AudioEngine::discover_backends()' - When building a debuggable backend module on Windows (e.g. jack_backend.dll) accommodate the Windows convention that Debug builds generally have a suffix added to their name
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/audioengine.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc
index 224e09569f..570fe1bee5 100644
--- a/libs/ardour/audioengine.cc
+++ b/libs/ardour/audioengine.cc
@@ -472,8 +472,17 @@ AudioEngine::discover_backends ()
Glib::PatternSpec so_extension_pattern("*backend.so");
Glib::PatternSpec dylib_extension_pattern("*backend.dylib");
- Glib::PatternSpec dll_extension_pattern("*backend.dll");
+#if defined(PLATFORM_WINDOWS) && defined(DEBUGGABLE_BACKENDS)
+ #if defined(DEBUG) || defined(_DEBUG)
+ Glib::PatternSpec dll_extension_pattern("*backendD.dll");
+ #else
+ Glib::PatternSpec dll_extension_pattern("*backendRDC.dll");
+ #endif
+#else
+ Glib::PatternSpec dll_extension_pattern("*backend.dll");
+#endif
+
find_matching_files_in_search_path (backend_search_path (),
so_extension_pattern, backend_modules);