Integrating precompiled headers support (might speed up compilation). Currently disabled (in .pro files).
This commit is contained in:
@@ -14,6 +14,8 @@ OBJECTS_DIR = obj
|
||||
DEFINES += ENABLE_IPV6
|
||||
DEFINES += PREFIX=\"$${PREFIX}\"
|
||||
TARGET = pokerth
|
||||
#PRECOMPILED_HEADER = src/pch_game.h
|
||||
|
||||
RESOURCES = src/gui/qt/resources/pokerth.qrc
|
||||
INCLUDEPATH += . \
|
||||
src \
|
||||
|
||||
@@ -12,6 +12,7 @@ MOC_DIR = mocs
|
||||
OBJECTS_DIR = obj
|
||||
DEFINES += ENABLE_IPV6
|
||||
QT -= core gui
|
||||
#PRECOMPILED_HEADER = src/pch_lib.h
|
||||
|
||||
INCLUDEPATH += . \
|
||||
src \
|
||||
|
||||
@@ -18,6 +18,7 @@ DEFINES += POKERTH_DEDICATED_SERVER
|
||||
DEFINES += ENABLE_IPV6
|
||||
DEFINES += PREFIX=\"$${PREFIX}\"
|
||||
QT -= core gui
|
||||
#PRECOMPILED_HEADER = src/pch_lib.h
|
||||
|
||||
INCLUDEPATH += . \
|
||||
src \
|
||||
|
||||
@@ -21,15 +21,13 @@
|
||||
#ifndef _AVATARMANAGER_H_
|
||||
#define _AVATARMANAGER_H_
|
||||
|
||||
#include <net/netpacket.h>
|
||||
#include <playerdata.h>
|
||||
#include <core/crypthelper.h>
|
||||
#include <ctime>
|
||||
#include <boost/thread.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <map>
|
||||
#include <list>
|
||||
|
||||
#include <boost/thread.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <net/netpacket.h>
|
||||
|
||||
#define MIN_AVATAR_FILE_SIZE 32
|
||||
#define MAX_AVATAR_FILE_SIZE 30720
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <list>
|
||||
|
||||
#include "game_defs.h"
|
||||
#include <game_defs.h>
|
||||
|
||||
class PlayerInterface;
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
#ifndef BOARDINTERFACE_H
|
||||
#define BOARDINTERFACE_H
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
class PlayerInterface;
|
||||
class HandInterface;
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
#include "playerinterface.h"
|
||||
#include "berointerface.h"
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
|
||||
class EngineFactory{
|
||||
public:
|
||||
|
||||
@@ -20,10 +20,6 @@
|
||||
#ifndef HANDINTERFACE_H
|
||||
#define HANDINTERFACE_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include "guiinterface.h"
|
||||
#include "boardinterface.h"
|
||||
#include "playerinterface.h"
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
#include "handinterface.h"
|
||||
#include <playerdata.h>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
class SessionData;
|
||||
|
||||
class PlayerInterface{
|
||||
|
||||
+1
-4
@@ -20,13 +20,10 @@
|
||||
#ifndef GAME_H
|
||||
#define GAME_H
|
||||
|
||||
#include "game_defs.h"
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include "gamedata.h"
|
||||
#include "playerdata.h"
|
||||
#include "configfile.h"
|
||||
|
||||
#include <string>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <third_party/boost/timers.hpp>
|
||||
|
||||
class GuiInterface;
|
||||
|
||||
+4
-1
@@ -21,11 +21,14 @@
|
||||
#ifndef _GAMEDATA_H_
|
||||
#define _GAMEDATA_H_
|
||||
|
||||
#include <playerdata.h>
|
||||
#include <list>
|
||||
#include <string>
|
||||
#include <third_party/boost/timers.hpp>
|
||||
|
||||
#define SERVER_COMPUTER_PLAYER_NAME "Computer"
|
||||
|
||||
typedef std::list<unsigned> PlayerIdList;
|
||||
|
||||
enum GameMode
|
||||
{
|
||||
GAME_MODE_CREATED = 1,
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
@@ -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
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
#include <net/sessiondata.h>
|
||||
#include <net/netpacket.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
class SenderInterface
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
#include <net/servergamethread.h>
|
||||
#include <playerdata.h>
|
||||
#include <third_party/boost/timers.hpp>
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
#ifndef _TRANSFERHELPER_H_
|
||||
#define _TRANSFERHELPER_H_
|
||||
|
||||
#include <string>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <string>
|
||||
|
||||
struct TransferData;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2009 by Lothar May *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
#include "pch_lib.h"
|
||||
|
||||
#if defined __cplusplus
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtCore>
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,40 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2009 by Lothar May *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
#if defined __cplusplus
|
||||
|
||||
/* Note: ASIO needs to be included first! */
|
||||
#include <boost/asio.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
#include <boost/thread/barrier.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/regex.hpp>
|
||||
#include <boost/function.hpp>
|
||||
#include <third_party/boost/timers.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <deque>
|
||||
|
||||
#else
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#endif
|
||||
+3
-4
@@ -21,13 +21,13 @@
|
||||
#ifndef _PLAYERDATA_H_
|
||||
#define _PLAYERDATA_H_
|
||||
|
||||
#include <core/crypthelper.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
#include <core/crypthelper.h>
|
||||
|
||||
class SessionData;
|
||||
|
||||
@@ -110,7 +110,6 @@ private:
|
||||
mutable boost::mutex m_dataMutex;
|
||||
};
|
||||
|
||||
typedef std::list<unsigned> PlayerIdList;
|
||||
typedef std::list<std::pair<unsigned, unsigned> > RemovePlayerList;
|
||||
typedef std::list<boost::shared_ptr<PlayerData> > PlayerDataList;
|
||||
typedef std::map<unsigned, boost::shared_ptr<PlayerData> > PlayerDataMap;
|
||||
|
||||
+4
-4
@@ -19,12 +19,14 @@
|
||||
***************************************************************************/
|
||||
#ifndef STDSESSION_H
|
||||
#define STDSESSION_H
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <string>
|
||||
|
||||
#include "serverdata.h"
|
||||
#include "gamedata.h"
|
||||
#include "playerdata.h"
|
||||
#include "game_defs.h"
|
||||
#include <string>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <core/crypthelper.h>
|
||||
|
||||
class GuiInterface;
|
||||
@@ -117,6 +119,4 @@ private:
|
||||
QtToolsInterface *myQtToolsInterface;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user