Browse Source

Use <OS_name>conf.pri file to control libz linkage

adaptive-webui-19844
Nick Tiskov 12 years ago
parent
commit
314fc003b3
  1. 2
      macxconf.pri
  2. 2
      os2conf.pri
  3. 3
      src/src.pro
  4. 2
      unixconf.pri
  5. 1
      winconf-msvc.pri
  6. 4
      winconf.pri

2
macxconf.pri

@ -19,6 +19,8 @@ LIBS += -lboost_system-mt @@ -19,6 +19,8 @@ LIBS += -lboost_system-mt
#LIBS += -lboost_filesystem-mt
# Carbon
LIBS += -framework Carbon -framework IOKit
# Zlib
LIBS += -lz
document_icon.path = Contents/Resources
document_icon.files = mac/qBitTorrentDocument.icns

2
os2conf.pri

@ -7,7 +7,7 @@ LIBS += -ltorrent-rasterbar \ @@ -7,7 +7,7 @@ LIBS += -ltorrent-rasterbar \
-lboost_thread \
-lboost_system \
-lboost_filesystem \
-lssl -lcrypto -lidn -lpthread
-lssl -lcrypto -lidn -lpthread -lz
RC_FILE = qbittorrent_os2.rc

3
src/src.pro

@ -60,9 +60,6 @@ DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS @@ -60,9 +60,6 @@ DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
# filesystem v3 is the default.
DEFINES += BOOST_FILESYSTEM_VERSION=2
# We need lz to gunzip HTTP responses.
LIBS += -lz
INCLUDEPATH += $$PWD

2
unixconf.pri

@ -10,7 +10,7 @@ QMAKE_CXXFLAGS += -Wformat -Wformat-security @@ -10,7 +10,7 @@ QMAKE_CXXFLAGS += -Wformat -Wformat-security
QMAKE_LFLAGS_APP += -rdynamic
CONFIG += link_pkgconfig
PKGCONFIG += libtorrent-rasterbar
LIBS += -lssl -lcrypto
LIBS += -lssl -lcrypto -lz
# Man page
nox {

1
winconf-msvc.pri

@ -28,3 +28,4 @@ CONFIG(debug, debug|release) { @@ -28,3 +28,4 @@ CONFIG(debug, debug|release) {
LIBS += advapi32.lib shell32.lib crypt32.lib
LIBS += libeay32.lib ssleay32.lib
LIBS += PowrProf.lib
LIBS += zlib.lib

4
winconf.pri

@ -4,11 +4,15 @@ @@ -4,11 +4,15 @@
INCLUDEPATH += $$quote(C:/qBittorrent/boost_1_51_0)
#Point this to the libtorrent include folder
INCLUDEPATH += $$quote(C:/qBittorrent/RC_0_16/include)
#Point this to the zlib include folder
INCLUDEPATH += $$quote(C:/qBittorrent/Zlib/include)
#Point this to the boost lib folder
LIBS += $$quote(-LC:/qBittorrent/boost_1_51_0/stage/lib)
#Point this to the libtorrent lib folder
LIBS += $$quote(-LC:/qBittorrent/RC_0_16/bin/<path-according-to-the-build-options-chosen>)
#Point this to the zlib lib folder
LIBS += $$quote(-LC:/qBittorrent/Zlib/lib)
# LIBTORRENT DEFINES
DEFINES += BOOST_ALL_NO_LIB

Loading…
Cancel
Save