Reformatting .pro files, adding test skeleton.

This commit is contained in:
lotodore
2010-10-13 17:47:16 +00:00
parent b87fd5162f
commit 3b1ed27175
7 changed files with 957 additions and 934 deletions
+38 -38
View File
@@ -6,58 +6,58 @@ QT += network
QT -= gui QT -= gui
TARGET = chatcleaner TARGET = chatcleaner
CONFIG += console \ CONFIG += console \
debug debug
CONFIG -= app_bundle CONFIG -= app_bundle
MOC_DIR = mocs MOC_DIR = mocs
OBJECTS_DIR = obj OBJECTS_DIR = obj
TEMPLATE = app TEMPLATE = app
INCLUDEPATH += src/ \ INCLUDEPATH += src/ \
src/third_party/tinyxml \ src/third_party/tinyxml \
src/chatcleaner/ \ src/chatcleaner/ \
src/third_party/asn1/ \ src/third_party/asn1/ \
src/net/ src/net/
DEPENDPATH += src/ \ DEPENDPATH += src/ \
src/third_party/tinyxml \ src/third_party/tinyxml \
src/chatcleaner/ \ src/chatcleaner/ \
src/third_party/asn1/ \ src/third_party/asn1/ \
src/net/ src/net/
SOURCES += chatcleaner.cpp \ SOURCES += chatcleaner.cpp \
cleanerserver.cpp \ cleanerserver.cpp \
messagefilter.cpp \ messagefilter.cpp \
badwordcheck.cpp \ badwordcheck.cpp \
textfloodcheck.cpp \ textfloodcheck.cpp \
cleanerconfig.cpp \ cleanerconfig.cpp \
tinystr.cpp \ tinystr.cpp \
tinyxml.cpp \ tinyxml.cpp \
tinyxmlerror.cpp \ tinyxmlerror.cpp \
tinyxmlparser.cpp \ tinyxmlparser.cpp \
capsfloodcheck.cpp \ capsfloodcheck.cpp \
letterrepeatingcheck.cpp \ letterrepeatingcheck.cpp \
urlcheck.cpp urlcheck.cpp
HEADERS += cleanerserver.h \ HEADERS += cleanerserver.h \
messagefilter.h \ messagefilter.h \
badwordcheck.h \ badwordcheck.h \
textfloodcheck.h \ textfloodcheck.h \
cleanerconfig.h \ cleanerconfig.h \
tinyxml.h \ tinyxml.h \
tinystr.h \ tinystr.h \
capsfloodcheck.h \ capsfloodcheck.h \
letterrepeatingcheck.h \ letterrepeatingcheck.h \
urlcheck.h urlcheck.h
LIBPATH += lib LIBPATH += lib
LIBS += -lpokerth_lib \ LIBS += -lpokerth_lib \
-lpokerth_protocol -lpokerth_protocol
win32 { win32 {
LIBPATH += ../boost/stage/lib LIBPATH += ../boost/stage/lib
INCLUDEPATH += ../boost/ INCLUDEPATH += ../boost/
debug:LIBPATH += Debug/lib debug:LIBPATH += Debug/lib
release:LIBPATH += Release/lib release:LIBPATH += Release/lib
} }
mac { mac {
# make it universal # make it universal
CONFIG += x86 CONFIG += x86
CONFIG -= ppc CONFIG -= ppc
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
LIBPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/lib LIBPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/lib
INCLUDEPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/include/ INCLUDEPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/include/
} }
+1 -1
View File
@@ -1,5 +1,5 @@
# QMake pro-file for PokerTH # QMake pro-file for PokerTH
TEMPLATE = subdirs TEMPLATE = subdirs
SUBDIRS = pokerth_protocol.pro pokerth_db.pro pokerth_lib.pro pokerth_game.pro pokerth_server.pro chatcleaner.pro SUBDIRS = pokerth_protocol.pro pokerth_db.pro pokerth_lib.pro pokerth_game.pro pokerth_server.pro chatcleaner.pro pokerth_tests.pro
CONFIG += ordered CONFIG += ordered
+3 -3
View File
@@ -1,4 +1,4 @@
# QMake pro-file for PokerTH common library # QMake pro-file for PokerTH db library
TEMPLATE = lib TEMPLATE = lib
CODECFORSRC = UTF-8 CODECFORSRC = UTF-8
@@ -37,7 +37,7 @@ SOURCES += \
win32{ win32{
DEFINES += CURL_STATICLIB DEFINES += CURL_STATICLIB
DEFINES += _WIN32_WINNT=0x0501 DEFINES += _WIN32_WINNT=0x0501
DEPENDPATH += src/net/win32/ src/core/win32 DEPENDPATH += src/net/win32/ src/core/win32
INCLUDEPATH += ../boost/ ../GnuTLS/include ../curl/include ../zlib INCLUDEPATH += ../boost/ ../GnuTLS/include ../curl/include ../zlib
} }
@@ -56,7 +56,7 @@ mac{
# on Intel-Mac you have to comment this line out or build will fail. # on Intel-Mac you have to comment this line out or build will fail.
# QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/ # QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/
INCLUDEPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/include/ INCLUDEPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/include/
INCLUDEPATH += /Library/Frameworks/SDL.framework/Headers INCLUDEPATH += /Library/Frameworks/SDL.framework/Headers
INCLUDEPATH += /Library/Frameworks/SDL_mixer.framework/Headers INCLUDEPATH += /Library/Frameworks/SDL_mixer.framework/Headers
} }
+453 -449
View File
@@ -1,14 +1,18 @@
# QMake pro-file for PokerTH game # QMake pro-file for PokerTH game
isEmpty( PREFIX ):PREFIX = /usr
isEmpty( PREFIX ){
PREFIX =/usr
}
TEMPLATE = app TEMPLATE = app
CODECFORSRC = UTF-8 CODECFORSRC = UTF-8
CONFIG += qt \ CONFIG += qt \
thread \ thread \
embed_manifest_exe \ embed_manifest_exe \
exceptions \ exceptions \
rtti \ rtti \
stl \ stl \
warn_on warn_on
include(src/third_party/qtsingleapplication/qtsingleapplication.pri) include(src/third_party/qtsingleapplication/qtsingleapplication.pri)
QT += sql QT += sql
UI_DIR = uics UI_DIR = uics
@@ -21,305 +25,305 @@ TARGET = pokerth
# PRECOMPILED_HEADER = src/pch_game.h # PRECOMPILED_HEADER = src/pch_game.h
RESOURCES = src/gui/qt/resources/pokerth.qrc RESOURCES = src/gui/qt/resources/pokerth.qrc
INCLUDEPATH += . \ INCLUDEPATH += . \
src \ src \
src/engine \ src/engine \
src/gui \ src/gui \
src/net \ src/net \
src/engine/local_engine \ src/engine/local_engine \
src/engine/network_engine \ src/engine/network_engine \
src/config \ src/config \
src/third_party/tinyxml \ src/third_party/tinyxml \
src/third_party/asn1 \ src/third_party/asn1 \
src/gui/qt \ src/gui/qt \
src/gui/qt/connecttoserverdialog \ src/gui/qt/connecttoserverdialog \
src/core \ src/core \
src/gui/qt/sound \ src/gui/qt/sound \
src/gui/qt/qttools \ src/gui/qt/qttools \
src/gui/qt/chattools \ src/gui/qt/chattools \
src/gui/qt/qttools/qthelper \ src/gui/qt/qttools/qthelper \
src/gui/qt/gametable \ src/gui/qt/gametable \
src/gui/qt/gametable/startsplash \ src/gui/qt/gametable/startsplash \
src/gui/qt/gametable/log \ src/gui/qt/gametable/log \
src/gui/qt/aboutpokerth \ src/gui/qt/aboutpokerth \
src/gui/qt/createnetworkgamedialog \ src/gui/qt/createnetworkgamedialog \
src/gui/qt/createinternetgamedialog \ src/gui/qt/createinternetgamedialog \
src/gui/qt/joinnetworkgamedialog \ src/gui/qt/joinnetworkgamedialog \
src/gui/qt/newlocalgamedialog \ src/gui/qt/newlocalgamedialog \
src/gui/qt/settingsdialog \ src/gui/qt/settingsdialog \
src/gui/qt/settingsdialog/selectavatardialog \ src/gui/qt/settingsdialog/selectavatardialog \
src/gui/qt/settingsdialog/manualblindsorderdialog \ src/gui/qt/settingsdialog/manualblindsorderdialog \
src/gui/qt/startnetworkgamedialog \ src/gui/qt/startnetworkgamedialog \
src/gui/qt/startwindow \ src/gui/qt/startwindow \
src/gui/qt/serverlistdialog \ src/gui/qt/serverlistdialog \
src/gui/qt/styles \ src/gui/qt/styles \
src/gui/qt/changecontentdialog \ src/gui/qt/changecontentdialog \
src/gui/qt/changecompleteblindsdialog \ src/gui/qt/changecompleteblindsdialog \
src/gui/qt/internetgamelogindialog \ src/gui/qt/internetgamelogindialog \
src/gui/qt/mymessagedialog \ src/gui/qt/mymessagedialog \
src/gui/qt/gamelobbydialog \ src/gui/qt/gamelobbydialog \
src/gui/qt/timeoutmsgbox src/gui/qt/timeoutmsgbox
DEPENDPATH += . \ DEPENDPATH += . \
src \ src \
src/config \ src/config \
src/core \ src/core \
src/engine \ src/engine \
src/gui \ src/gui \
src/net \ src/net \
src/core/common \ src/core/common \
src/third_party/tinyxml \ src/third_party/tinyxml \
src/engine/local_engine \ src/engine/local_engine \
src/engine/network_engine \ src/engine/network_engine \
src/gui/qt \ src/gui/qt \
src/net/common \ src/net/common \
src/gui/qt/sound \ src/gui/qt/sound \
src/gui/qt/chattools \ src/gui/qt/chattools \
src/gui/qt/gametable \ src/gui/qt/gametable \
src/gui/qt/gametable/startsplash \ src/gui/qt/gametable/startsplash \
src/gui/qt/gametable/log \ src/gui/qt/gametable/log \
src/gui/qt/aboutpokerth \ src/gui/qt/aboutpokerth \
src/gui/qt/connecttoserverdialog \ src/gui/qt/connecttoserverdialog \
src/gui/qt/createinternetgamedialog \ src/gui/qt/createinternetgamedialog \
src/gui/qt/createnetworkgamedialog \ src/gui/qt/createnetworkgamedialog \
src/gui/qt/joinnetworkgamedialog \ src/gui/qt/joinnetworkgamedialog \
src/gui/qt/qttools \ src/gui/qt/qttools \
src/gui/qt/qttools/qthelper \ src/gui/qt/qttools/qthelper \
src/gui/qt/newlocalgamedialog \ src/gui/qt/newlocalgamedialog \
src/gui/qt/settingsdialog \ src/gui/qt/settingsdialog \
src/gui/qt/settingsdialog/selectavatardialog \ src/gui/qt/settingsdialog/selectavatardialog \
src/gui/qt/settingsdialog/manualblindsorderdialog \ src/gui/qt/settingsdialog/manualblindsorderdialog \
src/gui/qt/startnetworkgamedialog \ src/gui/qt/startnetworkgamedialog \
src/gui/qt/startwindow \ src/gui/qt/startwindow \
src/gui/qt/serverlistdialog \ src/gui/qt/serverlistdialog \
src/gui/qt/styles \ src/gui/qt/styles \
src/gui/qt/changecontentdialog \ src/gui/qt/changecontentdialog \
src/gui/qt/internetgamelogindialog \ src/gui/qt/internetgamelogindialog \
src/gui/qt/changecompleteblindsdialog \ src/gui/qt/changecompleteblindsdialog \
src/gui/qt/mymessagedialog \ src/gui/qt/mymessagedialog \
src/gui/qt/gamelobbydialog \ src/gui/qt/gamelobbydialog \
src/gui/qt/timeoutmsgbox src/gui/qt/timeoutmsgbox
# Input # Input
HEADERS += src/game.h \ HEADERS += src/game.h \
src/session.h \ src/session.h \
src/playerdata.h \ src/playerdata.h \
src/gamedata.h \ src/gamedata.h \
src/config/configfile.h \ src/config/configfile.h \
src/core/thread.h \ src/core/thread.h \
src/core/loghelper.h \ src/core/loghelper.h \
src/engine/boardinterface.h \ src/engine/boardinterface.h \
src/engine/enginefactory.h \ src/engine/enginefactory.h \
src/engine/handinterface.h \ src/engine/handinterface.h \
src/engine/playerinterface.h \ src/engine/playerinterface.h \
src/engine/berointerface.h \ src/engine/berointerface.h \
src/gui/guiinterface.h \ src/gui/guiinterface.h \
src/net/clientcallback.h \ src/net/clientcallback.h \
src/net/clientcontext.h \ src/net/clientcontext.h \
src/net/clientexception.h \ src/net/clientexception.h \
src/net/clientstate.h \ src/net/clientstate.h \
src/net/clientthread.h \ src/net/clientthread.h \
src/net/genericsocket.h \ src/net/genericsocket.h \
src/net/netpacket.h \ src/net/netpacket.h \
src/net/senderhelper.h \ src/net/senderhelper.h \
src/net/serveraccepthelper.h \ src/net/serveraccepthelper.h \
src/net/serverlobbythread.h \ src/net/serverlobbythread.h \
src/net/socket_helper.h \ src/net/socket_helper.h \
src/net/socket_msg.h \ src/net/socket_msg.h \
src/net/socket_startup.h \ src/net/socket_startup.h \
src/net/net_helper.h \ src/net/net_helper.h \
src/third_party/tinyxml/tinystr.h \ src/third_party/tinyxml/tinystr.h \
src/third_party/tinyxml/tinyxml.h \ src/third_party/tinyxml/tinyxml.h \
src/engine/local_engine/cardsvalue.h \ src/engine/local_engine/cardsvalue.h \
src/engine/local_engine/localboard.h \ src/engine/local_engine/localboard.h \
src/engine/local_engine/localenginefactory.h \ src/engine/local_engine/localenginefactory.h \
src/engine/local_engine/localhand.h \ src/engine/local_engine/localhand.h \
src/engine/local_engine/localplayer.h \ src/engine/local_engine/localplayer.h \
src/engine/local_engine/localberopreflop.h \ src/engine/local_engine/localberopreflop.h \
src/engine/local_engine/localberoflop.h \ src/engine/local_engine/localberoflop.h \
src/engine/local_engine/localberoturn.h \ src/engine/local_engine/localberoturn.h \
src/engine/local_engine/localberoriver.h \ src/engine/local_engine/localberoriver.h \
src/engine/local_engine/localberopostriver.h \ src/engine/local_engine/localberopostriver.h \
src/engine/local_engine/tools.h \ src/engine/local_engine/tools.h \
src/engine/local_engine/localbero.h \ src/engine/local_engine/localbero.h \
src/engine/network_engine/clientboard.h \ src/engine/network_engine/clientboard.h \
src/engine/network_engine/clientenginefactory.h \ src/engine/network_engine/clientenginefactory.h \
src/engine/network_engine/clienthand.h \ src/engine/network_engine/clienthand.h \
src/engine/network_engine/clientplayer.h \ src/engine/network_engine/clientplayer.h \
src/engine/network_engine/clientbero.h \ src/engine/network_engine/clientbero.h \
src/gui/qt/chattools/chattools.h \ src/gui/qt/chattools/chattools.h \
src/gui/qt/sound/sdlplayer.h \ src/gui/qt/sound/sdlplayer.h \
src/gui/qt/gametable/gametableimpl.h \ src/gui/qt/gametable/gametableimpl.h \
src/gui/qt/gametable/mycardspixmaplabel.h \ src/gui/qt/gametable/mycardspixmaplabel.h \
src/gui/qt/gametable/mysetlabel.h \ src/gui/qt/gametable/mysetlabel.h \
src/gui/qt/gametable/myactionbutton.h \ src/gui/qt/gametable/myactionbutton.h \
src/gui/qt/gametable/mystatuslabel.h \ src/gui/qt/gametable/mystatuslabel.h \
src/gui/qt/gametable/myavatarlabel.h \ src/gui/qt/gametable/myavatarlabel.h \
src/gui/qt/gametable/myrighttabwidget.h \ src/gui/qt/gametable/myrighttabwidget.h \
src/gui/qt/gametable/mylefttabwidget.h \ src/gui/qt/gametable/mylefttabwidget.h \
src/gui/qt/gametable/startsplash/startsplash.h \ src/gui/qt/gametable/startsplash/startsplash.h \
src/gui/qt/gametable/log/log.h \ src/gui/qt/gametable/log/log.h \
src/gui/qt/guiwrapper.h \ src/gui/qt/guiwrapper.h \
src/gui/qt/aboutpokerth/aboutpokerthimpl.h \ src/gui/qt/aboutpokerth/aboutpokerthimpl.h \
src/gui/qt/connecttoserverdialog/connecttoserverdialogimpl.h \ src/gui/qt/connecttoserverdialog/connecttoserverdialogimpl.h \
src/gui/qt/createnetworkgamedialog/createnetworkgamedialogimpl.h \ src/gui/qt/createnetworkgamedialog/createnetworkgamedialogimpl.h \
src/gui/qt/createinternetgamedialog/createinternetgamedialogimpl.h \ src/gui/qt/createinternetgamedialog/createinternetgamedialogimpl.h \
src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.h \ src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.h \
src/gui/qt/newlocalgamedialog/newgamedialogimpl.h \ src/gui/qt/newlocalgamedialog/newgamedialogimpl.h \
src/gui/qt/settingsdialog/settingsdialogimpl.h \ src/gui/qt/settingsdialog/settingsdialogimpl.h \
src/gui/qt/settingsdialog/myavatarbutton.h \ src/gui/qt/settingsdialog/myavatarbutton.h \
src/gui/qt/settingsdialog/myhpavatarbutton.h \ src/gui/qt/settingsdialog/myhpavatarbutton.h \
src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.h \ src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.h \
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.h \ src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.h \
src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.h \ src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.h \
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.h \ src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.h \
src/gui/qt/startwindow/startwindowimpl.h \ src/gui/qt/startwindow/startwindowimpl.h \
src/gui/qt/styles/gametablestylereader.h \ src/gui/qt/styles/gametablestylereader.h \
src/gui/qt/styles/carddeckstylereader.h \ src/gui/qt/styles/carddeckstylereader.h \
src/gui/qt/changecontentdialog/changecontentdialogimpl.h \ src/gui/qt/changecontentdialog/changecontentdialogimpl.h \
src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.h \ src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.h \
src/gui/qt/gamelobbydialog/gamelobbydialogimpl.h \ src/gui/qt/gamelobbydialog/gamelobbydialogimpl.h \
src/gui/qt/gamelobbydialog/mygamelisttreewidget.h \ src/gui/qt/gamelobbydialog/mygamelisttreewidget.h \
src/gui/qt/timeoutmsgbox/timeoutmsgboximpl.h \ src/gui/qt/timeoutmsgbox/timeoutmsgboximpl.h \
src/gui/qt/mymessagedialog/mymessagedialogimpl.h \ src/gui/qt/mymessagedialog/mymessagedialogimpl.h \
src/gui/qttoolsinterface.h \ src/gui/qttoolsinterface.h \
src/gui/qt/qttools/qttoolswrapper.h \ src/gui/qt/qttools/qttoolswrapper.h \
src/gui/qt/qttools/qthelper/qthelper.h \ src/gui/qt/qttools/qthelper/qthelper.h \
src/gui/generic/serverguiwrapper.h \ src/gui/generic/serverguiwrapper.h \
src/gui/qt/gametable/mychancelabel.h \ src/gui/qt/gametable/mychancelabel.h \
src/gui/qt/serverlistdialog/serverlistdialogimpl.h \ src/gui/qt/serverlistdialog/serverlistdialogimpl.h \
src/gui/qt/gametable/mymenubar.h \ src/gui/qt/gametable/mymenubar.h \
src/gui/qt/gametable/mytimeoutlabel.h \ src/gui/qt/gametable/mytimeoutlabel.h \
src/gui/qt/gametable/mynamelabel.h \ src/gui/qt/gametable/mynamelabel.h \
src/gui/qt/settingsdialog/mystylelistitem.h \ src/gui/qt/settingsdialog/mystylelistitem.h \
src/gui/qt/gamelobbydialog/mygamelistsortfilterproxymodel.h \ src/gui/qt/gamelobbydialog/mygamelistsortfilterproxymodel.h \
src/gui/qt/internetgamelogindialog/internetgamelogindialogimpl.h \ src/gui/qt/internetgamelogindialog/internetgamelogindialogimpl.h \
src/engine/local_engine/replay.h \ src/engine/local_engine/replay.h \
src/gui/qt/gamelobbydialog/mynicklistsortfilterproxymodel.h \ src/gui/qt/gamelobbydialog/mynicklistsortfilterproxymodel.h \
src/gui/qt/gametable/myslider.h src/gui/qt/gametable/myslider.h
FORMS += src/gui/qt/gametable.ui \ FORMS += src/gui/qt/gametable.ui \
src/gui/qt/aboutpokerth.ui \ src/gui/qt/aboutpokerth.ui \
src/gui/qt/connecttoserverdialog.ui \ src/gui/qt/connecttoserverdialog.ui \
src/gui/qt/createnetworkgamedialog.ui \ src/gui/qt/createnetworkgamedialog.ui \
src/gui/qt/createinternetgamedialog.ui \ src/gui/qt/createinternetgamedialog.ui \
src/gui/qt/joinnetworkgamedialog.ui \ src/gui/qt/joinnetworkgamedialog.ui \
src/gui/qt/newgamedialog.ui \ src/gui/qt/newgamedialog.ui \
src/gui/qt/settingsdialog.ui \ src/gui/qt/settingsdialog.ui \
src/gui/qt/selectavatardialog.ui \ src/gui/qt/selectavatardialog.ui \
src/gui/qt/startnetworkgamedialog.ui \ src/gui/qt/startnetworkgamedialog.ui \
src/gui/qt/startwindow.ui \ src/gui/qt/startwindow.ui \
src/gui/qt/changecompleteblindsdialog.ui \ src/gui/qt/changecompleteblindsdialog.ui \
src/gui/qt/gamelobbydialog.ui \ src/gui/qt/gamelobbydialog.ui \
src/gui/qt/mymessagedialog.ui \ src/gui/qt/mymessagedialog.ui \
src/gui/qt/manualblindsorderdialog.ui \ src/gui/qt/manualblindsorderdialog.ui \
src/gui/qt/serverlistdialog.ui \ src/gui/qt/serverlistdialog.ui \
src/gui/qt/internetgamelogindialog.ui \ src/gui/qt/internetgamelogindialog.ui \
src/gui/qt/changecontentdialog.ui src/gui/qt/changecontentdialog.ui
SOURCES += src/pokerth.cpp \ SOURCES += src/pokerth.cpp \
src/gui/qt/chattools/chattools.cpp \ src/gui/qt/chattools/chattools.cpp \
src/gui/qt/sound/sdlplayer.cpp \ src/gui/qt/sound/sdlplayer.cpp \
src/gui/qt/guiwrapper.cpp \ src/gui/qt/guiwrapper.cpp \
src/gui/qt/qttools/qttoolswrapper.cpp \ src/gui/qt/qttools/qttoolswrapper.cpp \
src/gui/qt/qttools/qthelper/qthelper.cpp \ src/gui/qt/qttools/qthelper/qthelper.cpp \
src/gui/qt/gametable/gametableimpl.cpp \ src/gui/qt/gametable/gametableimpl.cpp \
src/gui/qt/gametable/mycardspixmaplabel.cpp \ src/gui/qt/gametable/mycardspixmaplabel.cpp \
src/gui/qt/gametable/mysetlabel.cpp \ src/gui/qt/gametable/mysetlabel.cpp \
src/gui/qt/gametable/myactionbutton.cpp \ src/gui/qt/gametable/myactionbutton.cpp \
src/gui/qt/gametable/mystatuslabel.cpp \ src/gui/qt/gametable/mystatuslabel.cpp \
src/gui/qt/gametable/myavatarlabel.cpp \ src/gui/qt/gametable/myavatarlabel.cpp \
src/gui/qt/gametable/myrighttabwidget.cpp \ src/gui/qt/gametable/myrighttabwidget.cpp \
src/gui/qt/gametable/mylefttabwidget.cpp \ src/gui/qt/gametable/mylefttabwidget.cpp \
src/gui/qt/gametable/startsplash/startsplash.cpp \ src/gui/qt/gametable/startsplash/startsplash.cpp \
src/gui/qt/gametable/log/log.cpp \ src/gui/qt/gametable/log/log.cpp \
src/gui/qt/aboutpokerth/aboutpokerthimpl.cpp \ src/gui/qt/aboutpokerth/aboutpokerthimpl.cpp \
src/gui/qt/connecttoserverdialog/connecttoserverdialogimpl.cpp \ src/gui/qt/connecttoserverdialog/connecttoserverdialogimpl.cpp \
src/gui/qt/createnetworkgamedialog/createnetworkgamedialogimpl.cpp \ src/gui/qt/createnetworkgamedialog/createnetworkgamedialogimpl.cpp \
src/gui/qt/createinternetgamedialog/createinternetgamedialogimpl.cpp \ src/gui/qt/createinternetgamedialog/createinternetgamedialogimpl.cpp \
src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.cpp \ src/gui/qt/joinnetworkgamedialog/joinnetworkgamedialogimpl.cpp \
src/gui/qt/newlocalgamedialog/newgamedialogimpl.cpp \ src/gui/qt/newlocalgamedialog/newgamedialogimpl.cpp \
src/gui/qt/settingsdialog/settingsdialogimpl.cpp \ src/gui/qt/settingsdialog/settingsdialogimpl.cpp \
src/gui/qt/settingsdialog/myavatarbutton.cpp \ src/gui/qt/settingsdialog/myavatarbutton.cpp \
src/gui/qt/settingsdialog/myhpavatarbutton.cpp \ src/gui/qt/settingsdialog/myhpavatarbutton.cpp \
src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.cpp \ src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.cpp \
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.cpp \ src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.cpp \
src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.cpp \ src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.cpp \
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.cpp \ src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.cpp \
src/gui/qt/startwindow/startwindowimpl.cpp \ src/gui/qt/startwindow/startwindowimpl.cpp \
src/gui/qt/styles/gametablestylereader.cpp \ src/gui/qt/styles/gametablestylereader.cpp \
src/gui/qt/styles/carddeckstylereader.cpp \ src/gui/qt/styles/carddeckstylereader.cpp \
src/gui/qt/changecontentdialog/changecontentdialogimpl.cpp \ src/gui/qt/changecontentdialog/changecontentdialogimpl.cpp \
src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.cpp \ src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.cpp \
src/gui/qt/mymessagedialog/mymessagedialogimpl.cpp \ src/gui/qt/mymessagedialog/mymessagedialogimpl.cpp \
src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp \ src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp \
src/gui/qt/gamelobbydialog/mygamelisttreewidget.cpp \ src/gui/qt/gamelobbydialog/mygamelisttreewidget.cpp \
src/gui/qt/timeoutmsgbox/timeoutmsgboximpl.cpp \ src/gui/qt/timeoutmsgbox/timeoutmsgboximpl.cpp \
src/net/common/net_helper_client.cpp \ src/net/common/net_helper_client.cpp \
src/core/common/loghelper_client.cpp \ src/core/common/loghelper_client.cpp \
src/gui/qt/gametable/mychancelabel.cpp \ src/gui/qt/gametable/mychancelabel.cpp \
src/gui/qt/serverlistdialog/serverlistdialogimpl.cpp \ src/gui/qt/serverlistdialog/serverlistdialogimpl.cpp \
src/gui/qt/gametable/mymenubar.cpp \ src/gui/qt/gametable/mymenubar.cpp \
src/gui/qt/gametable/mytimeoutlabel.cpp \ src/gui/qt/gametable/mytimeoutlabel.cpp \
src/gui/qt/gametable/mynamelabel.cpp \ src/gui/qt/gametable/mynamelabel.cpp \
src/gui/qt/settingsdialog/mystylelistitem.cpp \ src/gui/qt/settingsdialog/mystylelistitem.cpp \
src/gui/qt/gamelobbydialog/mygamelistsortfilterproxymodel.cpp \ src/gui/qt/gamelobbydialog/mygamelistsortfilterproxymodel.cpp \
src/gui/qt/internetgamelogindialog/internetgamelogindialogimpl.cpp \ src/gui/qt/internetgamelogindialog/internetgamelogindialogimpl.cpp \
src/engine/local_engine/replay.cpp \ src/engine/local_engine/replay.cpp \
src/gui/qt/gamelobbydialog/mynicklistsortfilterproxymodel.cpp src/gui/qt/gamelobbydialog/mynicklistsortfilterproxymodel.cpp
TRANSLATIONS = ts/pokerth_af.ts \ TRANSLATIONS = ts/pokerth_af.ts \
ts/pokerth_bg.ts \ ts/pokerth_bg.ts \
ts/pokerth_zhcn.ts \ ts/pokerth_zhcn.ts \
ts/pokerth_ca.ts \ ts/pokerth_ca.ts \
ts/pokerth_cz.ts \ ts/pokerth_cz.ts \
ts/pokerth_dk.ts \ ts/pokerth_dk.ts \
ts/pokerth_nl.ts \ ts/pokerth_nl.ts \
ts/pokerth_fr.ts \ ts/pokerth_fr.ts \
ts/pokerth_fi.ts \ ts/pokerth_fi.ts \
ts/pokerth_de.ts \ ts/pokerth_de.ts \
ts/pokerth_gr.ts \ ts/pokerth_gr.ts \
ts/pokerth_hu.ts \ ts/pokerth_hu.ts \
ts/pokerth_it.ts \ ts/pokerth_it.ts \
ts/pokerth_lt.ts \ ts/pokerth_lt.ts \
ts/pokerth_no.ts \ ts/pokerth_no.ts \
ts/pokerth_pl.ts \ ts/pokerth_pl.ts \
ts/pokerth_ptbr.ts \ ts/pokerth_ptbr.ts \
ts/pokerth_ptpt.ts \ ts/pokerth_ptpt.ts \
ts/pokerth_ru.ts \ ts/pokerth_ru.ts \
ts/pokerth_sk.ts \ ts/pokerth_sk.ts \
ts/pokerth_es.ts \ ts/pokerth_es.ts \
ts/pokerth_sv.ts \ ts/pokerth_sv.ts \
ts/pokerth_ta.ts \ ts/pokerth_ta.ts \
ts/pokerth_tr.ts \ ts/pokerth_tr.ts \
ts/pokerth_START_HERE.ts ts/pokerth_START_HERE.ts
win32 { win32 {
DEFINES += CURL_STATICLIB DEFINES += CURL_STATICLIB
DEFINES += _WIN32_WINNT=0x0501 DEFINES += _WIN32_WINNT=0x0501
DEPENDPATH += src/net/win32/ \ DEPENDPATH += src/net/win32/ \
src/core/win32 src/core/win32
INCLUDEPATH += ../boost/ \ INCLUDEPATH += ../boost/ \
../SDL/include \ ../SDL/include \
../SDL/include/SDL \ ../SDL/include/SDL \
../SDL_mixer \ ../SDL_mixer \
../SDL_mixer/include/SDL \ ../SDL_mixer/include/SDL \
../GnuTLS/include \ ../GnuTLS/include \
../gsasl/include \ ../gsasl/include \
../curl/include \ ../curl/include \
../zlib ../zlib
LIBPATH += ../boost/stage/lib \ LIBPATH += ../boost/stage/lib \
../GnuTLS/lib \ ../GnuTLS/lib \
../openssl/lib \ ../openssl/lib \
../gsasl/lib \ ../gsasl/lib \
../curl/lib \ ../curl/lib \
../SDL/lib \ ../SDL/lib \
../SDL_mixer/lib \ ../SDL_mixer/lib \
../mysql/lib \ ../mysql/lib \
../zlib ../zlib
LIBS += -lpokerth_lib \ LIBS += -lpokerth_lib \
-lpokerth_db \ -lpokerth_db \
-lpokerth_protocol -lpokerth_protocol
debug:LIBPATH += Debug/lib debug:LIBPATH += Debug/lib
release:LIBPATH += Release/lib release:LIBPATH += Release/lib
win32-msvc2008:LIBS += -llibgnutls-openssl-26 \ win32-msvc2008:LIBS += -llibgnutls-openssl-26 \
-llibgcrypt-11 \ -llibgcrypt-11 \
-llibgsasl-7 \ -llibgsasl-7 \
-llibcurl -llibcurl
win32-g++ { win32-g++ {
pkth_win64 { pkth_win64 {
LIBS += -lcrypto -lssl -llibeay32 -lssleay32 -lgsasl LIBS += -lcrypto -lssl -llibeay32 -lssleay32 -lgsasl
@@ -327,195 +331,195 @@ win32 {
!pkth_win64 { !pkth_win64 {
LIBS += -lgnutls-openssl -lgnutls -lgcrypt -ltasn1 -lgpg-error -lgsasl -lidn LIBS += -lgnutls-openssl -lgnutls -lgcrypt -ltasn1 -lgpg-error -lgsasl -lidn
} }
LIBS += -lcurl LIBS += -lcurl
LIBS += -lz LIBS += -lz
LIBS += -lboost_thread-mgw45-mt-1_44.dll LIBS += -lboost_thread-mgw45-mt-1_44.dll
LIBS += -lboost_filesystem-mgw45-mt-1_44.dll LIBS += -lboost_filesystem-mgw45-mt-1_44.dll
LIBS += -lboost_regex-mgw45-mt-1_44 LIBS += -lboost_regex-mgw45-mt-1_44
LIBS += -lboost_system-mgw45-mt-1_44.dll LIBS += -lboost_system-mgw45-mt-1_44.dll
LIBS += -lboost_iostreams-mgw45-mt-1_44.dll LIBS += -lboost_iostreams-mgw45-mt-1_44.dll
LIBS += -lboost_zlib-mgw45-mt-1_44.dll LIBS += -lboost_zlib-mgw45-mt-1_44.dll
} }
LIBS += -lgdi32 \ LIBS += -lgdi32 \
-lcomdlg32 \ -lcomdlg32 \
-loleaut32 \ -loleaut32 \
-limm32 \ -limm32 \
-lwinmm \ -lwinmm \
-lwinspool \ -lwinspool \
-lole32 \ -lole32 \
-luuid \ -luuid \
-luser32 \ -luser32 \
-lmsimg32 \ -lmsimg32 \
-lshell32 \ -lshell32 \
-lkernel32 \ -lkernel32 \
-lmswsock \ -lmswsock \
-lws2_32 \ -lws2_32 \
-ladvapi32 \ -ladvapi32 \
-lsdl \ -lsdl \
-lsdlmain \ -lsdlmain \
-lsdl_mixer \ -lsdl_mixer \
-lwldap32 -lwldap32
RC_FILE = pokerth.rc RC_FILE = pokerth.rc
} }
unix:# workaround for problems with boost_filesystem exceptions unix:# workaround for problems with boost_filesystem exceptions
QMAKE_LFLAGS += -no_dead_strip_inits_and_terms QMAKE_LFLAGS += -no_dead_strip_inits_and_terms
unix:!mac { unix:!mac {
# #### My release static build options # #### My release static build options
# QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections # QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
# QMAKE_LFLAGS += -Wl,--gc-sections # QMAKE_LFLAGS += -Wl,--gc-sections
LIBPATH += lib LIBPATH += lib
LIB_DIRS = $${PREFIX}/lib \ LIB_DIRS = $${PREFIX}/lib \
$${PREFIX}/lib64 $${PREFIX}/lib64
BOOST_FS = boost_filesystem \ BOOST_FS = boost_filesystem \
boost_filesystem-mt boost_filesystem-mt
BOOST_THREAD = boost_thread \ BOOST_THREAD = boost_thread \
boost_thread-mt boost_thread-mt
BOOST_IOSTREAMS = boost_iostreams \ BOOST_IOSTREAMS = boost_iostreams \
boost_iostreams-mt boost_iostreams-mt
BOOST_REGEX = boost_regex \ BOOST_REGEX = boost_regex \
boost_regex-mt boost_regex-mt
BOOST_SYS = boost_system \ BOOST_SYS = boost_system \
boost_system-mt boost_system-mt
# searching in $PREFIX/lib and $PREFIX/lib64 # searching in $PREFIX/lib and $PREFIX/lib64
# to override the default '/usr' pass PREFIX # to override the default '/usr' pass PREFIX
# variable to qmake. # variable to qmake.
for(dir, LIB_DIRS):exists($$dir) { for(dir, LIB_DIRS):exists($$dir) {
for(lib, BOOST_THREAD):exists($${dir}/lib$${lib}.a) { for(lib, BOOST_THREAD):exists($${dir}/lib$${lib}.a) {
message("Found $$lib") message("Found $$lib")
BOOST_THREAD = -l$$lib BOOST_THREAD = -l$$lib
} }
for(lib, BOOST_THREAD):exists($${dir}/lib$${lib}.so*) { for(lib, BOOST_THREAD):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib") message("Found $$lib")
BOOST_THREAD = -l$$lib BOOST_THREAD = -l$$lib
} }
for(lib, BOOST_FS):exists($${dir}/lib$${lib}.a) { for(lib, BOOST_FS):exists($${dir}/lib$${lib}.a) {
message("Found $$lib") message("Found $$lib")
BOOST_FS = -l$$lib BOOST_FS = -l$$lib
} }
for(lib, BOOST_FS):exists($${dir}/lib$${lib}.so*) { for(lib, BOOST_FS):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib") message("Found $$lib")
BOOST_FS = -l$$lib BOOST_FS = -l$$lib
} }
for(lib, BOOST_IOSTREAMS):exists($${dir}/lib$${lib}.a) { for(lib, BOOST_IOSTREAMS):exists($${dir}/lib$${lib}.a) {
message("Found $$lib") message("Found $$lib")
BOOST_IOSTREAMS = -l$$lib BOOST_IOSTREAMS = -l$$lib
} }
for(lib, BOOST_IOSTREAMS):exists($${dir}/lib$${lib}.so*) { for(lib, BOOST_IOSTREAMS):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib") message("Found $$lib")
BOOST_IOSTREAMS = -l$$lib BOOST_IOSTREAMS = -l$$lib
} }
for(lib, BOOST_REGEX):exists($${dir}/lib$${lib}.a) { for(lib, BOOST_REGEX):exists($${dir}/lib$${lib}.a) {
message("Found $$lib") message("Found $$lib")
BOOST_REGEX = -l$$lib BOOST_REGEX = -l$$lib
} }
for(lib, BOOST_REGEX):exists($${dir}/lib$${lib}.so*) { for(lib, BOOST_REGEX):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib") message("Found $$lib")
BOOST_REGEX = -l$$lib BOOST_REGEX = -l$$lib
} }
for(lib, BOOST_SYS):exists($${dir}/lib$${lib}.a) { for(lib, BOOST_SYS):exists($${dir}/lib$${lib}.a) {
message("Found $$lib") message("Found $$lib")
BOOST_SYS = -l$$lib BOOST_SYS = -l$$lib
} }
for(lib, BOOST_SYS):exists($${dir}/lib$${lib}.so*) { for(lib, BOOST_SYS):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib") message("Found $$lib")
BOOST_SYS = -l$$lib BOOST_SYS = -l$$lib
} }
} }
BOOST_LIBS = $$BOOST_THREAD \ BOOST_LIBS = $$BOOST_THREAD \
$$BOOST_FS \ $$BOOST_FS \
$$BOOST_IOSTREAMS \ $$BOOST_IOSTREAMS \
$$BOOST_REGEX \ $$BOOST_REGEX \
$$BOOST_SYS $$BOOST_SYS
!count(BOOST_LIBS, 5):error("Unable to find boost libraries in PREFIX=$${PREFIX}") !count(BOOST_LIBS, 5):error("Unable to find boost libraries in PREFIX=$${PREFIX}")
if($$system(sdl-config --version)):error("sdl-config not found in PATH - libSDL_mixer, libSDL are required!") if($$system(sdl-config --version)):error("sdl-config not found in PATH - libSDL_mixer, libSDL are required!")
UNAME = $$system(uname -s) UNAME = $$system(uname -s)
BSD = $$find(UNAME, "BSD") BSD = $$find(UNAME, "BSD")
kFreeBSD = $$find(UNAME, "kFreeBSD") kFreeBSD = $$find(UNAME, "kFreeBSD")
LIBS += -lpokerth_lib \ LIBS += -lpokerth_lib \
-lpokerth_db \ -lpokerth_db \
-lpokerth_protocol -lpokerth_protocol
LIBS += $$BOOST_LIBS LIBS += $$BOOST_LIBS
LIBS += -lSDL_mixer \ LIBS += -lSDL_mixer \
-lcurl \ -lcurl \
-lgsasl -lgsasl
!isEmpty( BSD ):isEmpty( kFreeBSD ):LIBS += -lcrypto !isEmpty( BSD ):isEmpty( kFreeBSD ):LIBS += -lcrypto
else:LIBS += -lgnutls-openssl \ else:LIBS += -lgnutls-openssl \
-lgcrypt -lgcrypt
TARGETDEPS += ./lib/libpokerth_lib.a \ TARGETDEPS += ./lib/libpokerth_lib.a \
./lib/libpokerth_db.a \ ./lib/libpokerth_db.a \
./lib/libpokerth_protocol.a ./lib/libpokerth_protocol.a
# #### My release static libs # #### My release static libs
# LIBS += -lgcrypt_static -lgpg-error_static -lgnutls-openssl_static -lgnutls_static -lSDL_mixer_static -lSDL -lmikmod -lcurl # LIBS += -lgcrypt_static -lgpg-error_static -lgnutls-openssl_static -lgnutls_static -lSDL_mixer_static -lSDL -lmikmod -lcurl
# ### INSTALL #### # ### INSTALL ####
binary.path += $${PREFIX}/bin/ binary.path += $${PREFIX}/bin/
binary.files += pokerth binary.files += pokerth
data.path += $${PREFIX}/share/pokerth/data/ data.path += $${PREFIX}/share/pokerth/data/
data.files += data/* data.files += data/*
pixmap.path += $${PREFIX}/share/pixmaps/ pixmap.path += $${PREFIX}/share/pixmaps/
pixmap.files += pokerth.png pixmap.files += pokerth.png
desktop.path += $${PREFIX}/share/applications/ desktop.path += $${PREFIX}/share/applications/
desktop.files += pokerth.desktop desktop.files += pokerth.desktop
INSTALLS += binary \ INSTALLS += binary \
data \ data \
pixmap \ pixmap \
desktop desktop
} }
mac { mac {
# make it universal # make it universal
CONFIG += x86 CONFIG += x86
CONFIG -= ppc CONFIG -= ppc
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
# for universal-compilation on PPC-Mac uncomment the following line # for universal-compilation on PPC-Mac uncomment the following line
# on Intel-Mac you have to comment this line out or build will fail. # on Intel-Mac you have to comment this line out or build will fail.
# QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/ # QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/
LIBPATH += lib LIBPATH += lib
LIBS += -lpokerth_lib \ LIBS += -lpokerth_lib \
-lpokerth_db \ -lpokerth_db \
-lpokerth_protocol -lpokerth_protocol
# QT dynamic linked framework (see also mac_post_make.sh) # QT dynamic linked framework (see also mac_post_make.sh)
LIBS += -framework \ LIBS += -framework \
QtCore QtCore
LIBS += -framework \ LIBS += -framework \
QtGui QtGui
# SDL and SDL_mixer come as frameworks # SDL and SDL_mixer come as frameworks
LIBS += -framework \ LIBS += -framework \
SDL SDL
LIBS += -framework \ LIBS += -framework \
SDL_mixer SDL_mixer
# standard path for darwinports # standard path for darwinports
# make sure you have a universal version of boost # make sure you have a universal version of boost
LIBS += /usr/local/lib/libboost_thread.a LIBS += /usr/local/lib/libboost_thread.a
LIBS += /usr/local/lib/libboost_filesystem.a LIBS += /usr/local/lib/libboost_filesystem.a
LIBS += /usr/local/lib/libboost_regex.a LIBS += /usr/local/lib/libboost_regex.a
LIBS += /usr/local/lib/libboost_system.a LIBS += /usr/local/lib/libboost_system.a
LIBS += /usr/local/lib/libboost_iostreams.a LIBS += /usr/local/lib/libboost_iostreams.a
LIBS += /usr/local/lib/libgsasl.a LIBS += /usr/local/lib/libgsasl.a
# libraries installed on every mac # libraries installed on every mac
LIBS += -lcrypto \ LIBS += -lcrypto \
-lssl \ -lssl \
-lz \ -lz \
-lcurl \ -lcurl \
-framework \ -framework \
Carbon Carbon
# set the application icon # set the application icon
RC_FILE = pokerth.icns RC_FILE = pokerth.icns
LIBPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/lib LIBPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/lib
INCLUDEPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/include/ INCLUDEPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/include/
INCLUDEPATH += /Library/Frameworks/SDL.framework/Headers INCLUDEPATH += /Library/Frameworks/SDL.framework/Headers
INCLUDEPATH += /Library/Frameworks/SDL_mixer.framework/Headers INCLUDEPATH += /Library/Frameworks/SDL_mixer.framework/Headers
} }
OTHER_FILES += docs/infomessage-id-desc.txt OTHER_FILES += docs/infomessage-id-desc.txt
official_server { official_server {
LIBPATH += pkth_stat/daemon_lib/lib LIBPATH += pkth_stat/daemon_lib/lib
LIBS += -lpokerth_closed \ LIBS += -lpokerth_closed \
-lmysqlpp -lmysqlpp
DEFINES += POKERTH_OFFICIAL_SERVER DEFINES += POKERTH_OFFICIAL_SERVER
} }
+297 -297
View File
@@ -2,320 +2,320 @@
TEMPLATE = lib TEMPLATE = lib
CODECFORSRC = UTF-8 CODECFORSRC = UTF-8
CONFIG += staticlib \ CONFIG += staticlib \
thread \ thread \
exceptions \ exceptions \
rtti \ rtti \
stl \ stl \
warn_on warn_on
UI_DIR = uics UI_DIR = uics
TARGET = lib/pokerth_protocol TARGET = lib/pokerth_protocol
MOC_DIR = mocs MOC_DIR = mocs
OBJECTS_DIR = obj OBJECTS_DIR = obj
DEFINES += ENABLE_IPV6 DEFINES += ENABLE_IPV6
QT -= core \ QT -= core \
gui gui
# PRECOMPILED_HEADER = src/pch_lib.h # PRECOMPILED_HEADER = src/pch_lib.h
INCLUDEPATH += . \ INCLUDEPATH += . \
src \ src \
src/third_party/asn1 src/third_party/asn1
DEPENDPATH += . \ DEPENDPATH += . \
src \ src \
src/third_party/asn1 src/third_party/asn1
# Input # Input
HEADERS += src/third_party/asn1/AllInShowCardsMessage.h \ HEADERS += src/third_party/asn1/AllInShowCardsMessage.h \
src/third_party/asn1/ChatCleanerMessage.h \ src/third_party/asn1/ChatCleanerMessage.h \
src/third_party/asn1/CleanerInitMessage.h \ src/third_party/asn1/CleanerInitMessage.h \
src/third_party/asn1/CleanerInitAckMessage.h \ src/third_party/asn1/CleanerInitAckMessage.h \
src/third_party/asn1/CleanerChatRequestMessage.h \ src/third_party/asn1/CleanerChatRequestMessage.h \
src/third_party/asn1/CleanerChatReplyMessage.h \ src/third_party/asn1/CleanerChatReplyMessage.h \
src/third_party/asn1/GuestLogin.h \ src/third_party/asn1/GuestLogin.h \
src/third_party/asn1/AskKickDeniedMessage.h \ src/third_party/asn1/AskKickDeniedMessage.h \
src/third_party/asn1/AskKickPlayerMessage.h \ src/third_party/asn1/AskKickPlayerMessage.h \
src/third_party/asn1/AuthMessage.h \ src/third_party/asn1/AuthMessage.h \
src/third_party/asn1/AuthClientResponse.h \ src/third_party/asn1/AuthClientResponse.h \
src/third_party/asn1/AuthServerChallenge.h \ src/third_party/asn1/AuthServerChallenge.h \
src/third_party/asn1/AuthServerVerification.h \ src/third_party/asn1/AuthServerVerification.h \
src/third_party/asn1/asn_application.h \ src/third_party/asn1/asn_application.h \
src/third_party/asn1/asn_codecs.h \ src/third_party/asn1/asn_codecs.h \
src/third_party/asn1/asn_codecs_prim.h \ src/third_party/asn1/asn_codecs_prim.h \
src/third_party/asn1/asn_internal.h \ src/third_party/asn1/asn_internal.h \
src/third_party/asn1/asn_SEQUENCE_OF.h \ src/third_party/asn1/asn_SEQUENCE_OF.h \
src/third_party/asn1/asn_SET_OF.h \ src/third_party/asn1/asn_SET_OF.h \
src/third_party/asn1/asn_system.h \ src/third_party/asn1/asn_system.h \
src/third_party/asn1/AuthenticatedLogin.h \ src/third_party/asn1/AuthenticatedLogin.h \
src/third_party/asn1/AvatarData.h \ src/third_party/asn1/AvatarData.h \
src/third_party/asn1/AvatarEnd.h \ src/third_party/asn1/AvatarEnd.h \
src/third_party/asn1/AvatarHash.h \ src/third_party/asn1/AvatarHash.h \
src/third_party/asn1/AvatarHeader.h \ src/third_party/asn1/AvatarHeader.h \
src/third_party/asn1/AvatarReplyMessage.h \ src/third_party/asn1/AvatarReplyMessage.h \
src/third_party/asn1/AvatarRequestMessage.h \ src/third_party/asn1/AvatarRequestMessage.h \
src/third_party/asn1/ber_decoder.h \ src/third_party/asn1/ber_decoder.h \
src/third_party/asn1/ber_tlv_length.h \ src/third_party/asn1/ber_tlv_length.h \
src/third_party/asn1/ber_tlv_tag.h \ src/third_party/asn1/ber_tlv_tag.h \
src/third_party/asn1/BIT_STRING.h \ src/third_party/asn1/BIT_STRING.h \
src/third_party/asn1/BOOLEAN.h \ src/third_party/asn1/BOOLEAN.h \
src/third_party/asn1/Card.h \ src/third_party/asn1/Card.h \
src/third_party/asn1/ChatMessage.h \ src/third_party/asn1/ChatMessage.h \
src/third_party/asn1/ChatTypeGame.h \ src/third_party/asn1/ChatTypeGame.h \
src/third_party/asn1/ChatTypeLobby.h \ src/third_party/asn1/ChatTypeLobby.h \
src/third_party/asn1/ChatTypeBot.h \ src/third_party/asn1/ChatTypeBot.h \
src/third_party/asn1/ChatTypeBroadcast.h \ src/third_party/asn1/ChatTypeBroadcast.h \
src/third_party/asn1/ChatRequestMessage.h \ src/third_party/asn1/ChatRequestMessage.h \
src/third_party/asn1/ChatRequestTypeLobby.h \ src/third_party/asn1/ChatRequestTypeLobby.h \
src/third_party/asn1/ChatRequestTypeGame.h \ src/third_party/asn1/ChatRequestTypeGame.h \
src/third_party/asn1/constraints.h \ src/third_party/asn1/constraints.h \
src/third_party/asn1/constr_CHOICE.h \ src/third_party/asn1/constr_CHOICE.h \
src/third_party/asn1/constr_SEQUENCE.h \ src/third_party/asn1/constr_SEQUENCE.h \
src/third_party/asn1/constr_SEQUENCE_OF.h \ src/third_party/asn1/constr_SEQUENCE_OF.h \
src/third_party/asn1/constr_SET_OF.h \ src/third_party/asn1/constr_SET_OF.h \
src/third_party/asn1/constr_TYPE.h \ src/third_party/asn1/constr_TYPE.h \
src/third_party/asn1/DealFlopCardsMessage.h \ src/third_party/asn1/DealFlopCardsMessage.h \
src/third_party/asn1/DealRiverCardMessage.h \ src/third_party/asn1/DealRiverCardMessage.h \
src/third_party/asn1/DealTurnCardMessage.h \ src/third_party/asn1/DealTurnCardMessage.h \
src/third_party/asn1/der_encoder.h \ src/third_party/asn1/der_encoder.h \
src/third_party/asn1/DialogMessage.h \ src/third_party/asn1/DialogMessage.h \
src/third_party/asn1/EndKickPetitionMessage.h \ src/third_party/asn1/EndKickPetitionMessage.h \
src/third_party/asn1/EndOfGameMessage.h \ src/third_party/asn1/EndOfGameMessage.h \
src/third_party/asn1/EndOfHandHideCards.h \ src/third_party/asn1/EndOfHandHideCards.h \
src/third_party/asn1/EndOfHandMessage.h \ src/third_party/asn1/EndOfHandMessage.h \
src/third_party/asn1/EndOfHandShowCards.h \ src/third_party/asn1/EndOfHandShowCards.h \
src/third_party/asn1/ErrorMessage.h \ src/third_party/asn1/ErrorMessage.h \
src/third_party/asn1/GameAdminChanged.h \ src/third_party/asn1/GameAdminChanged.h \
src/third_party/asn1/GameListAdminChanged.h \ src/third_party/asn1/GameListAdminChanged.h \
src/third_party/asn1/GameListMessage.h \ src/third_party/asn1/GameListMessage.h \
src/third_party/asn1/GameListNew.h \ src/third_party/asn1/GameListNew.h \
src/third_party/asn1/GameListPlayerJoined.h \ src/third_party/asn1/GameListPlayerJoined.h \
src/third_party/asn1/GameListPlayerLeft.h \ src/third_party/asn1/GameListPlayerLeft.h \
src/third_party/asn1/GameListUpdate.h \ src/third_party/asn1/GameListUpdate.h \
src/third_party/asn1/GamePlayerJoined.h \ src/third_party/asn1/GamePlayerJoined.h \
src/third_party/asn1/GamePlayerLeft.h \ src/third_party/asn1/GamePlayerLeft.h \
src/third_party/asn1/GamePlayerMessage.h \ src/third_party/asn1/GamePlayerMessage.h \
src/third_party/asn1/GameStartMessage.h \ src/third_party/asn1/GameStartMessage.h \
src/third_party/asn1/Guid.h \ src/third_party/asn1/Guid.h \
src/third_party/asn1/HandStartMessage.h \ src/third_party/asn1/HandStartMessage.h \
src/third_party/asn1/Id.h \ src/third_party/asn1/Id.h \
src/third_party/asn1/InitAckMessage.h \ src/third_party/asn1/InitAckMessage.h \
src/third_party/asn1/InitMessage.h \ src/third_party/asn1/InitMessage.h \
src/third_party/asn1/INTEGER.h \ src/third_party/asn1/INTEGER.h \
src/third_party/asn1/InviteNotifyMessage.h \ src/third_party/asn1/InviteNotifyMessage.h \
src/third_party/asn1/InvitePlayerToGameMessage.h \ src/third_party/asn1/InvitePlayerToGameMessage.h \
src/third_party/asn1/JoinExistingGame.h \ src/third_party/asn1/JoinExistingGame.h \
src/third_party/asn1/JoinGameAck.h \ src/third_party/asn1/JoinGameAck.h \
src/third_party/asn1/JoinGameFailed.h \ src/third_party/asn1/JoinGameFailed.h \
src/third_party/asn1/JoinGameReplyMessage.h \ src/third_party/asn1/JoinGameReplyMessage.h \
src/third_party/asn1/JoinGameRequestMessage.h \ src/third_party/asn1/JoinGameRequestMessage.h \
src/third_party/asn1/JoinNewGame.h \ src/third_party/asn1/JoinNewGame.h \
src/third_party/asn1/KickPetitionUpdateMessage.h \ src/third_party/asn1/KickPetitionUpdateMessage.h \
src/third_party/asn1/KickPlayerRequestMessage.h \ src/third_party/asn1/KickPlayerRequestMessage.h \
src/third_party/asn1/LeaveGameRequestMessage.h \ src/third_party/asn1/LeaveGameRequestMessage.h \
src/third_party/asn1/MyActionRequestMessage.h \ src/third_party/asn1/MyActionRequestMessage.h \
src/third_party/asn1/NativeEnumerated.h \ src/third_party/asn1/NativeEnumerated.h \
src/third_party/asn1/NativeInteger.h \ src/third_party/asn1/NativeInteger.h \
src/third_party/asn1/NetAvatarType.h \ src/third_party/asn1/NetAvatarType.h \
src/third_party/asn1/NetGameInfo.h \ src/third_party/asn1/NetGameInfo.h \
src/third_party/asn1/NetGameMode.h \ src/third_party/asn1/NetGameMode.h \
src/third_party/asn1/NetGameState.h \ src/third_party/asn1/NetGameState.h \
src/third_party/asn1/NetPlayerAction.h \ src/third_party/asn1/NetPlayerAction.h \
src/third_party/asn1/NonZeroId.h \ src/third_party/asn1/NonZeroId.h \
src/third_party/asn1/OCTET_STRING.h \ src/third_party/asn1/OCTET_STRING.h \
src/third_party/asn1/per_decoder.h \ src/third_party/asn1/per_decoder.h \
src/third_party/asn1/per_encoder.h \ src/third_party/asn1/per_encoder.h \
src/third_party/asn1/per_opentype.h \ src/third_party/asn1/per_opentype.h \
src/third_party/asn1/per_support.h \ src/third_party/asn1/per_support.h \
src/third_party/asn1/PlayerAllIn.h \ src/third_party/asn1/PlayerAllIn.h \
src/third_party/asn1/PlayerInfoData.h \ src/third_party/asn1/PlayerInfoData.h \
src/third_party/asn1/PlayerInfoRights.h \ src/third_party/asn1/PlayerInfoRights.h \
src/third_party/asn1/PlayerInfoReplyMessage.h \ src/third_party/asn1/PlayerInfoReplyMessage.h \
src/third_party/asn1/PlayerInfoRequestMessage.h \ src/third_party/asn1/PlayerInfoRequestMessage.h \
src/third_party/asn1/PlayerListMessage.h \ src/third_party/asn1/PlayerListMessage.h \
src/third_party/asn1/PlayerResult.h \ src/third_party/asn1/PlayerResult.h \
src/third_party/asn1/PlayersActionDoneMessage.h \ src/third_party/asn1/PlayersActionDoneMessage.h \
src/third_party/asn1/PlayersTurnMessage.h \ src/third_party/asn1/PlayersTurnMessage.h \
src/third_party/asn1/PokerTHMessage.h \ src/third_party/asn1/PokerTHMessage.h \
src/third_party/asn1/RejectGameInvitationMessage.h \ src/third_party/asn1/RejectGameInvitationMessage.h \
src/third_party/asn1/RejectGameInvReason.h \ src/third_party/asn1/RejectGameInvReason.h \
src/third_party/asn1/RejectInvNotifyMessage.h \ src/third_party/asn1/RejectInvNotifyMessage.h \
src/third_party/asn1/RemovedFromGame.h \ src/third_party/asn1/RemovedFromGame.h \
src/third_party/asn1/ResetTimeoutMessage.h \ src/third_party/asn1/ResetTimeoutMessage.h \
src/third_party/asn1/StartEventAckMessage.h \ src/third_party/asn1/StartEventAckMessage.h \
src/third_party/asn1/StartEventMessage.h \ src/third_party/asn1/StartEventMessage.h \
src/third_party/asn1/StartKickPetitionMessage.h \ src/third_party/asn1/StartKickPetitionMessage.h \
src/third_party/asn1/StatisticsData.h \ src/third_party/asn1/StatisticsData.h \
src/third_party/asn1/StatisticsMessage.h \ src/third_party/asn1/StatisticsMessage.h \
src/third_party/asn1/SubscriptionRequestMessage.h \ src/third_party/asn1/SubscriptionRequestMessage.h \
src/third_party/asn1/TimeoutWarningMessage.h \ src/third_party/asn1/TimeoutWarningMessage.h \
src/third_party/asn1/UnknownAvatar.h \ src/third_party/asn1/UnknownAvatar.h \
src/third_party/asn1/UnknownPlayerInfo.h \ src/third_party/asn1/UnknownPlayerInfo.h \
src/third_party/asn1/UTF8String.h \ src/third_party/asn1/UTF8String.h \
src/third_party/asn1/Version.h \ src/third_party/asn1/Version.h \
src/third_party/asn1/VoteKickAck.h \ src/third_party/asn1/VoteKickAck.h \
src/third_party/asn1/VoteKickDenied.h \ src/third_party/asn1/VoteKickDenied.h \
src/third_party/asn1/VoteKickReplyMessage.h \ src/third_party/asn1/VoteKickReplyMessage.h \
src/third_party/asn1/VoteKickRequestMessage.h \ src/third_party/asn1/VoteKickRequestMessage.h \
src/third_party/asn1/xer_decoder.h \ src/third_party/asn1/xer_decoder.h \
src/third_party/asn1/xer_encoder.h \ src/third_party/asn1/xer_encoder.h \
src/third_party/asn1/xer_support.h \ src/third_party/asn1/xer_support.h \
src/third_party/asn1/YourActionRejectedMessage.h \ src/third_party/asn1/YourActionRejectedMessage.h \
src/third_party/asn1/AnnounceMessage.h \ src/third_party/asn1/AnnounceMessage.h \
src/third_party/asn1/UnauthenticatedLogin.h \ src/third_party/asn1/UnauthenticatedLogin.h \
src/third_party/asn1/AfterHandShowCardsMessage.h \ src/third_party/asn1/AfterHandShowCardsMessage.h \
src/third_party/asn1/ShowMyCardsRequestMessage.h \ src/third_party/asn1/ShowMyCardsRequestMessage.h \
src/third_party/asn1/PlainCards.h \ src/third_party/asn1/PlainCards.h \
src/third_party/asn1/EncryptedCards.h \ src/third_party/asn1/EncryptedCards.h \
src/third_party/asn1/AfkWarningMessage.h src/third_party/asn1/AfkWarningMessage.h
SOURCES += src/third_party/asn1/ChatCleanerMessage.c \ SOURCES += src/third_party/asn1/ChatCleanerMessage.c \
src/third_party/asn1/CleanerInitMessage.c \ src/third_party/asn1/CleanerInitMessage.c \
src/third_party/asn1/CleanerInitAckMessage.c \ src/third_party/asn1/CleanerInitAckMessage.c \
src/third_party/asn1/CleanerChatRequestMessage.c \ src/third_party/asn1/CleanerChatRequestMessage.c \
src/third_party/asn1/CleanerChatReplyMessage.c \ src/third_party/asn1/CleanerChatReplyMessage.c \
src/third_party/asn1/AuthMessage.c \ src/third_party/asn1/AuthMessage.c \
src/third_party/asn1/AuthClientResponse.c \ src/third_party/asn1/AuthClientResponse.c \
src/third_party/asn1/AuthServerChallenge.c \ src/third_party/asn1/AuthServerChallenge.c \
src/third_party/asn1/AuthServerVerification.c \ src/third_party/asn1/AuthServerVerification.c \
src/third_party/asn1/AllInShowCardsMessage.c \ src/third_party/asn1/AllInShowCardsMessage.c \
src/third_party/asn1/YourActionRejectedMessage.c \ src/third_party/asn1/YourActionRejectedMessage.c \
src/third_party/asn1/xer_support.c \ src/third_party/asn1/xer_support.c \
src/third_party/asn1/xer_encoder.c \ src/third_party/asn1/xer_encoder.c \
src/third_party/asn1/xer_decoder.c \ src/third_party/asn1/xer_decoder.c \
src/third_party/asn1/VoteKickRequestMessage.c \ src/third_party/asn1/VoteKickRequestMessage.c \
src/third_party/asn1/VoteKickReplyMessage.c \ src/third_party/asn1/VoteKickReplyMessage.c \
src/third_party/asn1/VoteKickDenied.c \ src/third_party/asn1/VoteKickDenied.c \
src/third_party/asn1/VoteKickAck.c \ src/third_party/asn1/VoteKickAck.c \
src/third_party/asn1/Version.c \ src/third_party/asn1/Version.c \
src/third_party/asn1/UTF8String.c \ src/third_party/asn1/UTF8String.c \
src/third_party/asn1/UnknownPlayerInfo.c \ src/third_party/asn1/UnknownPlayerInfo.c \
src/third_party/asn1/UnknownAvatar.c \ src/third_party/asn1/UnknownAvatar.c \
src/third_party/asn1/TimeoutWarningMessage.c \ src/third_party/asn1/TimeoutWarningMessage.c \
src/third_party/asn1/SubscriptionRequestMessage.c \ src/third_party/asn1/SubscriptionRequestMessage.c \
src/third_party/asn1/StatisticsMessage.c \ src/third_party/asn1/StatisticsMessage.c \
src/third_party/asn1/StatisticsData.c \ src/third_party/asn1/StatisticsData.c \
src/third_party/asn1/StartKickPetitionMessage.c \ src/third_party/asn1/StartKickPetitionMessage.c \
src/third_party/asn1/StartEventMessage.c \ src/third_party/asn1/StartEventMessage.c \
src/third_party/asn1/StartEventAckMessage.c \ src/third_party/asn1/StartEventAckMessage.c \
src/third_party/asn1/ResetTimeoutMessage.c \ src/third_party/asn1/ResetTimeoutMessage.c \
src/third_party/asn1/RemovedFromGame.c \ src/third_party/asn1/RemovedFromGame.c \
src/third_party/asn1/PokerTHMessage.c \ src/third_party/asn1/PokerTHMessage.c \
src/third_party/asn1/PlayersTurnMessage.c \ src/third_party/asn1/PlayersTurnMessage.c \
src/third_party/asn1/PlayersActionDoneMessage.c \ src/third_party/asn1/PlayersActionDoneMessage.c \
src/third_party/asn1/PlayerResult.c \ src/third_party/asn1/PlayerResult.c \
src/third_party/asn1/PlayerInfoRequestMessage.c \ src/third_party/asn1/PlayerInfoRequestMessage.c \
src/third_party/asn1/PlayerInfoReplyMessage.c \ src/third_party/asn1/PlayerInfoReplyMessage.c \
src/third_party/asn1/PlayerInfoData.c \ src/third_party/asn1/PlayerInfoData.c \
src/third_party/asn1/PlayerInfoRights.c \ src/third_party/asn1/PlayerInfoRights.c \
src/third_party/asn1/PlayerAllIn.c \ src/third_party/asn1/PlayerAllIn.c \
src/third_party/asn1/PlayerListMessage.c \ src/third_party/asn1/PlayerListMessage.c \
src/third_party/asn1/per_support.c \ src/third_party/asn1/per_support.c \
src/third_party/asn1/per_opentype.c \ src/third_party/asn1/per_opentype.c \
src/third_party/asn1/per_encoder.c \ src/third_party/asn1/per_encoder.c \
src/third_party/asn1/per_decoder.c \ src/third_party/asn1/per_decoder.c \
src/third_party/asn1/OCTET_STRING.c \ src/third_party/asn1/OCTET_STRING.c \
src/third_party/asn1/NonZeroId.c \ src/third_party/asn1/NonZeroId.c \
src/third_party/asn1/NetPlayerAction.c \ src/third_party/asn1/NetPlayerAction.c \
src/third_party/asn1/NetGameState.c \ src/third_party/asn1/NetGameState.c \
src/third_party/asn1/NetGameMode.c \ src/third_party/asn1/NetGameMode.c \
src/third_party/asn1/NetGameInfo.c \ src/third_party/asn1/NetGameInfo.c \
src/third_party/asn1/NetAvatarType.c \ src/third_party/asn1/NetAvatarType.c \
src/third_party/asn1/NativeInteger.c \ src/third_party/asn1/NativeInteger.c \
src/third_party/asn1/NativeEnumerated.c \ src/third_party/asn1/NativeEnumerated.c \
src/third_party/asn1/MyActionRequestMessage.c \ src/third_party/asn1/MyActionRequestMessage.c \
src/third_party/asn1/LeaveGameRequestMessage.c \ src/third_party/asn1/LeaveGameRequestMessage.c \
src/third_party/asn1/KickPlayerRequestMessage.c \ src/third_party/asn1/KickPlayerRequestMessage.c \
src/third_party/asn1/KickPetitionUpdateMessage.c \ src/third_party/asn1/KickPetitionUpdateMessage.c \
src/third_party/asn1/JoinNewGame.c \ src/third_party/asn1/JoinNewGame.c \
src/third_party/asn1/JoinGameRequestMessage.c \ src/third_party/asn1/JoinGameRequestMessage.c \
src/third_party/asn1/JoinGameReplyMessage.c \ src/third_party/asn1/JoinGameReplyMessage.c \
src/third_party/asn1/JoinGameFailed.c \ src/third_party/asn1/JoinGameFailed.c \
src/third_party/asn1/JoinGameAck.c \ src/third_party/asn1/JoinGameAck.c \
src/third_party/asn1/JoinExistingGame.c \ src/third_party/asn1/JoinExistingGame.c \
src/third_party/asn1/INTEGER.c \ src/third_party/asn1/INTEGER.c \
src/third_party/asn1/InitMessage.c \ src/third_party/asn1/InitMessage.c \
src/third_party/asn1/InitAckMessage.c \ src/third_party/asn1/InitAckMessage.c \
src/third_party/asn1/Id.c \ src/third_party/asn1/Id.c \
src/third_party/asn1/HandStartMessage.c \ src/third_party/asn1/HandStartMessage.c \
src/third_party/asn1/Guid.c \ src/third_party/asn1/Guid.c \
src/third_party/asn1/GameStartMessage.c \ src/third_party/asn1/GameStartMessage.c \
src/third_party/asn1/GamePlayerMessage.c \ src/third_party/asn1/GamePlayerMessage.c \
src/third_party/asn1/GamePlayerLeft.c \ src/third_party/asn1/GamePlayerLeft.c \
src/third_party/asn1/GamePlayerJoined.c \ src/third_party/asn1/GamePlayerJoined.c \
src/third_party/asn1/GameListUpdate.c \ src/third_party/asn1/GameListUpdate.c \
src/third_party/asn1/GameListPlayerLeft.c \ src/third_party/asn1/GameListPlayerLeft.c \
src/third_party/asn1/GameListPlayerJoined.c \ src/third_party/asn1/GameListPlayerJoined.c \
src/third_party/asn1/GameListNew.c \ src/third_party/asn1/GameListNew.c \
src/third_party/asn1/GameListMessage.c \ src/third_party/asn1/GameListMessage.c \
src/third_party/asn1/GameListAdminChanged.c \ src/third_party/asn1/GameListAdminChanged.c \
src/third_party/asn1/GameAdminChanged.c \ src/third_party/asn1/GameAdminChanged.c \
src/third_party/asn1/ErrorMessage.c \ src/third_party/asn1/ErrorMessage.c \
src/third_party/asn1/EndOfHandShowCards.c \ src/third_party/asn1/EndOfHandShowCards.c \
src/third_party/asn1/EndOfHandMessage.c \ src/third_party/asn1/EndOfHandMessage.c \
src/third_party/asn1/EndOfHandHideCards.c \ src/third_party/asn1/EndOfHandHideCards.c \
src/third_party/asn1/EndOfGameMessage.c \ src/third_party/asn1/EndOfGameMessage.c \
src/third_party/asn1/EndKickPetitionMessage.c \ src/third_party/asn1/EndKickPetitionMessage.c \
src/third_party/asn1/DialogMessage.c \ src/third_party/asn1/DialogMessage.c \
src/third_party/asn1/der_encoder.c \ src/third_party/asn1/der_encoder.c \
src/third_party/asn1/DealTurnCardMessage.c \ src/third_party/asn1/DealTurnCardMessage.c \
src/third_party/asn1/DealRiverCardMessage.c \ src/third_party/asn1/DealRiverCardMessage.c \
src/third_party/asn1/DealFlopCardsMessage.c \ src/third_party/asn1/DealFlopCardsMessage.c \
src/third_party/asn1/constraints.c \ src/third_party/asn1/constraints.c \
src/third_party/asn1/constr_TYPE.c \ src/third_party/asn1/constr_TYPE.c \
src/third_party/asn1/constr_SET_OF.c \ src/third_party/asn1/constr_SET_OF.c \
src/third_party/asn1/constr_SEQUENCE_OF.c \ src/third_party/asn1/constr_SEQUENCE_OF.c \
src/third_party/asn1/constr_SEQUENCE.c \ src/third_party/asn1/constr_SEQUENCE.c \
src/third_party/asn1/constr_CHOICE.c \ src/third_party/asn1/constr_CHOICE.c \
src/third_party/asn1/ChatRequestMessage.c \ src/third_party/asn1/ChatRequestMessage.c \
src/third_party/asn1/ChatRequestTypeLobby.c \ src/third_party/asn1/ChatRequestTypeLobby.c \
src/third_party/asn1/ChatRequestTypeGame.c \ src/third_party/asn1/ChatRequestTypeGame.c \
src/third_party/asn1/ChatMessage.c \ src/third_party/asn1/ChatMessage.c \
src/third_party/asn1/ChatTypeGame.c \ src/third_party/asn1/ChatTypeGame.c \
src/third_party/asn1/ChatTypeLobby.c \ src/third_party/asn1/ChatTypeLobby.c \
src/third_party/asn1/ChatTypeBot.c \ src/third_party/asn1/ChatTypeBot.c \
src/third_party/asn1/ChatTypeBroadcast.c \ src/third_party/asn1/ChatTypeBroadcast.c \
src/third_party/asn1/Card.c \ src/third_party/asn1/Card.c \
src/third_party/asn1/BOOLEAN.c \ src/third_party/asn1/BOOLEAN.c \
src/third_party/asn1/BIT_STRING.c \ src/third_party/asn1/BIT_STRING.c \
src/third_party/asn1/ber_tlv_tag.c \ src/third_party/asn1/ber_tlv_tag.c \
src/third_party/asn1/ber_tlv_length.c \ src/third_party/asn1/ber_tlv_length.c \
src/third_party/asn1/ber_decoder.c \ src/third_party/asn1/ber_decoder.c \
src/third_party/asn1/AvatarRequestMessage.c \ src/third_party/asn1/AvatarRequestMessage.c \
src/third_party/asn1/AvatarReplyMessage.c \ src/third_party/asn1/AvatarReplyMessage.c \
src/third_party/asn1/AvatarHeader.c \ src/third_party/asn1/AvatarHeader.c \
src/third_party/asn1/AvatarHash.c \ src/third_party/asn1/AvatarHash.c \
src/third_party/asn1/AvatarEnd.c \ src/third_party/asn1/AvatarEnd.c \
src/third_party/asn1/AvatarData.c \ src/third_party/asn1/AvatarData.c \
src/third_party/asn1/AuthenticatedLogin.c \ src/third_party/asn1/AuthenticatedLogin.c \
src/third_party/asn1/asn_SET_OF.c \ src/third_party/asn1/asn_SET_OF.c \
src/third_party/asn1/asn_SEQUENCE_OF.c \ src/third_party/asn1/asn_SEQUENCE_OF.c \
src/third_party/asn1/asn_codecs_prim.c \ src/third_party/asn1/asn_codecs_prim.c \
src/third_party/asn1/AskKickPlayerMessage.c \ src/third_party/asn1/AskKickPlayerMessage.c \
src/third_party/asn1/AskKickDeniedMessage.c \ src/third_party/asn1/AskKickDeniedMessage.c \
src/third_party/asn1/GuestLogin.c \ src/third_party/asn1/GuestLogin.c \
src/third_party/asn1/AnnounceMessage.c \ src/third_party/asn1/AnnounceMessage.c \
src/third_party/asn1/UnauthenticatedLogin.c \ src/third_party/asn1/UnauthenticatedLogin.c \
src/third_party/asn1/InvitePlayerToGameMessage.c \ src/third_party/asn1/InvitePlayerToGameMessage.c \
src/third_party/asn1/InviteNotifyMessage.c \ src/third_party/asn1/InviteNotifyMessage.c \
src/third_party/asn1/RejectGameInvitationMessage.c \ src/third_party/asn1/RejectGameInvitationMessage.c \
src/third_party/asn1/RejectInvNotifyMessage.c \ src/third_party/asn1/RejectInvNotifyMessage.c \
src/third_party/asn1/RejectGameInvReason.c \ src/third_party/asn1/RejectGameInvReason.c \
src/third_party/asn1/AfterHandShowCardsMessage.c \ src/third_party/asn1/AfterHandShowCardsMessage.c \
src/third_party/asn1/ShowMyCardsRequestMessage.c \ src/third_party/asn1/ShowMyCardsRequestMessage.c \
src/third_party/asn1/EncryptedCards.c \ src/third_party/asn1/EncryptedCards.c \
src/third_party/asn1/PlainCards.c \ src/third_party/asn1/PlainCards.c \
src/third_party/asn1/AfkWarningMessage.c src/third_party/asn1/AfkWarningMessage.c
win32 { win32 {
DEFINES += CURL_STATICLIB DEFINES += CURL_STATICLIB
DEFINES += _WIN32_WINNT=0x0501 DEFINES += _WIN32_WINNT=0x0501
} }
mac { mac {
# make it universal # make it universal
CONFIG += x86 CONFIG += x86
CONFIG -= ppc CONFIG -= ppc
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
# for universal-compilation on PPC-Mac uncomment the following line # for universal-compilation on PPC-Mac uncomment the following line
# on Intel-Mac you have to comment this line out or build will fail. # on Intel-Mac you have to comment this line out or build will fail.
# QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/ # QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/
INCLUDEPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/include/ INCLUDEPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/include/
INCLUDEPATH += /Library/Frameworks/SDL.framework/Headers INCLUDEPATH += /Library/Frameworks/SDL.framework/Headers
INCLUDEPATH += /Library/Frameworks/SDL_mixer.framework/Headers INCLUDEPATH += /Library/Frameworks/SDL_mixer.framework/Headers
} }
+147 -146
View File
@@ -1,7 +1,7 @@
# QMake pro-file for the PokerTH dedicated server # QMake pro-file for the PokerTH dedicated server
isEmpty( PREFIX ){ isEmpty( PREFIX ){
PREFIX =/usr PREFIX =/usr
} }
TEMPLATE = app TEMPLATE = app
@@ -112,12 +112,12 @@ SOURCES += \
src/core/common/loghelper_server.cpp src/core/common/loghelper_server.cpp
win32 { win32 {
DEFINES += CURL_STATICLIB DEFINES += CURL_STATICLIB
DEFINES += _WIN32_WINNT=0x0501 DEFINES += _WIN32_WINNT=0x0501
DEPENDPATH += src/net/win32/ src/core/win32 DEPENDPATH += src/net/win32/ src/core/win32
INCLUDEPATH += ../boost/ ../GnuTLS/include ../gsasl/include INCLUDEPATH += ../boost/ ../GnuTLS/include ../gsasl/include
SOURCES += src/core/win32/convhelper.cpp SOURCES += src/core/win32/convhelper.cpp
LIBPATH += ../boost/stage/lib ../GnuTLS/lib ../openssl/lib ../gsasl/lib ../curl/lib ../mysql/lib ../zlib LIBPATH += ../boost/stage/lib ../GnuTLS/lib ../openssl/lib ../gsasl/lib ../curl/lib ../mysql/lib ../zlib
@@ -126,14 +126,14 @@ win32 {
debug:LIBPATH += Debug/lib debug:LIBPATH += Debug/lib
release:LIBPATH += Release/lib release:LIBPATH += Release/lib
win32-msvc2008 { win32-msvc2008 {
LIBS += -llibgnutls-openssl-26 \ LIBS += -llibgnutls-openssl-26 \
-llibgcrypt-11 \ -llibgcrypt-11 \
-llibgsasl-7 \ -llibgsasl-7 \
-llibcurl -llibcurl
} }
win32-g++ { win32-g++ {
pkth_win64 { pkth_win64 {
LIBS += -lcrypto -lssl -llibeay32 -lssleay32 -lgsasl LIBS += -lcrypto -lssl -llibeay32 -lssleay32 -lgsasl
} }
@@ -141,7 +141,7 @@ win32 {
LIBS += -lgnutls-openssl -lgnutls -lgcrypt -ltasn1 -lgpg-error -lgsasl -lidn LIBS += -lgnutls-openssl -lgnutls -lgcrypt -ltasn1 -lgpg-error -lgsasl -lidn
} }
LIBS += -lcurl LIBS += -lcurl
LIBS += -lz LIBS += -lz
LIBS += -lboost_thread-mgw45-mt-1_44.dll LIBS += -lboost_thread-mgw45-mt-1_44.dll
LIBS += -lboost_filesystem-mgw45-mt-1_44.dll LIBS += -lboost_filesystem-mgw45-mt-1_44.dll
LIBS += -lboost_regex-mgw45-mt-1_44 LIBS += -lboost_regex-mgw45-mt-1_44
@@ -149,170 +149,171 @@ win32 {
LIBS += -lboost_iostreams-mgw45-mt-1_44.dll LIBS += -lboost_iostreams-mgw45-mt-1_44.dll
LIBS += -lboost_zlib-mgw45-mt-1_44.dll LIBS += -lboost_zlib-mgw45-mt-1_44.dll
LIBS += -lboost_program_options-mgw45-mt-1_44.dll LIBS += -lboost_program_options-mgw45-mt-1_44.dll
} }
LIBS += -lgdi32 \ LIBS += -lgdi32 \
-lcomdlg32 \ -lcomdlg32 \
-loleaut32 \ -loleaut32 \
-limm32 \ -limm32 \
-lwinmm \ -lwinmm \
-lwinspool \ -lwinspool \
-lole32 \ -lole32 \
-luuid \ -luuid \
-luser32 \ -luser32 \
-lmsimg32 \ -lmsimg32 \
-lshell32 \ -lshell32 \
-lkernel32 \ -lkernel32 \
-lmswsock \ -lmswsock \
-lws2_32 \ -lws2_32 \
-ladvapi32 \ -ladvapi32 \
-lwldap32 -lwldap32
} }
!win32 { !win32 {
DEPENDPATH += src/net/linux/ src/core/linux DEPENDPATH += src/net/linux/ src/core/linux
SOURCES += src/core/linux/daemon.c SOURCES += src/core/linux/daemon.c
SOURCES += src/core/linux/convhelper.cpp SOURCES += src/core/linux/convhelper.cpp
} }
unix { unix {
# workaround for problems with boost_filesystem exceptions # workaround for problems with boost_filesystem exceptions
QMAKE_LFLAGS += -no_dead_strip_inits_and_terms QMAKE_LFLAGS += -no_dead_strip_inits_and_terms
} }
unix : !mac { unix : !mac {
##### My release static build options ##### My release static build options
#QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections #QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
#QMAKE_LFLAGS += -Wl,--gc-sections #QMAKE_LFLAGS += -Wl,--gc-sections
LIBPATH += lib LIBPATH += lib
LIB_DIRS = $${PREFIX}/lib $${PREFIX}/lib64 LIB_DIRS = $${PREFIX}/lib $${PREFIX}/lib64
BOOST_FS = boost_filesystem boost_filesystem-mt BOOST_FS = boost_filesystem boost_filesystem-mt
BOOST_THREAD = boost_thread boost_thread-mt BOOST_THREAD = boost_thread boost_thread-mt
BOOST_PROGRAM_OPTIONS = boost_program_options boost_program_options-mt BOOST_PROGRAM_OPTIONS = boost_program_options boost_program_options-mt
BOOST_IOSTREAMS = boost_iostreams boost_iostreams-mt BOOST_IOSTREAMS = boost_iostreams boost_iostreams-mt
BOOST_SYS = boost_system boost_system-mt BOOST_SYS = boost_system boost_system-mt
BOOST_REGEX = boost_regex boost_regex-mt BOOST_REGEX = boost_regex boost_regex-mt
# #
# searching in $PREFIX/lib and $PREFIX/lib64 # searching in $PREFIX/lib and $PREFIX/lib64
# to override the default '/usr' pass PREFIX # to override the default '/usr' pass PREFIX
# variable to qmake. # variable to qmake.
# #
for(dir, LIB_DIRS){ for(dir, LIB_DIRS){
exists($$dir){ exists($$dir){
for(lib, BOOST_THREAD):exists($${dir}/lib$${lib}.a) { for(lib, BOOST_THREAD):exists($${dir}/lib$${lib}.a) {
message("Found $$lib") message("Found $$lib")
BOOST_THREAD = -l$$lib BOOST_THREAD = -l$$lib
}
for(lib, BOOST_THREAD):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib")
BOOST_THREAD = -l$$lib
}
for(lib, BOOST_FS):exists($${dir}/lib$${lib}.a) {
message("Found $$lib")
BOOST_FS = -l$$lib
}
for(lib, BOOST_FS):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib")
BOOST_FS = -l$$lib
}
for(lib, BOOST_IOSTREAMS):exists($${dir}/lib$${lib}.a) {
message("Found $$lib")
BOOST_IOSTREAMS = -l$$lib
}
for(lib, BOOST_IOSTREAMS):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib")
BOOST_IOSTREAMS = -l$$lib
}
for(lib, BOOST_PROGRAM_OPTIONS):exists($${dir}/lib$${lib}.a) {
message("Found $$lib")
BOOST_PROGRAM_OPTIONS = -l$$lib
}
for(lib, BOOST_PROGRAM_OPTIONS):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib")
BOOST_PROGRAM_OPTIONS = -l$$lib
}
for(lib, BOOST_REGEX):exists($${dir}/lib$${lib}.a) {
message("Found $$lib")
BOOST_REGEX = -l$$lib
}
for(lib, BOOST_REGEX):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib")
BOOST_REGEX = -l$$lib
}
for(lib, BOOST_SYS):exists($${dir}/lib$${lib}.a) {
message("Found $$lib")
BOOST_SYS = -l$$lib
}
for(lib, BOOST_SYS):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib")
BOOST_SYS = -l$$lib
}
} }
} for(lib, BOOST_THREAD):exists($${dir}/lib$${lib}.so*) {
BOOST_LIBS = $$BOOST_THREAD $$BOOST_FS $$BOOST_PROGRAM_OPTIONS $$BOOST_IOSTREAMS $$BOOST_REGEX $$BOOST_SYS message("Found $$lib")
!count(BOOST_LIBS, 6){ BOOST_THREAD = -l$$lib
error("Unable to find boost libraries in PREFIX=$${PREFIX}") }
} for(lib, BOOST_FS):exists($${dir}/lib$${lib}.a) {
message("Found $$lib")
BOOST_FS = -l$$lib
}
for(lib, BOOST_FS):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib")
BOOST_FS = -l$$lib
}
for(lib, BOOST_IOSTREAMS):exists($${dir}/lib$${lib}.a) {
message("Found $$lib")
BOOST_IOSTREAMS = -l$$lib
}
for(lib, BOOST_IOSTREAMS):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib")
BOOST_IOSTREAMS = -l$$lib
}
for(lib, BOOST_PROGRAM_OPTIONS):exists($${dir}/lib$${lib}.a) {
message("Found $$lib")
BOOST_PROGRAM_OPTIONS = -l$$lib
}
for(lib, BOOST_PROGRAM_OPTIONS):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib")
BOOST_PROGRAM_OPTIONS = -l$$lib
}
for(lib, BOOST_REGEX):exists($${dir}/lib$${lib}.a) {
message("Found $$lib")
BOOST_REGEX = -l$$lib
}
for(lib, BOOST_REGEX):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib")
BOOST_REGEX = -l$$lib
}
for(lib, BOOST_SYS):exists($${dir}/lib$${lib}.a) {
message("Found $$lib")
BOOST_SYS = -l$$lib
}
for(lib, BOOST_SYS):exists($${dir}/lib$${lib}.so*) {
message("Found $$lib")
BOOST_SYS = -l$$lib
}
}
}
BOOST_LIBS = $$BOOST_THREAD $$BOOST_FS $$BOOST_PROGRAM_OPTIONS $$BOOST_IOSTREAMS $$BOOST_REGEX $$BOOST_SYS
!count(BOOST_LIBS, 6){
error("Unable to find boost libraries in PREFIX=$${PREFIX}")
}
UNAME = $$system(uname -s) UNAME = $$system(uname -s)
BSD = $$find(UNAME, "BSD") BSD = $$find(UNAME, "BSD")
kFreeBSD = $$find(UNAME, "kFreeBSD") kFreeBSD = $$find(UNAME, "kFreeBSD")
LIBS += -lpokerth_lib \ LIBS += -lpokerth_lib \
-lpokerth_db \ -lpokerth_db \
-lpokerth_protocol -lpokerth_protocol
LIBS += $$BOOST_LIBS LIBS += $$BOOST_LIBS
LIBS += -lcurl -lgsasl LIBS += -lcurl -lgsasl
!isEmpty( BSD ): isEmpty( kFreeBSD ){ !isEmpty( BSD ): isEmpty( kFreeBSD ){
LIBS += -lcrypto -liconv LIBS += -lcrypto -liconv
} else { } else {
LIBS += -lgnutls-openssl -lgcrypt LIBS += -lgnutls-openssl -lgcrypt
} }
TARGETDEPS += ./lib/libpokerth_lib.a \ TARGETDEPS += ./lib/libpokerth_lib.a \
./lib/libpokerth_db.a \ ./lib/libpokerth_db.a \
./lib/libpokerth_protocol.a ./lib/libpokerth_protocol.a
#### INSTALL #### #### INSTALL ####
binary.path += $${PREFIX}/bin/ binary.path += $${PREFIX}/bin/
binary.files += pokerth_server binary.files += pokerth_server
INSTALLS += binary INSTALLS += binary
} }
mac { mac {
# make it universal # make it universal
CONFIG += x86 CONFIG += x86
CONFIG -= ppc CONFIG -= ppc
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
# for universal-compilation on PPC-Mac uncomment the following line # for universal-compilation on PPC-Mac uncomment the following line
# on Intel-Mac you have to comment this line out or build will fail. # on Intel-Mac you have to comment this line out or build will fail.
# QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/ # QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/
LIBPATH += lib LIBPATH += lib
LIBS += -lpokerth_lib -lpokerth_db -lpokerth_protocol LIBS += -lpokerth_lib -lpokerth_db -lpokerth_protocol
# standard path for darwinports # standard path for darwinports
# make sure you have a universal version of boost # make sure you have a universal version of boost
LIBS += /usr/local/lib/libboost_thread.a LIBS += /usr/local/lib/libboost_thread.a
LIBS += /usr/local/lib/libboost_filesystem.a LIBS += /usr/local/lib/libboost_filesystem.a
LIBS += /usr/local/lib/libboost_regex.a LIBS += /usr/local/lib/libboost_regex.a
LIBS += /usr/local/lib/libboost_system.a LIBS += /usr/local/lib/libboost_system.a
LIBS += /usr/local/lib/libboost_iostreams.a LIBS += /usr/local/lib/libboost_iostreams.a
LIBS += /usr/local/lib/libboost_program_options.a LIBS += /usr/local/lib/libboost_program_options.a
LIBS += /usr/local/lib/libgsasl.a LIBS += /usr/local/lib/libgsasl.a
# libraries installed on every mac # libraries installed on every mac
LIBS += -lcrypto -lssl -lz -lcurl -liconv LIBS += -lcrypto -lssl -lz -lcurl -liconv
# set the application icon # set the application icon
RC_FILE = pokerth.icns RC_FILE = pokerth.icns
LIBPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/lib LIBPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/lib
INCLUDEPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/include/ INCLUDEPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/include/
} }
official_server { official_server {
+18
View File
@@ -0,0 +1,18 @@
#include <boost/shared_ptr.hpp>
#include <net/netpacket.h>
#include <game_defs.h>
int
main()
{
boost::shared_ptr<NetPacket> packet(new NetPacket(NetPacket::Alloc));
packet->GetMsg()->present = PokerTHMessage_PR_announceMessage;
AnnounceMessage_t *netAnnounce = &packet->GetMsg()->choice.announceMessage;
netAnnounce->protocolVersion.major = NET_VERSION_MAJOR;
netAnnounce->protocolVersion.minor = NET_VERSION_MINOR;
netAnnounce->latestGameVersion.major = POKERTH_VERSION_MAJOR;
netAnnounce->latestGameVersion.minor = POKERTH_VERSION_MINOR;
netAnnounce->latestBetaRevision = POKERTH_BETA_REVISION;
return 0;
}