247 lines
7.5 KiB
Prolog
247 lines
7.5 KiB
Prolog
# QMake pro-file for PokerTH common library
|
|
|
|
TEMPLATE = lib
|
|
CODECFORSRC = UTF-8
|
|
|
|
CONFIG += staticlib thread exceptions rtti stl warn_on
|
|
UI_DIR = uics
|
|
TARGET = lib/pokerth_lib
|
|
MOC_DIR = mocs
|
|
OBJECTS_DIR = obj
|
|
DEFINES += ENABLE_IPV6
|
|
QT -= core gui
|
|
#PRECOMPILED_HEADER = src/pch_lib.h
|
|
|
|
INCLUDEPATH += . \
|
|
src \
|
|
src/engine \
|
|
src/gui \
|
|
src/gui/qt \
|
|
src/gui/qt/qttools \
|
|
src/net \
|
|
src/engine/local_engine \
|
|
src/engine/network_engine \
|
|
src/config \
|
|
src/third_party/tinyxml \
|
|
src/third_party/libircclient/include \
|
|
src/third_party/asn1 \
|
|
src/core
|
|
|
|
DEPENDPATH += . \
|
|
src \
|
|
src/config \
|
|
src/core \
|
|
src/engine \
|
|
src/gui \
|
|
src/gui/qt \
|
|
src/gui/generic \
|
|
src/net \
|
|
src/core/common \
|
|
src/third_party/tinyxml \
|
|
src/third_party/libircclient \
|
|
src/third_party/libircclient/src \
|
|
src/third_party/libircclient/include \
|
|
src/engine/local_engine \
|
|
src/engine/network_engine \
|
|
src/net/common \
|
|
|
|
# Input
|
|
HEADERS += \
|
|
src/game.h \
|
|
src/session.h \
|
|
src/playerdata.h \
|
|
src/gamedata.h \
|
|
src/config/configfile.h \
|
|
src/core/thread.h \
|
|
src/core/crypthelper.h \
|
|
src/core/avatarmanager.h \
|
|
src/core/pokerthexception.h \
|
|
src/engine/boardinterface.h \
|
|
src/engine/enginefactory.h \
|
|
src/engine/handinterface.h \
|
|
src/engine/playerinterface.h \
|
|
src/engine/berointerface.h \
|
|
src/gui/guiinterface.h \
|
|
src/net/chatcleanermanager.h \
|
|
src/net/chatcleanercallback.h \
|
|
src/net/clientcallback.h \
|
|
src/net/clientcontext.h \
|
|
src/net/clientexception.h \
|
|
src/net/netcontext.h \
|
|
src/net/clientstate.h \
|
|
src/net/clientthread.h \
|
|
src/net/genericsocket.h \
|
|
src/net/netpacket.h \
|
|
src/net/senderhelper.h \
|
|
src/net/sendercallback.h \
|
|
src/net/serverexception.h \
|
|
src/net/serveraccepthelper.h \
|
|
src/net/servergame.h \
|
|
src/net/servergamestate.h \
|
|
src/net/serverlobbythread.h \
|
|
src/net/serverbanmanager.h \
|
|
src/net/servercallback.h \
|
|
src/net/serveradminbot.h \
|
|
src/net/serverlobbybot.h \
|
|
src/net/serverircbotcallback.h \
|
|
src/net/sessiondata.h \
|
|
src/net/sessiondatacallback.h \
|
|
src/net/sessionmanager.h \
|
|
src/net/socket_helper.h \
|
|
src/net/socket_msg.h \
|
|
src/net/socket_startup.h \
|
|
src/net/irccallback.h \
|
|
src/net/ircthread.h \
|
|
src/net/netexception.h \
|
|
src/net/receiverhelper.h \
|
|
src/net/servermanager.h \
|
|
src/net/transferdata.h \
|
|
src/net/transferhelper.h \
|
|
src/net/uploaderthread.h \
|
|
src/net/uploadhelper.h \
|
|
src/net/downloaderthread.h \
|
|
src/net/downloadhelper.h \
|
|
src/net/encodedpacket.h \
|
|
src/net/internalchatcleanerpacket.h \
|
|
src/third_party/tinyxml/tinystr.h \
|
|
src/third_party/tinyxml/tinyxml.h \
|
|
src/third_party/libircclient/include/libircclient.h \
|
|
src/third_party/libircclient/include/config.h \
|
|
src/engine/local_engine/cardsvalue.h \
|
|
src/engine/local_engine/localboard.h \
|
|
src/engine/local_engine/localenginefactory.h \
|
|
src/engine/local_engine/localhand.h \
|
|
src/engine/local_engine/localplayer.h \
|
|
src/engine/local_engine/localberopreflop.h \
|
|
src/engine/local_engine/localberoflop.h \
|
|
src/engine/local_engine/localberoturn.h \
|
|
src/engine/local_engine/localberoriver.h \
|
|
src/engine/local_engine/localberopostriver.h \
|
|
src/engine/local_engine/tools.h \
|
|
src/engine/local_engine/localbero.h \
|
|
src/engine/local_engine/localexception.h \
|
|
src/engine/local_engine/arraydata.h \
|
|
src/engine/network_engine/clientboard.h \
|
|
src/engine/network_engine/clientenginefactory.h \
|
|
src/engine/network_engine/clienthand.h \
|
|
src/engine/network_engine/clientplayer.h \
|
|
src/engine/network_engine/clientbero.h \
|
|
src/db/serverdbcallback.h \
|
|
src/db/serverdbfactory.h \
|
|
src/db/serverdbinterface.h \
|
|
src/db/serverdbgeneric.h \
|
|
src/db/serverdbfactorygeneric.h \
|
|
src/gui/qttoolsinterface.h \
|
|
src/gui/generic/serverguiwrapper.h
|
|
|
|
SOURCES += \
|
|
src/game.cpp \
|
|
src/session.cpp \
|
|
src/playerdata.cpp \
|
|
src/config/configfile.cpp \
|
|
src/engine/boardinterface.cpp \
|
|
src/engine/enginefactory.cpp \
|
|
src/engine/handinterface.cpp \
|
|
src/engine/playerinterface.cpp \
|
|
src/engine/berointerface.cpp \
|
|
src/gui/guiinterface.cpp \
|
|
src/core/common/thread.cpp \
|
|
src/core/common/crypthelper.cpp \
|
|
src/core/common/avatarmanager.cpp \
|
|
src/core/common/pokerthexception.cpp \
|
|
src/third_party/tinyxml/tinystr.cpp \
|
|
src/third_party/tinyxml/tinyxml.cpp \
|
|
src/third_party/tinyxml/tinyxmlerror.cpp \
|
|
src/third_party/tinyxml/tinyxmlparser.cpp \
|
|
src/third_party/libircclient/src/libircclient.c \
|
|
src/engine/local_engine/cardsvalue.cpp \
|
|
src/engine/local_engine/localboard.cpp \
|
|
src/engine/local_engine/localenginefactory.cpp \
|
|
src/engine/local_engine/localhand.cpp \
|
|
src/engine/local_engine/localplayer.cpp \
|
|
src/engine/local_engine/localberopreflop.cpp \
|
|
src/engine/local_engine/localberoflop.cpp \
|
|
src/engine/local_engine/localberoturn.cpp \
|
|
src/engine/local_engine/localberoriver.cpp \
|
|
src/engine/local_engine/localberopostriver.cpp \
|
|
src/engine/local_engine/tools.cpp \
|
|
src/engine/local_engine/localbero.cpp \
|
|
src/engine/local_engine/localexception.cpp \
|
|
src/engine/local_engine/arraydata.cpp \
|
|
src/engine/network_engine/clientboard.cpp \
|
|
src/engine/network_engine/clientenginefactory.cpp \
|
|
src/engine/network_engine/clienthand.cpp \
|
|
src/engine/network_engine/clientplayer.cpp \
|
|
src/engine/network_engine/clientbero.cpp \
|
|
src/net/common/chatcleanermanager.cpp \
|
|
src/net/common/chatcleanercallback.cpp \
|
|
src/net/common/clientcallback.cpp \
|
|
src/net/common/clientcontext.cpp \
|
|
src/net/common/clientstate.cpp \
|
|
src/net/common/clientthread.cpp \
|
|
src/net/common/downloadhelper.cpp \
|
|
src/net/common/downloaderthread.cpp \
|
|
src/net/common/netpacket.cpp \
|
|
src/net/common/senderhelper.cpp \
|
|
src/net/common/sendercallback.cpp \
|
|
src/net/common/serverexception.cpp \
|
|
src/net/common/serveraccepthelper.cpp \
|
|
src/net/common/servergame.cpp \
|
|
src/net/common/servergamestate.cpp \
|
|
src/net/common/serverlobbythread.cpp \
|
|
src/net/common/serverbanmanager.cpp \
|
|
src/net/common/servercallback.cpp \
|
|
src/net/common/serveradminbot.cpp \
|
|
src/net/common/serverlobbybot.cpp \
|
|
src/net/common/serverircbotcallback.cpp \
|
|
src/net/common/sessiondata.cpp \
|
|
src/net/common/sessiondatacallback.cpp \
|
|
src/net/common/sessionmanager.cpp \
|
|
src/net/common/socket_startup.cpp \
|
|
src/net/common/clientexception.cpp \
|
|
src/net/common/netcontext.cpp \
|
|
src/net/common/netexception.cpp \
|
|
src/net/common/receiverhelper.cpp \
|
|
src/net/common/irccallback.cpp \
|
|
src/net/common/ircthread.cpp \
|
|
src/net/common/servermanager.cpp \
|
|
src/net/common/transferhelper.cpp \
|
|
src/net/common/uploaderthread.cpp \
|
|
src/net/common/uploadhelper.cpp \
|
|
src/net/common/encodedpacket.cpp \
|
|
src/net/common/internalchatcleanerpacket.cpp \
|
|
src/gui/generic/serverguiwrapper.cpp \
|
|
src/gui/qttoolsinterface.cpp
|
|
|
|
official_server{
|
|
INCLUDEPATH += pkth_stat/daemon_lib/src
|
|
DEFINES += POKERTH_OFFICIAL_SERVER
|
|
}
|
|
|
|
win32{
|
|
DEFINES += CURL_STATICLIB
|
|
DEFINES += _WIN32_WINNT=0x0501
|
|
DEPENDPATH += src/net/win32/ src/core/win32
|
|
INCLUDEPATH += ../boost/ ../GnuTLS/include ../gsasl/include ../curl/include ../zlib
|
|
}
|
|
!win32{
|
|
##### My release static build options
|
|
#QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
|
|
}
|
|
|
|
mac{
|
|
# make it universal
|
|
CONFIG += x86
|
|
CONFIG -= ppc
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4
|
|
|
|
# for universal-compilation on PPC-Mac uncomment the following line
|
|
# on Intel-Mac you have to comment this line out or build will fail.
|
|
# QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/
|
|
|
|
INCLUDEPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/include/
|
|
INCLUDEPATH += /Library/Frameworks/SDL.framework/Headers
|
|
INCLUDEPATH += /Library/Frameworks/SDL_mixer.framework/Headers
|
|
INCLUDEPATH += /opt/local/include
|
|
}
|