mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-01 21:13:10 +01:00
adapted Crypto and NetSSL projects for poco OpenSSL binaries
This commit is contained in:
@@ -79,12 +79,35 @@ enum RSAPaddingMode
|
||||
|
||||
|
||||
//
|
||||
// Automatically link Crypto library.
|
||||
// Automatically link Crypto and OpenSSL libraries.
|
||||
//
|
||||
#if defined(_MSC_VER)
|
||||
#if !defined(POCO_NO_AUTOMATIC_LIBS) && !defined(Crypto_EXPORTS)
|
||||
#pragma comment(lib, "PocoCrypto" POCO_LIB_SUFFIX)
|
||||
|
||||
#if defined(_WIN64)
|
||||
#define POCO_PLATFORM_BITS "64"
|
||||
#else
|
||||
#define POCO_PLATFORM_BITS "32"
|
||||
#endif
|
||||
|
||||
#if defined (_DEBUG)
|
||||
#define POCO_DEBUG_POSTFIX "d"
|
||||
#else
|
||||
#define POCO_DEBUG_POSTFIX ""
|
||||
#endif
|
||||
|
||||
#if !defined(POCO_NO_AUTOMATIC_LIBS)
|
||||
#if defined (_DLL)
|
||||
#pragma comment(lib, "libeay" POCO_PLATFORM_BITS "MD" POCO_DEBUG_POSTFIX ".lib")
|
||||
#pragma comment(lib, "ssleay" POCO_PLATFORM_BITS "MD" POCO_DEBUG_POSTFIX ".lib")
|
||||
#else
|
||||
#pragma comment(lib, "libeay" POCO_PLATFORM_BITS "MT" POCO_DEBUG_POSTFIX ".lib")
|
||||
#pragma comment(lib, "ssleay" POCO_PLATFORM_BITS "MT" POCO_DEBUG_POSTFIX ".lib")
|
||||
#endif
|
||||
#if !defined(Crypto_EXPORTS)
|
||||
#pragma comment(lib, "PocoCrypto" POCO_LIB_SUFFIX)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user