MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ format_library_name()

std::string MayaFlux::Platform::SystemConfig::format_library_name ( const std::string &  library_name,
LibraryType  type = LibraryType::Static 
)
staticprivate

Definition at line 228 of file HostEnvironment.cpp.

229{
230#ifdef MAYAFLUX_PLATFORM_WINDOWS
231 const std::string ext = (type == LibraryType::Shared) ? ".dll" : ".lib";
232 if (library_name.find(ext) == std::string::npos)
233 return library_name + ext;
234#elif defined(MAYAFLUX_PLATFORM_MACOS)
235 const std::string ext = (type == LibraryType::Shared) ? ".dylib" : ".a";
236 if (library_name.find(ext) == std::string::npos && library_name.find("lib") != 0)
237 return "lib" + library_name + ext;
238#else
239 const std::string ext = (type == LibraryType::Shared) ? ".so" : ".a";
240 if (library_name.find(ext) == std::string::npos && library_name.find(".a") == std::string::npos)
241 return "lib" + library_name + ext;
242#endif
243 return library_name;
244}
vk::PhysicalDeviceType type
Definition VKDevice.cpp:126

References Shared, and type.

Referenced by find_dep_library().

+ Here is the caller graph for this function: