Skip to content

Commit

Permalink
Use the configure script to prepare the build in Mac OSX too. Closes q…
Browse files Browse the repository at this point in the history
  • Loading branch information
sledgehammer999 committed Dec 20, 2014
1 parent ea2b650 commit 298bab7
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions macxconf.pri
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
PREFIX = /usr/local
BINDIR = /usr/local/bin
DATADIR = /usr/local/share
# Generated by the configure file
# Ignore any WARNING about 'conf.pri' missing during configure. The file should be found during make.
# If not there will be a WARNING again.
# The first path is used when the source is being build by packagers (pbuilder/sbuild/etc)
# The second path is used when you manually run the configure script in the root folder (eg when using qt creator)
exists($$OUT_PWD/../conf.pri) {
include($$OUT_PWD/../conf.pri)
} else {
include(conf.pri)
}

# Use pkg-config to get all necessary libtorrent DEFINES
CONFIG += link_pkgconfig
PKGCONFIG += libtorrent-rasterbar
DEFINES += BOOST_ASIO_DYN_LINK

# 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
# Zlib
LIBS += -lz

document_icon.path = Contents/Resources
document_icon.files = mac/qBitTorrentDocument.icns
Expand Down

0 comments on commit 298bab7

Please sign in to comment.