mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 22:17:45 +00:00
Another attempt at fixing the build
This commit is contained in:
parent
32d886675c
commit
4606e83d15
18 changed files with 37 additions and 34 deletions
|
@ -61,6 +61,8 @@ add_subdirectory("src/servers")
|
|||
add_subdirectory("src/libraries/sapphire/datReader")
|
||||
add_subdirectory("src/libraries/sapphire/mysqlConnector")
|
||||
|
||||
add_subdirectory("src/common")
|
||||
|
||||
add_subdirectory("src/tools/exd_common_gen")
|
||||
add_subdirectory("src/tools/exd_struct_gen")
|
||||
add_subdirectory("src/tools/exd_struct_test")
|
||||
|
|
|
@ -7,7 +7,7 @@ file(GLOB UTILS_PUBLIC_INCLUDE_FILES
|
|||
"${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/*.h")
|
||||
file(GLOB UTILS_SOURCE_FILES
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}*.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/Config/*.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/Crypt/*.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/Database/*.cpp"
|
||||
|
@ -17,12 +17,13 @@ file(GLOB UTILS_SOURCE_FILES
|
|||
"${CMAKE_CURRENT_SOURCE_DIR}/Network/PacketDef/*.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/Script/*.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/Util/*.cpp")
|
||||
|
||||
|
||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
add_library(Common ${UTILS_PUBLIC_INCLUDE_FILES} ${UTILS_SOURCE_FILES})
|
||||
add_library(common ${UTILS_PUBLIC_INCLUDE_FILES} ${UTILS_SOURCE_FILES})
|
||||
|
||||
set_target_properties(Common PROPERTIES
|
||||
set_target_properties(common PROPERTIES
|
||||
CXX_STANDARD 14
|
||||
CXX_STANDARD_REQUIRED ON
|
||||
CXX_EXTENSIONS ON
|
||||
|
@ -33,7 +34,7 @@ set_target_properties(Common PROPERTIES
|
|||
)
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries( Common xivdat mysqlclient mysqlConnector )
|
||||
target_link_libraries( common xivdat mysqlclient mysqlConnector )
|
||||
else()
|
||||
target_link_libraries( Common xivdat mysqlConnector libmysql )
|
||||
target_link_libraries( common xivdat mysqlConnector libmysql )
|
||||
endif()
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "DbWorker.h"
|
||||
#include "src/libraries/sapphire/mysqlConnector/MySqlConnector.h"
|
||||
|
||||
#include "src/servers/Server_Common/Logging/Logger.h"
|
||||
#include <common/Logging/Logger.h>
|
||||
#include "PreparedStatement.h"
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include <mysqld_error.h>
|
||||
#include "CharaDbConnection.h"
|
||||
#include "DbWorkerPool.h"
|
||||
#include "src/servers/Server_Common/Logging/Logger.h"
|
||||
#include <common/Logging/Logger.h>
|
||||
|
||||
extern Core::Logger g_log;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "DbWorker.h"
|
||||
#include "Operation.h"
|
||||
#include <Server_Common/Util/LockedWaitQueue.h>
|
||||
#include <common/Util/LockedWaitQueue.h>
|
||||
|
||||
Core::Db::DbWorker::DbWorker( Core::LockedWaitQueue< boost::shared_ptr< Operation > >* newQueue, DbConnection* pConn )
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <atomic>
|
||||
#include <thread>
|
||||
#include <Server_Common/Util/LockedWaitQueue.h>
|
||||
#include <common/Util/LockedWaitQueue.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
namespace Core
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "CharaDbConnection.h"
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
#include <Server_Common/Logging/Logger.h>
|
||||
#include <common/Logging/Logger.h>
|
||||
extern Core::Logger g_log;
|
||||
|
||||
class PingOperation : public Core::Db::Operation
|
||||
|
@ -273,4 +273,4 @@ void DatabaseWorkerPool<T>::ExecuteOrAppend(SQLTransaction& trans, PreparedState
|
|||
}
|
||||
*/
|
||||
|
||||
template class Core::Db::DbWorkerPool< Core::Db::CharaDbConnection >;
|
||||
template class Core::Db::DbWorkerPool< Core::Db::CharaDbConnection >;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "src/servers/Server_Common/Network/Hive.h"
|
||||
#include <common/Network/Hive.h>
|
||||
#include "Acceptor.h"
|
||||
#include "src/servers/Server_Common/Network/Connection.h"
|
||||
#include <common/Network/Connection.h>
|
||||
#include <boost/interprocess/detail/atomic.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
|
@ -127,4 +127,4 @@ namespace Core
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <time.h>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/format.hpp>
|
||||
#include "Server_Common/Util/Util.h"
|
||||
#include <common/Util/Util.h>
|
||||
|
||||
Core::Network::Packets::GamePacket::GamePacket( uint16_t subType, uint16_t size, uint32_t id1, uint32_t id2, uint16_t type )
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "PacketContainer.h"
|
||||
#include "GamePacket.h"
|
||||
#include "src/servers/Server_Common/Common.h"
|
||||
#include <common/Common.h>
|
||||
|
||||
#include <boost/format.hpp>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace Core {
|
||||
namespace Version {
|
||||
|
||||
const std::string GIT_HASH = "1673292b62618715cecd0656402e934709779f0e";
|
||||
const std::string GIT_HASH = "32d886675c6f621494001715e6cf9c99217e1b48";
|
||||
const std::string VERSION = "-128-NOTFOUND";
|
||||
|
||||
} /* Version */
|
||||
|
|
|
@ -8,7 +8,7 @@ file(GLOB SERVER_SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}*.c*")
|
|||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/")
|
||||
|
||||
add_executable(server_lobby ${SERVER_PUBLIC_INCLUDE_FILES} ${SERVER_SOURCE_FILES})
|
||||
add_dependencies(server_lobby Common xivdat)
|
||||
add_dependencies(server_lobby common xivdat)
|
||||
|
||||
set_target_properties(server_lobby PROPERTIES
|
||||
CXX_STANDARD 14
|
||||
|
@ -22,9 +22,9 @@ set_target_properties(server_lobby PROPERTIES
|
|||
)
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries(server_lobby Common xivdat pthread mysqlclient mysqlConnector dl z)
|
||||
target_link_libraries(server_lobby common xivdat pthread mysqlclient mysqlConnector dl z)
|
||||
else()
|
||||
target_link_libraries(server_lobby Common xivdat libmysql mysqlConnector zlib1)
|
||||
target_link_libraries(server_lobby common xivdat libmysql mysqlConnector zlib1)
|
||||
endif()
|
||||
|
||||
target_link_libraries(server_lobby ${Boost_LIBRARIES} ${Boost_LIBRARIES})
|
||||
|
|
|
@ -7,7 +7,7 @@ file(GLOB SERVER_SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}*.c*")
|
|||
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/")
|
||||
add_executable(server_rest ${SERVER_PUBLIC_INCLUDE_FILES} ${SERVER_SOURCE_FILES})
|
||||
add_dependencies(server_rest Common xivdat)
|
||||
add_dependencies(server_rest common xivdat)
|
||||
|
||||
set_target_properties(server_rest PROPERTIES
|
||||
CXX_STANDARD 14
|
||||
|
@ -21,12 +21,12 @@ set_target_properties(server_rest PROPERTIES
|
|||
)
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries (server_rest Common xivdat pthread mysqlclient mysqlConnector dl z)
|
||||
target_link_libraries (server_rest common xivdat pthread mysqlclient mysqlConnector dl z)
|
||||
else()
|
||||
# ignore unchecked iterators warnings from msvc
|
||||
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
|
||||
|
||||
target_link_libraries (server_rest Common xivdat libmysql mysqlConnector zlib1)
|
||||
target_link_libraries (server_rest common xivdat libmysql mysqlConnector zlib1)
|
||||
|
||||
endif()
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ file(GLOB SERVER_SOURCE_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
|||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/")
|
||||
|
||||
add_executable(server_zone ${SERVER_PUBLIC_INCLUDE_FILES} ${SERVER_SOURCE_FILES} )
|
||||
add_dependencies(server_zone Common xivdat mysqlConnector )
|
||||
add_dependencies(server_zone common xivdat mysqlConnector )
|
||||
|
||||
set_target_properties(server_zone PROPERTIES
|
||||
CXX_STANDARD 14
|
||||
|
@ -56,9 +56,9 @@ set_target_properties(server_zone PROPERTIES
|
|||
)
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries ( server_zone Common xivdat pthread mysqlclient mysqlConnector dl z )
|
||||
target_link_libraries ( server_zone common xivdat pthread mysqlclient mysqlConnector dl z )
|
||||
else()
|
||||
target_link_libraries ( server_zone Common xivdat libmysql zlib1 mysqlConnector )
|
||||
target_link_libraries ( server_zone common xivdat libmysql zlib1 mysqlConnector )
|
||||
endif()
|
||||
|
||||
target_link_libraries(server_zone ${Boost_LIBRARIES} )
|
||||
|
|
|
@ -24,9 +24,9 @@ set_target_properties(exd_common_gen PROPERTIES
|
|||
)
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries (exd_common_gen Common xivdat pthread mysqlclient dl z)
|
||||
target_link_libraries (exd_common_gen common xivdat pthread mysqlclient dl z)
|
||||
else()
|
||||
target_link_libraries (exd_common_gen Common xivdat libmysql zlib1)
|
||||
target_link_libraries (exd_common_gen common xivdat libmysql zlib1)
|
||||
|
||||
# ignore unchecked iterators warnings from msvc
|
||||
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
|
||||
|
|
|
@ -24,9 +24,9 @@ set_target_properties(exd_struct_gen PROPERTIES
|
|||
)
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries (exd_struct_gen Common xivdat pthread mysqlclient dl z)
|
||||
target_link_libraries (exd_struct_gen common xivdat pthread mysqlclient dl z)
|
||||
else()
|
||||
target_link_libraries (exd_struct_gen Common xivdat libmysql zlib1)
|
||||
target_link_libraries (exd_struct_gen common xivdat libmysql zlib1)
|
||||
endif()
|
||||
|
||||
target_link_libraries(exd_struct_gen ${Boost_LIBRARIES} ${Boost_LIBRARIES})
|
||||
|
|
|
@ -24,9 +24,9 @@ set_target_properties(exd_struct_test PROPERTIES
|
|||
)
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries (exd_struct_test Common xivdat pthread mysqlclient dl z)
|
||||
target_link_libraries (exd_struct_test common xivdat pthread mysqlclient dl z)
|
||||
else()
|
||||
target_link_libraries (exd_struct_test Common xivdat libmysql zlib1)
|
||||
target_link_libraries (exd_struct_test common xivdat libmysql zlib1)
|
||||
endif()
|
||||
|
||||
target_link_libraries(exd_struct_test ${Boost_LIBRARIES} ${Boost_LIBRARIES})
|
||||
|
|
|
@ -30,9 +30,9 @@ set_target_properties(quest_parse PROPERTIES
|
|||
)
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries (quest_parse Common xivdat pthread mysqlclient dl z)
|
||||
target_link_libraries (quest_parse common xivdat pthread mysqlclient dl z)
|
||||
else()
|
||||
target_link_libraries (quest_parse Common xivdat libmysql zlib1)
|
||||
target_link_libraries (quest_parse common xivdat libmysql zlib1)
|
||||
endif()
|
||||
|
||||
target_link_libraries(quest_parse ${Boost_LIBRARIES} ${Boost_LIBRARIES})
|
||||
|
|
Loading…
Add table
Reference in a new issue