Skip to content

Commit 314fc00

Browse files
committed
Use <OS_name>conf.pri file to control libz linkage
1 parent c36b277 commit 314fc00

6 files changed

Lines changed: 9 additions & 5 deletions

File tree

macxconf.pri

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ LIBS += -lboost_system-mt
1919
#LIBS += -lboost_filesystem-mt
2020
# Carbon
2121
LIBS += -framework Carbon -framework IOKit
22+
# Zlib
23+
LIBS += -lz
2224

2325
document_icon.path = Contents/Resources
2426
document_icon.files = mac/qBitTorrentDocument.icns

os2conf.pri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LIBS += -ltorrent-rasterbar \
77
-lboost_thread \
88
-lboost_system \
99
-lboost_filesystem \
10-
-lssl -lcrypto -lidn -lpthread
10+
-lssl -lcrypto -lidn -lpthread -lz
1111

1212
RC_FILE = qbittorrent_os2.rc
1313

src/src.pro

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
6060
# filesystem v3 is the default.
6161
DEFINES += BOOST_FILESYSTEM_VERSION=2
6262

63-
# We need lz to gunzip HTTP responses.
64-
LIBS += -lz
65-
6663
INCLUDEPATH += $$PWD
6764

6865

unixconf.pri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ QMAKE_CXXFLAGS += -Wformat -Wformat-security
1010
QMAKE_LFLAGS_APP += -rdynamic
1111
CONFIG += link_pkgconfig
1212
PKGCONFIG += libtorrent-rasterbar
13-
LIBS += -lssl -lcrypto
13+
LIBS += -lssl -lcrypto -lz
1414

1515
# Man page
1616
nox {

winconf-msvc.pri

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ CONFIG(debug, debug|release) {
2828
LIBS += advapi32.lib shell32.lib crypt32.lib
2929
LIBS += libeay32.lib ssleay32.lib
3030
LIBS += PowrProf.lib
31+
LIBS += zlib.lib

winconf.pri

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44
INCLUDEPATH += $$quote(C:/qBittorrent/boost_1_51_0)
55
#Point this to the libtorrent include folder
66
INCLUDEPATH += $$quote(C:/qBittorrent/RC_0_16/include)
7+
#Point this to the zlib include folder
8+
INCLUDEPATH += $$quote(C:/qBittorrent/Zlib/include)
79

810
#Point this to the boost lib folder
911
LIBS += $$quote(-LC:/qBittorrent/boost_1_51_0/stage/lib)
1012
#Point this to the libtorrent lib folder
1113
LIBS += $$quote(-LC:/qBittorrent/RC_0_16/bin/<path-according-to-the-build-options-chosen>)
14+
#Point this to the zlib lib folder
15+
LIBS += $$quote(-LC:/qBittorrent/Zlib/lib)
1216

1317
# LIBTORRENT DEFINES
1418
DEFINES += BOOST_ALL_NO_LIB

0 commit comments

Comments
 (0)