Skip to content

Commit 39e1eba

Browse files
author
Christophe Dumez
committed
Mac OS X: Tweak project file to fix compilation errors
1 parent 0a0033b commit 39e1eba

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

macxconf.pri

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,22 @@ PREFIX = /usr/local
22
BINDIR = /usr/local/bin
33
DATADIR = /usr/local/share
44

5-
INCLUDEPATH += /usr/local/include/libtorrent /usr/include/openssl /usr/include /opt/local/include/boost /opt/local/include
6-
LIBS += -ltorrent-rasterbar -lcrypto -L/opt/local/lib -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -framework Cocoa -framework Carbon -framework IOKit
5+
# Use pkg-config to get all necessary libtorrent DEFINES
6+
CONFIG += link_pkgconfig
7+
PKGCONFIG += libtorrent-rasterbar
8+
9+
# Special include/libs paths (macports)
10+
INCLUDEPATH += /usr/include/openssl /usr/include /opt/local/include/boost /opt/local/include
11+
LIBS += -L/opt/local/lib
12+
13+
# OpenSSL lib
14+
LIBS += -lssl -lcrypto
15+
# Boost system lib
16+
LIBS += -lboost_system-mt
17+
# Boost filesystem lib (Not needed for libtorrent >= 0.16.0)
18+
LIBS += -lboost_filesystem-mt
19+
# Carbon
20+
LIBS += -framework Carbon -framework IOKit
721

822
document_icon.path = Contents/Resources
923
document_icon.files = Icons/qBitTorrentDocument.icns

0 commit comments

Comments
 (0)