Core/Shared: Converted the shared library to a shared library ,-).

* There is still the possibility to static link against shared.
This commit is contained in:
Aokromes committed 2016-08-10 08:49:33 +02:00
1 parent 0b82bc2d0d
commit e0cb17f098
4 files changed
+19 -5

No files matched your search

+14
View File
@@ -25,6 +25,8 @@ endif()
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
add_definitions(-DTRINITY_API_EXPORT_SHARED)
add_library(shared
${PRIVATE_PCH_SOURCE}
${PRIVATE_SOURCES}
@@ -51,6 +53,18 @@ set_target_properties(shared
FOLDER
"server")
if( BUILD_SHARED_LIBS )
if( UNIX )
install(TARGETS shared
LIBRARY
DESTINATION lib)
elseif( WIN32 )
install(TARGETS shared
RUNTIME
DESTINATION "${CMAKE_INSTALL_PREFIX}")
endif()
endif()
# Generate precompiled header
if (USE_COREPCH)
add_cxx_pch(shared ${PRIVATE_PCH_HEADER} ${PRIVATE_PCH_SOURCE})
+1 -1
View File
@@ -22,7 +22,7 @@
#include "Utilities/ByteConverter.h"
#include <cassert>
class DB2FileLoader
class TC_SHARED_API DB2FileLoader
{
public:
DB2FileLoader();
+1 -1
View File
@@ -22,7 +22,7 @@
#include "Utilities/ByteConverter.h"
#include <cassert>
class DBCFileLoader
class TC_SHARED_API DBCFileLoader
{
public:
DBCFileLoader();
+3 -3
View File
@@ -29,7 +29,7 @@
class MessageBuffer;
// Root of ByteBuffer exception hierarchy
class ByteBufferException : public std::exception
class TC_SHARED_API ByteBufferException : public std::exception
{
public:
~ByteBufferException() throw() { }
@@ -43,7 +43,7 @@ private:
std::string msg_;
};
class ByteBufferPositionException : public ByteBufferException
class TC_SHARED_API ByteBufferPositionException : public ByteBufferException
{
public:
ByteBufferPositionException(bool add, size_t pos, size_t size, size_t valueSize);
@@ -59,7 +59,7 @@ public:
~ByteBufferSourceException() throw() { }
};
class ByteBuffer
class TC_SHARED_API ByteBuffer
{
public:
static size_t const DEFAULT_SIZE = 0x1000;