next steps implementing cardschance

This commit is contained in:
doitux
2008-10-14 20:45:51 +00:00
parent 01048bd7e9
commit 1451398331
41 changed files with 11744 additions and 5224 deletions
+82 -82
View File
@@ -1,27 +1,27 @@
# QMake pro-file for PokerTH game
isEmpty( PREFIX ){
isEmpty( PREFIX ){
PREFIX =/usr
}
}
TEMPLATE = app
CODECFORSRC = UTF-8
#CONFIG += qt thread embed_manifest_exe exceptions rtti stl warn_on release
CONFIG += qt thread embed_manifest_exe exceptions rtti stl warn_on debug
#####Uncomment this for RELEASE
#QTPLUGIN += qjpeg qgif
UI_DIR = uics
MOC_DIR = mocs
OBJECTS_DIR = obj
DEFINES += ENABLE_IPV6
DEFINES += PREFIX=\"$${PREFIX}\"
TARGET = pokerth
RESOURCES = src/gui/qt/resources/pokerth.qrc
INCLUDEPATH += . \
src \
src/engine \
@@ -58,7 +58,7 @@ INCLUDEPATH += . \
src/gui/qt/gamelobbydialog \
src/gui/qt/gamelobbydialog/lobbychat \
src/gui/qt/timeoutmsgbox
DEPENDPATH += . \
src \
src/config \
@@ -97,7 +97,7 @@ DEPENDPATH += . \
src/gui/qt/gamelobbydialog \
src/gui/qt/gamelobbydialog/lobbychat \
src/gui/qt/timeoutmsgbox
# Input
HEADERS += \
src/game.h \
@@ -186,7 +186,7 @@ HEADERS += \
src/gui/qt/qttools/qthelper/qthelper.h \
src/gui/generic/serverguiwrapper.h \
src/gui/qt/gametable/mychancelabel.h
FORMS += \
src/gui/qt/gametable.ui \
src/gui/qt/aboutpokerth.ui \
@@ -204,7 +204,7 @@ FORMS += \
src/gui/qt/gamelobbydialog.ui \
src/gui/qt/mymessagedialog.ui \
src/gui/qt/manualblindsorderdialog.ui
SOURCES += \
src/pokerth.cpp \
src/gui/qt/chattools/chattools.cpp \
@@ -246,7 +246,7 @@ SOURCES += \
src/net/common/net_helper_client.cpp \
src/core/common/loghelper_client.cpp \
src/gui/qt/gametable/mychancelabel.cpp
TRANSLATIONS = \
ts/pokerth_bg.ts \
ts/pokerth_de.ts \
@@ -266,25 +266,25 @@ TRANSLATIONS = \
ts/pokerth_zhcn.ts \
ts/pokerth_fi.ts \
ts/pokerth_START_HERE.ts
win32 {
win32 {
DEFINES += CURL_STATICLIB
DEPENDPATH += src/net/win32/ src/core/win32
INCLUDEPATH += ../boost/ ../SDL/include ../SDL_mixer
INCLUDEPATH += ../SDL/include/SDL ../SDL_mixer/include ../GnuTLS/include ../curl/include ../zlib
LIBPATH += ../boost/stage/lib ../GnuTLS/lib ../curl/lib ../zlib
LIBS += -lpokerth_lib
win32-msvc2005 {
win32-msvc2005 {
LIBPATH += Release/lib ../SDL/VisualC/SDL/Release ../SDL/VisualC/SDLmain/Release ../SDL_mixer/VisualC/Release
#LIBPATH += Debug/lib ../SDL/VisualC/SDL/Debug ../SDL/VisualC/SDLmain/Debug ../SDL_mixer/VisualC/Debug
LIBS += -llibgnutls-openssl -llibgcrypt
LIBS += -llibcurl
}
win32-g++ {
}
win32-g++ {
#LIBPATH += Release/lib
LIBPATH += Debug/lib
LIBPATH += ../SDL/lib ../SDL_mixer/lib
@@ -296,108 +296,108 @@ win32 {
LIBS += -llibboost_system-mgw34-mt-1_36
LIBS += -llibboost_iostreams-mgw34-mt-1_36
LIBS += -llibboost_zlib-mgw34-mt-1_36
}
}
LIBS += -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lole32 -luuid -luser32 -lmsimg32 -lshell32 -lkernel32 -lws2_32 -ladvapi32 -lsdl -lsdlmain -lsdl_mixer -lwldap32
RC_FILE = pokerth.rc
}
!win32 {
}
!win32 {
DEPENDPATH += src/net/linux/ src/core/linux
}
unix {
}
unix {
# workaround for problems with boost_filesystem exceptions
QMAKE_LFLAGS += -no_dead_strip_inits_and_terms
}
unix : !mac {
}
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
for(dir, LIB_DIRS){
exists($$dir){
for(lib, BOOST_THREAD){
exists($${dir}/lib$${lib}.so*){
message("Found $$lib")
for(dir, LIB_DIRS){
exists($$dir){
for(lib, BOOST_THREAD){
exists($${dir}/lib$${lib}.so*){
message("Found $$lib")
BOOST_THREAD = -l$$lib
}
}
for(lib, BOOST_FS){
exists($${dir}/lib$${lib}.so*){
message("Found $$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}.so*){
message("Found $$lib")
}
}
for(lib, BOOST_IOSTREAMS){
exists($${dir}/lib$${lib}.so*){
message("Found $$lib")
BOOST_IOSTREAMS = -l$$lib
}
}
}
}
}
}
}
}
BOOST_LIBS = $$BOOST_THREAD $$BOOST_FS $$BOOST_IOSTREAMS
!count(BOOST_LIBS, 3){
error( libboost (version >= 1.34.1) --> http://www.boost.org/")
}
if($$system(sdl-config --version)){
error( libSDL_mixer, libSDL --> http://www.libsdl.org/")
}
!count(BOOST_LIBS, 3){
error("libboost (version >= 1.34.1) --> http://www.boost.org/")
}
if($$system(sdl-config --version)){
error("libSDL_mixer, libSDL --> http://www.libsdl.org/")
}
UNAME = $$system(uname -s)
BSD = $$find(UNAME, "BSD")
LIBS += -lpokerth_lib
LIBS += $$BOOST_LIBS
LIBS += -lSDL_mixer -lcurl
!isEmpty( BSD ){
!isEmpty( BSD ){
LIBS += -lcrypto
} else {
} else {
LIBS += -lgnutls-openssl -lgcrypt
}
}
TARGETDEPS += ./lib/libpokerth_lib.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 {
}
mac {
# make it universal
CONFIG += x86
CONFIG += ppc
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.3
# 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
# Qt static (path is standard for self-compiling qt)
@@ -423,4 +423,4 @@ mac {
INCLUDEPATH += /Developer/SDKs/MacOSX10.4u.sdk/usr/include/
INCLUDEPATH += /Library/Frameworks/SDL.framework/Headers
INCLUDEPATH += /Library/Frameworks/SDL_mixer.framework/Headers
}
}