mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
When finding the control surface DLLs (MSVC built), make sure we only find ones that match our build target
This commit is contained in:
parent
640bd36906
commit
0daae2ec91
1 changed files with 23 additions and 0 deletions
|
|
@ -245,9 +245,32 @@ ControlProtocolManager::discover_control_protocols ()
|
||||||
{
|
{
|
||||||
vector<std::string> cp_modules;
|
vector<std::string> cp_modules;
|
||||||
|
|
||||||
|
#ifdef COMPILER_MSVC
|
||||||
|
/**
|
||||||
|
* Different build targets (Debug / Release etc) use different versions
|
||||||
|
* of the 'C' runtime (which can't be 'mixed & matched'). Therefore, in
|
||||||
|
* case the supplied search path contains multiple version(s) of a given
|
||||||
|
* module, only select the one(s) which match the current build target
|
||||||
|
*/
|
||||||
|
#if defined (_DEBUG)
|
||||||
|
Glib::PatternSpec dll_extension_pattern("*D.dll");
|
||||||
|
#elif defined (RDC_BUILD)
|
||||||
|
Glib::PatternSpec dll_extension_pattern("*RDC.dll");
|
||||||
|
#elif defined (_WIN64)
|
||||||
|
Glib::PatternSpec dll_extension_pattern("*64.dll");
|
||||||
|
#else
|
||||||
|
Glib::PatternSpec dll_extension_pattern("*32.dll");
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
Glib::PatternSpec dll_extension_pattern("*.dll");
|
||||||
|
#endif
|
||||||
|
|
||||||
Glib::PatternSpec so_extension_pattern("*.so");
|
Glib::PatternSpec so_extension_pattern("*.so");
|
||||||
Glib::PatternSpec dylib_extension_pattern("*.dylib");
|
Glib::PatternSpec dylib_extension_pattern("*.dylib");
|
||||||
|
|
||||||
|
find_matching_files_in_search_path (control_protocol_search_path (),
|
||||||
|
dll_extension_pattern, cp_modules);
|
||||||
|
|
||||||
find_matching_files_in_search_path (control_protocol_search_path (),
|
find_matching_files_in_search_path (control_protocol_search_path (),
|
||||||
so_extension_pattern, cp_modules);
|
so_extension_pattern, cp_modules);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue