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