diff --git a/pokerth_game.pro b/pokerth_game.pro index 123d0811..215adc7c 100644 --- a/pokerth_game.pro +++ b/pokerth_game.pro @@ -293,6 +293,13 @@ TRANSLATIONS = ts/pokerth_af.ts \ ts/pokerth_ta.ts \ ts/pokerth_tr.ts \ ts/pokerth_START_HERE.ts + +LIBS += -lpokerth_lib \ + -lpokerth_db \ + -lpokerth_protocol \ + -lcurl \ + -lsqlite3 + win32 { DEFINES += CURL_STATICLIB DEFINES += _WIN32_WINNT=0x0501 @@ -315,13 +322,9 @@ win32 { ../SDL_mixer/lib \ ../mysql/lib \ ../zlib - LIBS += -lpokerth_lib \ - -lpokerth_db \ - -lpokerth_protocol \ - -lSDL_mixer \ + LIBS += -lSDL_mixer \ -lSDL \ -lSDLmain \ - -lcurl \ -lz debug:LIBPATH += debug/lib release:LIBPATH += release/lib @@ -442,14 +445,9 @@ unix:!mac { 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 \ - -lsqlite3 + -lgsasl !isEmpty( BSD ):isEmpty( kFreeBSD ):LIBS += -lcrypto else:LIBS += -lgnutls-openssl \ -lgcrypt @@ -483,9 +481,6 @@ mac { # 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 \ @@ -512,7 +507,6 @@ mac { LIBS += -lcrypto \ -lssl \ -lz \ - -lcurl \ -framework \ Carbon diff --git a/pokerth_server.pro b/pokerth_server.pro index e546077f..e91d3979 100644 --- a/pokerth_server.pro +++ b/pokerth_server.pro @@ -112,6 +112,12 @@ SOURCES += \ src/net/common/net_helper_server.cpp \ src/core/common/loghelper_server.cpp +LIBS += -lpokerth_lib \ + -lpokerth_db \ + -lpokerth_protocol \ + -lcurl \ + -lsqlite3 + win32 { DEFINES += CURL_STATICLIB DEFINES += _WIN32_WINNT=0x0501 @@ -122,12 +128,6 @@ win32 { LIBPATH += ../boost/stage/lib ../GnuTLS/lib ../openssl/lib ../gsasl/lib ../curl/lib ../mysql/lib ../zlib - LIBS += -lpokerth_lib \ - -lpokerth_db \ - -lpokerth_protocol \ - -lcurl \ - -lz - debug:LIBPATH += debug/lib release:LIBPATH += release/lib @@ -270,11 +270,8 @@ unix : !mac { BSD = $$find(UNAME, "BSD") kFreeBSD = $$find(UNAME, "kFreeBSD") - LIBS += -lpokerth_lib \ - -lpokerth_db \ - -lpokerth_protocol LIBS += $$BOOST_LIBS - LIBS += -lcurl -lgsasl -lsqlite3 + LIBS += -lgsasl !isEmpty( BSD ): isEmpty( kFreeBSD ){ LIBS += -lcrypto -liconv } else { @@ -304,7 +301,6 @@ mac { # QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/ 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 @@ -316,7 +312,7 @@ mac { LIBS += /usr/local/lib/libgsasl.a # libraries installed on every mac - LIBS += -lcrypto -lssl -lz -lcurl -liconv + LIBS += -lcrypto -lssl -lz -liconv # set the application icon RC_FILE = pokerth.icns LIBPATH += /Developer/SDKs/MacOSX10.5.sdk/usr/lib