added POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX configuration macro to disable *d.so, *d.dll suffix in SharedLibrary class

This commit is contained in:
Guenter Obiltschnig
2016-10-10 11:56:58 +02:00
parent 18eee84793
commit 59a78a55b5
7 changed files with 21 additions and 10 deletions

View File

@@ -85,7 +85,7 @@ const std::string& SharedLibraryImpl::getPathImpl() const
std::string SharedLibraryImpl::suffixImpl()
{
#if defined(_DEBUG)
#if defined(_DEBUG) && !defined(POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX)
return "d.sl";
#else
return ".sl";

View File

@@ -102,25 +102,25 @@ const std::string& SharedLibraryImpl::getPathImpl() const
std::string SharedLibraryImpl::suffixImpl()
{
#if defined(__APPLE__)
#if defined(_DEBUG)
#if defined(_DEBUG) && !defined(POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX)
return "d.dylib";
#else
return ".dylib";
#endif
#elif defined(hpux) || defined(_hpux)
#if defined(_DEBUG)
#if defined(_DEBUG) && !defined(POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX)
return "d.sl";
#else
return ".sl";
#endif
#elif defined(__CYGWIN__)
#if defined(_DEBUG)
#if defined(_DEBUG) && !defined(POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX)
return "d.dll";
#else
return ".dll";
#endif
#else
#if defined(_DEBUG)
#if defined(_DEBUG) && !defined(POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX)
return "d.so";
#else
return ".so";

View File

@@ -108,7 +108,7 @@ const std::string& SharedLibraryImpl::getPathImpl() const
std::string SharedLibraryImpl::suffixImpl()
{
#if defined(_DEBUG)
#if defined(_DEBUG) && !defined(POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX)
return "d.exe";
#else
return ".exe";

View File

@@ -89,7 +89,7 @@ const std::string& SharedLibraryImpl::getPathImpl() const
std::string SharedLibraryImpl::suffixImpl()
{
#if defined(_DEBUG)
#if defined(_DEBUG) && !defined(POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX)
return "d.dll";
#else
return ".dll";

View File

@@ -100,7 +100,7 @@ const std::string& SharedLibraryImpl::getPathImpl() const
std::string SharedLibraryImpl::suffixImpl()
{
#if defined(_DEBUG)
#if defined(_DEBUG) && !defined(POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX)
return "d.dll";
#else
return ".dll";