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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -1,4 +1,4 @@
# QMake pro-file for PokerTH common library
# QMake pro-file for PokerTH db library
TEMPLATE = lib
CODECFORSRC = UTF-8
+5 -1
View File
@@ -1,5 +1,9 @@
# QMake pro-file for PokerTH game
isEmpty( PREFIX ):PREFIX = /usr
isEmpty( PREFIX ){
PREFIX =/usr
}
TEMPLATE = app
CODECFORSRC = UTF-8
CONFIG += qt \
+1
View File
@@ -168,6 +168,7 @@ win32 {
-ladvapi32 \
-lwldap32
}
!win32 {
DEPENDPATH += src/net/linux/ src/core/linux
SOURCES += src/core/linux/daemon.c
+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;
}