mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 13:47:10 +01:00
add std::string SharedLibrary::prefix() for building library name that
complies with Cygwin standard. Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
@@ -104,6 +104,12 @@ const std::string& SharedLibrary::getPath() const
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibrary::prefix()
|
||||
{
|
||||
return prefixImpl();
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibrary::suffix()
|
||||
{
|
||||
return suffixImpl();
|
||||
|
||||
@@ -83,6 +83,12 @@ const std::string& SharedLibraryImpl::getPathImpl() const
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibraryImpl::prefixImpl()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibraryImpl::suffixImpl()
|
||||
{
|
||||
#if defined(_DEBUG)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
|
||||
// Note: cygwin is missing RTLD_LOCAL, set it to 0
|
||||
#if defined(__CYGWIN__) && !defined(RTLD_LOCAL)
|
||||
#if POCO_OS == POCO_OS_CYGWIN && !defined(RTLD_LOCAL)
|
||||
#define RTLD_LOCAL 0
|
||||
#endif
|
||||
|
||||
@@ -99,21 +99,31 @@ const std::string& SharedLibraryImpl::getPathImpl() const
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibraryImpl::prefixImpl()
|
||||
{
|
||||
#if POCO_OS == POCO_OS_CYGWIN
|
||||
return "cyg";
|
||||
#else
|
||||
return "";
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibraryImpl::suffixImpl()
|
||||
{
|
||||
#if defined(__APPLE__)
|
||||
#if POCO_OS == POCO_OS_MAC_OS_X
|
||||
#if defined(_DEBUG)
|
||||
return "d.dylib";
|
||||
#else
|
||||
return ".dylib";
|
||||
#endif
|
||||
#elif defined(hpux) || defined(_hpux)
|
||||
#elif POCO_OS == POCO_OS_HPUX
|
||||
#if defined(_DEBUG)
|
||||
return "d.sl";
|
||||
#else
|
||||
return ".sl";
|
||||
#endif
|
||||
#elif defined(__CYGWIN__)
|
||||
#elif POCO_OS == POCO_OS_CYGWIN
|
||||
#if defined(_DEBUG)
|
||||
return "d.dll";
|
||||
#else
|
||||
|
||||
@@ -106,6 +106,12 @@ const std::string& SharedLibraryImpl::getPathImpl() const
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibraryImpl::prefixImpl()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibraryImpl::suffixImpl()
|
||||
{
|
||||
#if defined(_DEBUG)
|
||||
|
||||
@@ -128,6 +128,12 @@ const std::string& SharedLibraryImpl::getPathImpl() const
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibraryImpl::prefixImpl()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibraryImpl::suffixImpl()
|
||||
{
|
||||
return ".out";
|
||||
|
||||
@@ -87,6 +87,12 @@ const std::string& SharedLibraryImpl::getPathImpl() const
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibraryImpl::prefixImpl()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibraryImpl::suffixImpl()
|
||||
{
|
||||
#if defined(_DEBUG)
|
||||
|
||||
@@ -98,6 +98,12 @@ const std::string& SharedLibraryImpl::getPathImpl() const
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibraryImpl::prefixImpl()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
std::string SharedLibraryImpl::suffixImpl()
|
||||
{
|
||||
#if defined(_DEBUG)
|
||||
|
||||
Reference in New Issue
Block a user