Buildsystem: Make core buildable under Windows again
- changed OpenSSL detection of headers around slightly - changed paths to MySQL-headers on Windows in a few files - removed precompiled header for scripts being built when building game - added requirement of building revision.h to be built before building shared - added some generic buildfixes (thanks zor) - use resource-files, allowing for icons to show up on windows --HG-- branch : trunk
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
#include "resource.h"
|
||||
#include "../shared/revision.h"
|
||||
#include "revision.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -16,8 +16,9 @@ set(collision_STAT_SRCS
|
||||
|
||||
include_directories(
|
||||
${ACE_INCLUDE_DIR}
|
||||
${MYSQL_INCLUDE_DIR}
|
||||
${OPENSSL_INCLUDE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/externals/g3dlite
|
||||
${CMAKE_SOURCE_DIR}/externals/mysql
|
||||
${CMAKE_SOURCE_DIR}/src/server/shared
|
||||
${CMAKE_SOURCE_DIR}/src/server/shared/Debugging
|
||||
${CMAKE_SOURCE_DIR}/src/server/shared/Dynamic
|
||||
|
||||
@@ -50,7 +50,6 @@ file(GLOB_RECURSE sources_Spells Spells/*.cpp Spells/*.h)
|
||||
file(GLOB_RECURSE sources_Tools Tools/*.cpp Tools/*.h)
|
||||
file(GLOB_RECURSE sources_Weather Weather/*.cpp Weather/*.h)
|
||||
file(GLOB_RECURSE sources_World World/*.cpp World/*.h)
|
||||
file(GLOB_RECURSE sources_PrecompiledHeaders PrecompiledHeaders/*.cpp PrecompiledHeaders/*.h)
|
||||
|
||||
# Create game-libary
|
||||
set(game_STAT_SRCS
|
||||
@@ -92,6 +91,10 @@ set(game_STAT_SRCS
|
||||
)
|
||||
|
||||
if( MSVC )
|
||||
set(sources_PrecompiledHeaders
|
||||
PrecompiledHeaders/gamePCH.cpp
|
||||
PrecompiledHeaders/gamePCH.h
|
||||
)
|
||||
set(game_STAT_SRCS
|
||||
${game_STAT_SRCS}
|
||||
${sources_PrecompiledHeaders}
|
||||
@@ -99,6 +102,9 @@ if( MSVC )
|
||||
endif()
|
||||
|
||||
include_directories(
|
||||
${ACE_INCLUDE_DIR}
|
||||
${MYSQL_INCLUDE_DIR}
|
||||
${OPENSSL_INCLUDE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_SOURCE_DIR}/externals/mersennetwister
|
||||
${CMAKE_SOURCE_DIR}/externals/zlib
|
||||
@@ -184,8 +190,6 @@ include_directories(
|
||||
${CMAKE_SOURCE_DIR}/src/server/game/Tools
|
||||
${CMAKE_SOURCE_DIR}/src/server/game/Weather
|
||||
${CMAKE_SOURCE_DIR}/src/server/game/World
|
||||
${MYSQL_INCLUDE_DIR}
|
||||
${ACE_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
add_library(game STATIC ${game_STAT_SRCS})
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include "ace/Singleton.h"
|
||||
#include "SQLStorage.h"
|
||||
#include "Vehicle.h"
|
||||
#include "Weather.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include <string>
|
||||
#include <map>
|
||||
@@ -294,20 +295,6 @@ struct QuestPOI
|
||||
typedef std::vector<QuestPOI> QuestPOIVector;
|
||||
typedef UNORDERED_MAP<uint32, QuestPOIVector> QuestPOIMap;
|
||||
|
||||
#define WEATHER_SEASONS 4
|
||||
struct WeatherSeasonChances
|
||||
{
|
||||
uint32 rainChance;
|
||||
uint32 snowChance;
|
||||
uint32 stormChance;
|
||||
};
|
||||
|
||||
struct WeatherData
|
||||
{
|
||||
WeatherSeasonChances data[WEATHER_SEASONS];
|
||||
uint32 ScriptId;
|
||||
};
|
||||
|
||||
struct GraveYardData
|
||||
{
|
||||
uint32 safeLocId;
|
||||
|
||||
@@ -31,6 +31,20 @@
|
||||
|
||||
class Player;
|
||||
|
||||
#define WEATHER_SEASONS 4
|
||||
struct WeatherSeasonChances
|
||||
{
|
||||
uint32 rainChance;
|
||||
uint32 snowChance;
|
||||
uint32 stormChance;
|
||||
};
|
||||
|
||||
struct WeatherData
|
||||
{
|
||||
WeatherSeasonChances data[WEATHER_SEASONS];
|
||||
uint32 ScriptId;
|
||||
};
|
||||
|
||||
enum WeatherState
|
||||
{
|
||||
WEATHER_STATE_FINE = 0,
|
||||
|
||||
@@ -74,6 +74,8 @@ endif()
|
||||
|
||||
include_directories(
|
||||
${ACE_INCLUDE_DIR}
|
||||
${MYSQL_INCLUDE_DIR}
|
||||
${OPENSSL_INCLUDE_DIR}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_SOURCE_DIR}/externals/mersennetwister
|
||||
${CMAKE_SOURCE_DIR}/externals/SFMT
|
||||
@@ -92,12 +94,13 @@ include_directories(
|
||||
${CMAKE_SOURCE_DIR}/src/server/shared/Threading
|
||||
${CMAKE_SOURCE_DIR}/src/server/shared/Utilities
|
||||
${CMAKE_SOURCE_DIR}/src/server/game/Entities/Object
|
||||
${OPENSSL_INCLUDE_DIR}
|
||||
${MYSQL_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_library(shared STATIC ${shared_STAT_SRCS})
|
||||
|
||||
add_dependencies(shared revision.h)
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(shared
|
||||
ace
|
||||
|
||||
@@ -28,11 +28,11 @@
|
||||
#include "ace/Guard_T.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define FD_SETSIZE 1024
|
||||
#include <winsock2.h>
|
||||
#include <mysql/mysql.h>
|
||||
#define FD_SETSIZE 1024
|
||||
#include <winsock2.h>
|
||||
#include <mysql.h>
|
||||
#else
|
||||
#include <mysql.h>
|
||||
#include <mysql/mysql.h>
|
||||
#endif
|
||||
|
||||
class SqlTransaction;
|
||||
|
||||
@@ -27,11 +27,11 @@
|
||||
#include "Field.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define FD_SETSIZE 1024
|
||||
#include <winsock2.h>
|
||||
#include <mysql.h>
|
||||
#define FD_SETSIZE 1024
|
||||
#include <winsock2.h>
|
||||
#include <mysql.h>
|
||||
#else
|
||||
#include <mysql.h>
|
||||
#include <mysql/mysql.h>
|
||||
#endif
|
||||
|
||||
class QueryResult
|
||||
|
||||
@@ -38,7 +38,6 @@ include_directories(
|
||||
${CMAKE_SOURCE_DIR}/externals/gsoap
|
||||
${CMAKE_SOURCE_DIR}/externals/sockets/include
|
||||
${CMAKE_SOURCE_DIR}/externals/mersennetwister
|
||||
${CMAKE_SOURCE_DIR}/dep/include
|
||||
${CMAKE_SOURCE_DIR}/src/server/collision
|
||||
${CMAKE_SOURCE_DIR}/src/server/collision/Management
|
||||
${CMAKE_SOURCE_DIR}/src/server/shared
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
#include "resource.h"
|
||||
#include "../shared/revision.h"
|
||||
#include "revision.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user