Fixing native Windows build.

This commit is contained in:
lotodore
2010-12-20 18:27:48 +00:00
parent d44d3ce2cf
commit b6d2e61fd8
3 changed files with 26 additions and 17 deletions
+11 -7
View File
@@ -299,8 +299,7 @@ TRANSLATIONS = ts/pokerth_af.ts \
LIBS += -lpokerth_lib \
-lpokerth_db \
-lpokerth_protocol \
-lcurl \
-lsqlite3
-lcurl
win32 {
DEFINES += CURL_STATICLIB
@@ -314,6 +313,7 @@ win32 {
../GnuTLS/include \
../gsasl/include \
../curl/include \
../sqlite \
../zlib
LIBPATH += ../boost/stage/lib \
../GnuTLS/lib \
@@ -337,6 +337,7 @@ win32 {
LIBS += -lgnutls-openssl -lgnutls -lgcrypt -lgpg-error -lgsasl -lidn
}
win32-g++-cross {
LIBS += -lsqlite3
LIBS += -lntlm -lmikmod -lddraw -ldxguid -lsmpeg -lvorbisfile -lvorbis -logg
LIBS += -lboost_thread_win32-mt
LIBS += -lboost_filesystem-mt
@@ -345,12 +346,13 @@ win32 {
LIBS += -lboost_system-mt
}
win32-g++ {
SOURCES += ../sqlite/sqlite3.c
!pkth_win64:LIBS += -ltasn1
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_iostreams-mgw45-mt-1_44.dll
LIBS += -lboost_system-mgw45-mt-1_44.dll
LIBS += -lboost_thread-mgw45-mt-1_45.dll
LIBS += -lboost_filesystem-mgw45-mt-1_45.dll
LIBS += -lboost_regex-mgw45-mt-1_45
LIBS += -lboost_iostreams-mgw45-mt-1_45.dll
LIBS += -lboost_system-mgw45-mt-1_45.dll
}
LIBS += \
-lgdi32 \
@@ -447,6 +449,7 @@ unix:!mac {
UNAME = $$system(uname -s)
BSD = $$find(UNAME, "BSD")
kFreeBSD = $$find(UNAME, "kFreeBSD")
LIBS += -lsqlite3
LIBS += $$BOOST_LIBS
LIBS += -lSDL_mixer \
-lgsasl
@@ -509,6 +512,7 @@ mac {
# libraries installed on every mac
LIBS += -lcrypto \
-lssl \
-lsqlite3 \
-lz \
-framework \
Carbon
+3 -1
View File
@@ -227,7 +227,9 @@ win32{
DEFINES += CURL_STATICLIB
DEFINES += _WIN32_WINNT=0x0501
DEPENDPATH += src/net/win32/ src/core/win32
INCLUDEPATH += ../boost/ ../GnuTLS/include ../gsasl/include ../curl/include ../zlib ../openssl/include
win32-g++ {
INCLUDEPATH += ../boost/ ../GnuTLS/include ../gsasl/include ../curl/include ../zlib ../sqlite ../openssl/include
}
}
!win32{
##### My release static build options
+12 -9
View File
@@ -115,14 +115,13 @@ SOURCES += \
LIBS += -lpokerth_lib \
-lpokerth_db \
-lpokerth_protocol \
-lcurl \
-lsqlite3
-lcurl
win32 {
DEFINES += CURL_STATICLIB
DEFINES += _WIN32_WINNT=0x0501
DEPENDPATH += src/net/win32/ src/core/win32
INCLUDEPATH += ../boost/ ../GnuTLS/include ../gsasl/include
INCLUDEPATH += ../sqlite ../boost/ ../GnuTLS/include ../gsasl/include
SOURCES += src/core/win32/convhelper.cpp
@@ -138,6 +137,7 @@ win32 {
LIBS += -lgnutls-openssl -lgnutls -lgcrypt -lgpg-error -lgsasl -lidn
}
win32-g++-cross {
LIBS += -lsqlite3
LIBS += -lntlm
LIBS += -lboost_thread_win32-mt
LIBS += -lboost_filesystem-mt
@@ -147,13 +147,14 @@ win32 {
LIBS += -lboost_system-mt
}
win32-g++ {
SOURCES += ../sqlite/sqlite3.c
!pkth_win64:LIBS += -ltasn1
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_program_options-mgw45-mt-1_44.dll
LIBS += -lboost_iostreams-mgw45-mt-1_44.dll
LIBS += -lboost_system-mgw45-mt-1_44.dll
LIBS += -lboost_thread-mgw45-mt-1_45.dll
LIBS += -lboost_filesystem-mgw45-mt-1_45.dll
LIBS += -lboost_regex-mgw45-mt-1_45
LIBS += -lboost_program_options-mgw45-mt-1_45.dll
LIBS += -lboost_iostreams-mgw45-mt-1_45.dll
LIBS += -lboost_system-mgw45-mt-1_45.dll
}
LIBS += -liconv \
@@ -271,6 +272,7 @@ unix : !mac {
kFreeBSD = $$find(UNAME, "kFreeBSD")
LIBS += $$BOOST_LIBS
LIBS += -lsqlite3
LIBS += -lgsasl
!isEmpty( BSD ): isEmpty( kFreeBSD ){
LIBS += -lcrypto -liconv
@@ -313,6 +315,7 @@ mac {
LIBS += /usr/local/lib/libgsasl.a
# libraries installed on every mac
LIBS += -lsqlite3
LIBS += -lcrypto -lssl -lz -liconv
# set the application icon
RC_FILE = pokerth.icns