Integrating precompiled headers support (might speed up compilation). Currently disabled (in .pro files).

This commit is contained in:
lotodore
2009-05-07 22:36:51 +00:00
parent e813c49fe5
commit ac4c2e9aef
36 changed files with 133 additions and 73 deletions
+2 -1
View File
@@ -21,8 +21,9 @@
#ifndef _CLIENTCALLBACK_H_
#define _CLIENTCALLBACK_H_
#include <string>
#include <boost/shared_ptr.hpp>
#include <string>
#include <playerdata.h>
#include <game_defs.h>
#include <gamedata.h>
+2 -1
View File
@@ -21,10 +21,11 @@
#ifndef _CLIENTCONTEXT_H_
#define _CLIENTCONTEXT_H_
#include <boost/shared_ptr.hpp>
#include <net/netcontext.h>
#include <net/receivebuffer.h>
#include <net/sessiondata.h>
#include <boost/shared_ptr.hpp>
class ClientContext : public NetContext
+3 -2
View File
@@ -21,10 +21,11 @@
#ifndef _CLIENTSTATE_H_
#define _CLIENTSTATE_H_
#include <net/socket_helper.h> // needed for correct order of header files.
#include <third_party/boost/timers.hpp>
#include <string>
#include <memory>
#include <third_party/boost/timers.hpp>
#include <net/socket_helper.h> // needed for correct order of header files.
#define CLIENT_INITIAL_STATE ClientStateInit
+3 -2
View File
@@ -21,14 +21,15 @@
#ifndef _CLIENTTHREAD_H_
#define _CLIENTTHREAD_H_
#include <boost/shared_ptr.hpp>
#include <string>
#include <core/thread.h>
#include <net/senderinterface.h>
#include <guiinterface.h>
#include <serverdata.h>
#include <playerdata.h>
#include <gamedata.h>
#include <string>
#include <boost/shared_ptr.hpp>
class ClientContext;
class ClientState;
+3 -3
View File
@@ -21,11 +21,11 @@
#ifndef _DOWNLOADERTHREAD_H_
#define _DOWNLOADERTHREAD_H_
#include <core/thread.h>
#include <boost/shared_ptr.hpp>
#include <queue>
#include <vector>
#include <boost/shared_ptr.hpp>
#include <core/thread.h>
#define DOWNLOADER_THREAD_TERMINATE_TIMEOUT THREAD_WAIT_INFINITE
class DownloadHelper;
+3 -2
View File
@@ -21,11 +21,12 @@
#ifndef _IRCTHREAD_H_
#define _IRCTHREAD_H_
#include <net/irccallback.h>
#include <core/thread.h>
#include <third_party/boost/timers.hpp>
#include <string>
#include <net/irccallback.h>
#include <core/thread.h>
struct IrcContext;
class IrcThread : public Thread
+3 -3
View File
@@ -21,15 +21,15 @@
#ifndef _NETPACKET_H_
#define _NETPACKET_H_
#include <vector>
#include <list>
#include <net/socket_helper.h>
#include <playerdata.h>
#include <game_defs.h>
#include <gamedata.h>
#include <core/crypthelper.h>
#include <vector>
#include <list>
#define NET_VERSION_MAJOR 5
#define NET_VERSION_MINOR 2
-1
View File
@@ -22,7 +22,6 @@
#define _RECEIVEBUFFER_H_
#include <net/netpacket.h>
#include <list>
// MUST be larger than MAX_PACKET_SIZE
#define RECV_BUF_SIZE 2 * MAX_PACKET_SIZE
+3 -2
View File
@@ -21,12 +21,13 @@
#ifndef _RECEIVERHELPER_H_
#define _RECEIVERHELPER_H_
#include <boost/shared_ptr.hpp>
#include <deque>
#include <net/socket_helper.h>
#include <net/netpacket.h>
#include <net/receivebuffer.h>
#include <deque>
#include <boost/shared_ptr.hpp>
class ReceiverHelper
{
+2 -2
View File
@@ -21,9 +21,9 @@
#ifndef _RESOLVERTHREAD_H_
#define _RESOLVERTHREAD_H_
#include <core/thread.h>
#include <string>
#include <boost/shared_ptr.hpp>
#include <core/thread.h>
class ClientContext;
-1
View File
@@ -23,7 +23,6 @@
#include <net/sessiondata.h>
#include <net/netpacket.h>
#include <boost/shared_ptr.hpp>
class SenderInterface
{
-3
View File
@@ -26,9 +26,6 @@
#include <net/netpacket.h>
#include <net/sendercallback.h>
#include <list>
#include <boost/shared_ptr.hpp>
class SessionData;
class SendDataManager;
#define SENDER_THREAD_TERMINATE_TIMEOUT THREAD_WAIT_INFINITE
+2 -1
View File
@@ -22,9 +22,10 @@
#define _SERVERACCEPTTHREAD_H_
#include <boost/asio.hpp>
#include <string>
#include <game_defs.h>
#include <gui/guiinterface.h>
#include <string>
class ServerLobbyThread;
-1
View File
@@ -23,7 +23,6 @@
#include <net/servergamethread.h>
#include <playerdata.h>
#include <third_party/boost/timers.hpp>
#ifdef _MSC_VER
+3 -2
View File
@@ -21,12 +21,13 @@
#ifndef _SERVERGAMETHREAD_H_
#define _SERVERGAMETHREAD_H_
#include <third_party/boost/timers.hpp>
#include <deque>
#include <net/sessionmanager.h>
#include <gui/guiinterface.h>
#include <gamedata.h>
#include <third_party/boost/timers.hpp>
#include <deque>
#define GAME_THREAD_TERMINATE_TIMEOUT THREAD_WAIT_INFINITE
+3 -4
View File
@@ -22,16 +22,15 @@
#define _SERVERRECVTHREAD_H_
#include <boost/asio.hpp>
#include <deque>
#include <boost/regex.hpp>
#include <core/timermanager.h>
#include <net/sessionmanager.h>
#include <net/netpacket.h>
#include <gui/guiinterface.h>
#include <gamedata.h>
#include <deque>
#include <list>
#include <boost/regex.hpp>
#include <third_party/boost/timers.hpp>
#define NET_LOBBY_THREAD_TERMINATE_TIMEOUT_MSEC 20000
#define NET_ADMIN_IRC_TERMINATE_TIMEOUT_MSEC 4000
+3 -3
View File
@@ -22,13 +22,13 @@
#define _SERVERMANAGER_H_
#include <boost/asio.hpp>
#include <game_defs.h>
#include <gui/guiinterface.h>
#include <third_party/boost/timers.hpp>
#include <string>
#include <list>
#include <game_defs.h>
#include <gui/guiinterface.h>
class ServerLobbyThread;
class ServerAcceptThread;
class SenderThread;
+4 -3
View File
@@ -24,12 +24,13 @@
typedef unsigned SessionId;
#include <boost/asio.hpp>
#include <boost/thread.hpp>
#include <third_party/boost/timers.hpp>
#include <string>
#include <net/socket_helper.h>
#include <net/receivebuffer.h>
#include <net/sessiondatacallback.h>
#include <string>
#include <boost/thread.hpp>
#include <third_party/boost/timers.hpp>
#define INVALID_SESSION 0
#define SESSION_ID_INIT INVALID_SESSION
+3 -4
View File
@@ -21,14 +21,13 @@
#ifndef _SESSIONMANAGER_H_
#define _SESSIONMANAGER_H_
#include <boost/function.hpp>
#include <map>
#include <net/sessiondata.h>
#include <playerdata.h>
#include <core/thread.h>
#include <boost/function.hpp>
#include <map>
#include <string>
class SenderInterface;
class NetPacket;
+1 -1
View File
@@ -21,8 +21,8 @@
#ifndef _TRANSFERHELPER_H_
#define _TRANSFERHELPER_H_
#include <string>
#include <boost/shared_ptr.hpp>
#include <string>
struct TransferData;
+2 -2
View File
@@ -21,10 +21,10 @@
#ifndef _UPLOADERTHREAD_H_
#define _UPLOADERTHREAD_H_
#include <boost/shared_ptr.hpp>
#include <queue>
#include <core/thread.h>
#include <queue>
#include <boost/shared_ptr.hpp>
#define UPLOADER_THREAD_TERMINATE_TIMEOUT THREAD_WAIT_INFINITE
class UploadHelper;