Reformatting .pro files, adding test skeleton.
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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 \
|
||||
|
||||
+2
-1
@@ -168,6 +168,7 @@ win32 {
|
||||
-ladvapi32 \
|
||||
-lwldap32
|
||||
}
|
||||
|
||||
!win32 {
|
||||
DEPENDPATH += src/net/linux/ src/core/linux
|
||||
SOURCES += src/core/linux/daemon.c
|
||||
@@ -283,7 +284,7 @@ unix : !mac {
|
||||
binary.files += pokerth_server
|
||||
|
||||
INSTALLS += binary
|
||||
}
|
||||
}
|
||||
|
||||
mac {
|
||||
# make it universal
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user