From 39e1ebaa9b88e261ebab5eb1714af15492a2adca Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 28 Dec 2011 14:24:59 +0200 Subject: [PATCH] Mac OS X: Tweak project file to fix compilation errors --- macxconf.pri | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/macxconf.pri b/macxconf.pri index ca8951e9d..7717d4d4c 100644 --- a/macxconf.pri +++ b/macxconf.pri @@ -2,8 +2,22 @@ PREFIX = /usr/local BINDIR = /usr/local/bin DATADIR = /usr/local/share -INCLUDEPATH += /usr/local/include/libtorrent /usr/include/openssl /usr/include /opt/local/include/boost /opt/local/include -LIBS += -ltorrent-rasterbar -lcrypto -L/opt/local/lib -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -framework Cocoa -framework Carbon -framework IOKit +# Use pkg-config to get all necessary libtorrent DEFINES +CONFIG += link_pkgconfig +PKGCONFIG += libtorrent-rasterbar + +# Special include/libs paths (macports) +INCLUDEPATH += /usr/include/openssl /usr/include /opt/local/include/boost /opt/local/include +LIBS += -L/opt/local/lib + +# OpenSSL lib +LIBS += -lssl -lcrypto +# Boost system lib +LIBS += -lboost_system-mt +# Boost filesystem lib (Not needed for libtorrent >= 0.16.0) +LIBS += -lboost_filesystem-mt +# Carbon +LIBS += -framework Carbon -framework IOKit document_icon.path = Contents/Resources document_icon.files = Icons/qBitTorrentDocument.icns