Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
757 lines (679 sloc) 21.4 KB
# figure out windows
win32 {
contains(QMAKE_HOST.arch, x86_64) {
message("x86_64 64-bit build")
WINBITS = 64
} else {
message("x86 32-bit build")
WINBITS = 32
}
}
win32 {
contains(WINBITS, 32) {
MSYS = MinGW/msys/1.0
} else {
MSYS = mingw64/msys
}
}
TEMPLATE = app
TARGET = FonzieCoin-Qt
VERSION = 1.1.1.1
INCLUDEPATH += src src/json src/qt src/tor
INCLUDEPATH += src/tor/adapter src/tor/common src/tor/ext
INCLUDEPATH += src/tor/ext/curve25519_donna src/tor/or
INCLUDEPATH += src/qt/plugins/mrichtexteditor
# QT += core gui network webkit
# greaterThan(QT_MAJOR_VERSION, 4): QT+= webkitwidgets
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += no_include_pwd
CONFIG += thread
win32 {
contains(WINBITS, 32) {
CONFIG += openssl-linked
}
}
!macx:!win32:CONFIG += static
macx:INCLUDEPATH += /opt/local/include/db53
!macx:!win32 {
# debian
INCLUDEPATH += /usr/include/x86_64-linux-gnu
# custom linux
# INCLUDEPATH += /usr/include
# INCLUDEPATH += /usr/local/include
# INCLUDEPATH += /usr/local/ssl/include
# INCLUDEPATH += /usr/local/boost
# INCLUDEPATH += /usr/local/include/event2
# custom linux for static
# bdb 4 is obsolete as of
# INCLUDEPATH += /usr/local/BerkeleyDB.4.8/include
}
DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE \
BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN \
__NO_SYSTEM_INCLUDES
win32 {
contains(WINBITS, 32) {
INCLUDEPATH += C:/$$MSYS/local/boost_1_57_0/
} else {
INCLUDEPATH += C:/$$MSYS/local/include/boost-1_55/
}
}
win32 {
INCLUDEPATH += C:/$$MSYS/local/include
INCLUDEPATH += C:/$$MSYS/local/ssl/include
INCLUDEPATH += C:/$$MSYS/local/
INCLUDEPATH += C:/$$MSYS/include/
win32:contains(WINBITS, 32) {
INCLUDEPATH += C:/$$MSYS/local/BerkeleyDB.5.3/include
} else {
INCLUDEPATH += C:/$$MSYS/local/BerkeleyDB.4.8/include
}
}
win32:contains(WINBITS, 32) {
# mingw 4.7
HAVE_SSIZE_T = 1
}
# for boost 1.37, add -mt to the boost libraries
# use: qmake BOOST_LIB_SUFFIX=-mt
# for boost thread win32 with _win32 sufix
# use: BOOST_THREAD_LIB_SUFFIX=_win32-...
# or when linking against a specific BerkelyDB version: BDB_LIB_SUFFIX=-4.8
# Dependency library locations can be customized with:
# BOOST_INCLUDE_PATH, BOOST_LIB_PATH, BDB_INCLUDE_PATH,
# BDB_LIB_PATH, OPENSSL_INCLUDE_PATH and OPENSSL_LIB_PATH respectively
OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
# use: qmake "RELEASE=1"
contains(RELEASE, 1) {
# Mac: ensure compatibility with at least 10.7, 64 bit
macx:XXFLAGS += -mmacosx-version-min=10.7 -arch x86_64 \
-isysroot /Developer/SDKs/MacOSX10.7.sdk
!win32:!macx {
# Linux: static link
LIBS += -static -Bstatic
}
}
# OS X is never static
# macx:mystaticconfig {
# QMAKE_LIBS_QT =
# QMAKE_LIBS_QT_THREAD =
# LIBS += $(QTDIR)/lib/libqt.a -lz -framework Carbon
# LIBS += /usr/local/lib/libqrencode.3.dylib
# CONFIG += mystaticconfig
# }
# bug in gcc 4.4 breaks some pointer code
# QMAKE_CXXFLAGS += -fno-strict-aliasing
win32:contains(WINBITS, 32) {
# can have strict aliasing if opt is 0
# QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O0
}
USE_QRCODE=1
# use: qmake "USE_QRCODE=1"
# libqrencode (http://fukuchi.org/works/qrencode/index.en.html) must be installed for support
contains(USE_QRCODE, 1) {
message(Building with QRCode support)
DEFINES += USE_QRCODE
macx:LIBS += /opt/local/lib/libqrencode.3.dylib
LIBS += -lqrencode
} else {
message(Building without QRCode support)
}
USE_UPNP=-
# use: qmake "USE_UPNP=1" ( enabled by default; default)
# or: qmake "USE_UPNP=0" (disabled by default)
# or: qmake "USE_UPNP=-" (not supported)
# miniupnpc (http://miniupnp.free.fr/files/) must be installed for support
contains(USE_UPNP, -) {
message(Building without UPNP support)
} else {
message(Building with UPNP support)
count(USE_UPNP, 0) {
USE_UPNP=1
}
DEFINES += USE_UPNP=$$USE_UPNP STATICLIB MINIUPNP_STATICLIB
win32 {
contains(WINBITS, 32) {
# INCLUDEPATH += "C:/$$MSYS/local/miniupnpc-1.9.20141128"
LIBS += -L"C:/$$MSYS/local/miniupnpc-1.9.20141128"
LIBS += "C:/$$MSYS/local/miniupnpc-1.9.20141128/libminiupnpc.a"
} else {
INCLUDEPATH += "C:/$$MSYS/local/miniupnpc-1.9"
LIBS += -L"C:/$$MSYS/local/miniupnpc-1.9/miniupnpc"
}
}
LIBS += -lminiupnpc
win32:LIBS += -liphlpapi
}
# use: qmake "USE_DBUS=1"
contains(USE_DBUS, 1) {
message(Building with DBUS (Freedesktop notifications) support)
DEFINES += USE_DBUS
QT += dbus
}
# use: qmake "FIRST_CLASS_MESSAGING=1"
contains(FIRST_CLASS_MESSAGING, 1) {
message(Building with first-class messaging)
DEFINES += FIRST_CLASS_MESSAGING
}
contains(BITCOIN_NEED_QT_PLUGINS, 1) {
DEFINES += BITCOIN_NEED_QT_PLUGINS
QTPLUGIN += qcncodecs qjpcodecs qtwcodecs qkrcodecs qtaccessiblewidgets
}
# LevelDB
DEFINES += USE_LEVELDB
INCLUDEPATH += $$PWD/src/leveldb/include $$PWD/src/leveldb/helpers
INCLUDEPATH += $$PWD/src/leveldb/include/leveldb $$PWD/src/leveldb/helpers/memenv
LIBS += $$PWD/src/leveldb/libleveldb.a $$PWD/src/leveldb/libmemenv.a
!win32 {
# we use QMAKE_CXXFLAGS_RELEASE even without RELEASE=1 because we use RELEASE to indicate linking preferences not -O preferences
genleveldb.commands = cd $$PWD/src/leveldb && CC=$$QMAKE_CC CXX=$$QMAKE_CXX $(MAKE) OPT=\"$$QMAKE_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE\" libleveldb.a libmemenv.a
} else {
# make an educated guess about what the ranlib command is called
# isEmpty(QMAKE_RANLIB) {
# QMAKE_RANLIB = $$replace(QMAKE_STRIP, strip, ranlib)
# }
LIBS += -lshlwapi
# genleveldb.commands = cd $$PWD/src/leveldb && CC=$$QMAKE_CC CXX=$$QMAKE_CXX TARGET_OS=OS_WINDOWS_CROSSCOMPILE $(MAKE) OPT=\"$$QMAKE_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE\" libleveldb.a libmemenv.a && $$QMAKE_RANLIB $$PWD/src/leveldb/libleveldb.a && $$QMAKE_RANLIB $$PWD/src/leveldb/libmemenv.a
}
genleveldb.target = $$PWD/src/leveldb/libleveldb.a
genleveldb.depends = FORCE
PRE_TARGETDEPS += $$PWD/src/leveldb/libleveldb.a
QMAKE_EXTRA_TARGETS += genleveldb
# Gross ugly hack that depends on qmake internals, unfortunately there is no other way to do it.
# QMAKE_CLEAN += $$PWD/src/leveldb/libleveldb.a; cd $$PWD/src/leveldb ; $(MAKE) clean
!win32 {
# for extra security against potential buffer overflows
QMAKE_CXXFLAGS += -fstack-protector
QMAKE_LFLAGS += -fstack-protector
# do not enable this on windows, as it will result in a non-working executable!
}
# regenerate src/build.h
!windows|contains(USE_BUILD_INFO, 1) {
genbuild.depends = FORCE
genbuild.commands = cd $$PWD; /bin/sh share/genbuild.sh $$OUT_PWD/build/build.h
genbuild.target = $$OUT_PWD/build/build.h
PRE_TARGETDEPS += $$OUT_PWD/build/build.h
QMAKE_EXTRA_TARGETS += genbuild
DEFINES += HAVE_BUILD_INFO
}
win32 {
QMAKE_LFLAGS += -Wl,-enable-auto-import
}
contains(USE_O3, 1) {
message(Building without O3 optimization flag)
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS += -O3
QMAKE_CFLAGS += -O3
}
*-g++-32 {
message("32 platform, adding -msse2 flag")
QMAKE_CXXFLAGS += -msse2
QMAKE_CFLAGS += -msse2
}
QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wextra -Wformat \
-Wformat-security -Wno-unused-parameter -Wstack-protector
# Input
DEPENDPATH += src src/json src/qt
HEADERS += \
src/qt/bitcoingui.h \
src/qt/transactiontablemodel.h \
src/qt/addresstablemodel.h \
src/qt/optionsdialog.h \
src/qt/coincontroldialog.h \
src/qt/coincontroltreewidget.h \
src/qt/sendcoinsdialog.h \
src/qt/addressbookpage.h \
src/qt/signverifymessagedialog.h \
src/qt/aboutdialog.h \
src/qt/editaddressdialog.h \
src/qt/bitcoinaddressvalidator.h \
src/alert.h \
src/addrman.h \
src/base58.h \
src/bignum.h \
src/checkpoints.h \
src/compat.h \
src/coincontrol.h \
src/sync.h \
src/util.h \
src/uint256.h \
src/kernel.h \
src/scrypt.h \
src/pbkdf2.h \
src/serialize.h \
src/strlcpy.h \
src/smessage.h \
src/main.h \
src/miner.h \
src/net.h \
src/key.h \
src/db.h \
src/txdb.h \
src/txdb-leveldb.h \
src/walletdb.h \
src/script.h \
src/stealth.h \
src/init.h \
src/irc.h \
src/mruset.h \
src/json/json_spirit_writer_template.h \
src/json/json_spirit_writer.h \
src/json/json_spirit_value.h \
src/json/json_spirit_utils.h \
src/json/json_spirit_stream_reader.h \
src/json/json_spirit_reader_template.h \
src/json/json_spirit_reader.h \
src/json/json_spirit_error_position.h \
src/json/json_spirit.h \
src/qt/clientmodel.h \
src/qt/guiutil.h \
src/qt/transactionrecord.h \
src/qt/guiconstants.h \
src/qt/optionsmodel.h \
src/qt/monitoreddatamapper.h \
src/qt/transactiondesc.h \
src/qt/transactiondescdialog.h \
src/qt/bitcoinamountfield.h \
src/wallet.h \
src/keystore.h \
src/qt/transactionfilterproxy.h \
src/qt/transactionview.h \
src/qt/walletmodel.h \
src/bitcoinrpc.h \
src/qt/overviewpage.h \
src/qt/csvmodelwriter.h \
src/crypter.h \
src/qt/sendcoinsentry.h \
src/qt/qvalidatedlineedit.h \
src/qt/bitcoinunits.h \
src/qt/qvaluecombobox.h \
src/qt/askpassphrasedialog.h \
src/protocol.h \
src/qt/notificator.h \
src/qt/qtipcserver.h \
src/allocators.h \
src/ui_interface.h \
src/qt/rpcconsole.h \
src/qt/trafficgraphwidget.h \
src/version.h \
src/netbase.h \
src/clientversion.h \
src/threadsafety.h \
src/qt/messagepage.h \
src/qt/messagemodel.h \
src/qt/sendmessagesdialog.h \
src/qt/sendmessagesentry.h \
src/qt/plugins/mrichtexteditor/mrichtextedit.h \
src/qt/qvalidatedtextedit.h
SOURCES += \
src/qt/bitcoin.cpp \
src/qt/bitcoingui.cpp \
src/qt/transactiontablemodel.cpp \
src/qt/addresstablemodel.cpp \
src/qt/optionsdialog.cpp \
src/qt/sendcoinsdialog.cpp \
src/qt/coincontroldialog.cpp \
src/qt/coincontroltreewidget.cpp \
src/qt/addressbookpage.cpp \
src/qt/signverifymessagedialog.cpp \
src/qt/aboutdialog.cpp \
src/qt/editaddressdialog.cpp \
src/qt/bitcoinaddressvalidator.cpp \
src/tor/common/address.c \
src/tor/or/addressmap.c \
src/tor/common/aes.c \
src/tor/common/backtrace.c \
src/tor/or/buffers.c \
src/tor/or/channel.c \
src/tor/or/channeltls.c \
src/tor/or/circpathbias.c \
src/tor/or/circuitbuild.c \
src/tor/or/circuitlist.c \
src/tor/or/circuitmux.c \
src/tor/or/circuitmux_ewma.c \
src/tor/or/circuitstats.c \
src/tor/or/circuituse.c \
src/tor/or/command.c \
src/tor/common/tor_compat.c \
src/tor/common/compat_libevent.c \
src/tor/or/config.c \
src/tor/or/config_codedigest.c \
src/tor/or/confparse.c \
src/tor/or/connection.c \
src/tor/or/connection_edge.c \
src/tor/or/connection_or.c \
src/tor/common/container.c \
src/tor/or/control.c \
src/tor/or/cpuworker.c \
src/tor/common/crypto.c \
src/tor/common/crypto_curve25519.c \
src/tor/common/crypto_format.c \
src/tor/ext/csiphash.c \
src/tor/ext/curve25519_donna/curve25519-donna.c \
src/tor/common/di_ops.c \
src/tor/or/directory.c \
src/tor/or/dirserv.c \
src/tor/or/dirvote.c \
src/tor/or/dns.c \
src/tor/or/dnsserv.c \
src/tor/or/entrynodes.c \
# src/tor/ext/eventdns.c \
src/tor/or/ext_orport.c \
src/tor/or/fp_pair.c \
src/tor/or/geoip.c \
src/tor/or/hibernate.c \
src/tor/common/log.c \
src/tor/common/memarea.c \
src/tor/common/mempool.c \
src/tor/or/microdesc.c \
src/tor/or/networkstatus.c \
src/tor/or/nodelist.c \
src/tor/or/onion.c \
src/tor/or/onion_fast.c \
src/tor/or/onion_main.c \
src/tor/or/onion_ntor.c \
src/tor/or/onion_tap.c \
src/tor/or/policies.c \
src/tor/adapter/fonzie.cpp \
src/tor/common/procmon.c \
src/tor/or/reasons.c \
src/tor/or/relay.c \
src/tor/or/rendclient.c \
src/tor/or/rendcommon.c \
src/tor/or/rendmid.c \
src/tor/or/rendservice.c \
src/tor/or/rephist.c \
src/tor/or/replaycache.c \
src/tor/or/router.c \
src/tor/or/routerlist.c \
src/tor/or/routerparse.c \
src/tor/or/routerset.c \
src/tor/common/sandbox.c \
src/tor/or/statefile.c \
src/tor/or/status.c \
src/tor/common/tor_util.c \
src/tor/common/torgzip.c \
src/tor/common/tortls.c \
src/tor/or/tor_main.c \
src/tor/or/transports.c \
src/tor/common/util_codedigest.c \
src/tor/common/util_process.c \
src/alert.cpp \
src/version.cpp \
src/sync.cpp \
src/smessage.cpp \
src/util.cpp \
src/netbase.cpp \
src/key.cpp \
src/script.cpp \
src/main.cpp \
src/miner.cpp \
src/init.cpp \
src/net.cpp \
src/irc.cpp \
src/checkpoints.cpp \
src/addrman.cpp \
src/db.cpp \
src/txdb-leveldb.cpp \
src/walletdb.cpp \
src/qt/clientmodel.cpp \
src/qt/guiutil.cpp \
src/qt/transactionrecord.cpp \
src/qt/optionsmodel.cpp \
src/qt/monitoreddatamapper.cpp \
src/qt/transactiondesc.cpp \
src/qt/transactiondescdialog.cpp \
src/qt/bitcoinstrings.cpp \
src/qt/bitcoinamountfield.cpp \
src/wallet.cpp \
src/keystore.cpp \
src/qt/transactionfilterproxy.cpp \
src/qt/transactionview.cpp \
src/qt/walletmodel.cpp \
src/bitcoinrpc.cpp \
src/rpcdump.cpp \
src/rpcnet.cpp \
src/rpcmining.cpp \
src/rpcwallet.cpp \
src/rpcblockchain.cpp \
src/rpcrawtransaction.cpp \
src/rpcsmessage.cpp \
src/qt/overviewpage.cpp \
src/qt/csvmodelwriter.cpp \
src/crypter.cpp \
src/qt/sendcoinsentry.cpp \
src/qt/qvalidatedlineedit.cpp \
src/qt/bitcoinunits.cpp \
src/qt/qvaluecombobox.cpp \
src/qt/askpassphrasedialog.cpp \
src/protocol.cpp \
src/qt/notificator.cpp \
src/qt/qtipcserver.cpp \
src/qt/rpcconsole.cpp \
src/qt/trafficgraphwidget.cpp \
src/qt/messagepage.cpp \
src/qt/messagemodel.cpp \
src/qt/sendmessagesdialog.cpp \
src/qt/sendmessagesentry.cpp \
src/qt/qvalidatedtextedit.cpp \
src/qt/plugins/mrichtexteditor/mrichtextedit.cpp \
src/noui.cpp \
src/kernel.cpp \
src/scrypt-arm.S \
src/scrypt-x86.S \
src/scrypt-x86_64.S \
src/scrypt.cpp \
src/pbkdf2.cpp \
src/stealth.cpp
RESOURCES += \
src/qt/bitcoin.qrc
FORMS += \
src/qt/forms/coincontroldialog.ui \
src/qt/forms/sendcoinsdialog.ui \
src/qt/forms/addressbookpage.ui \
src/qt/forms/signverifymessagedialog.ui \
src/qt/forms/aboutdialog.ui \
src/qt/forms/editaddressdialog.ui \
src/qt/forms/transactiondescdialog.ui \
src/qt/forms/overviewpage.ui \
src/qt/forms/sendcoinsentry.ui \
src/qt/forms/askpassphrasedialog.ui \
src/qt/forms/rpcconsole.ui \
src/qt/forms/optionsdialog.ui \
src/qt/forms/messagepage.ui \
src/qt/forms/sendmessagesentry.ui \
src/qt/forms/sendmessagesdialog.ui \
src/qt/plugins/mrichtexteditor/mrichtextedit.ui
win32 {
HEADERS += src/tor/or/ntmain.h
}
win32 {
SOURCES += src/tor/or/ntmain.c
}
contains(USE_QRCODE, 1) {
HEADERS += src/qt/qrcodedialog.h
SOURCES += src/qt/qrcodedialog.cpp
FORMS += src/qt/forms/qrcodedialog.ui
}
CODECFORTR = UTF-8
contains(BITCOIN_QT_TEST, 1) {
SOURCES += src/qt/test/test_main.cpp \
src/qt/test/uritests.cpp
HEADERS += src/qt/test/uritests.h
DEPENDPATH += src/qt/test
QT += testlib
TARGET = FonzieCoin-Qt_TEST
DEFINES += BITCOIN_QT_TEST
}
CODECFORTR = UTF-8
# for lrelease/lupdate
# also add new translations to src/qt/bitcoin.qrc under translations/
TRANSLATIONS = $$files(src/qt/locale/bitcoin_*.ts)
isEmpty(QMAKE_LRELEASE) {
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
}
isEmpty(QM_DIR):QM_DIR = $$PWD/src/qt/locale
# automatically build translations, so they can be included in resource file
TSQM.name = lrelease ${QMAKE_FILE_IN}
TSQM.input = TRANSLATIONS
TSQM.output = $$QM_DIR/${QMAKE_FILE_BASE}.qm
TSQM.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
TSQM.CONFIG = no_link
QMAKE_EXTRA_COMPILERS += TSQM
# "Other files" to show in Qt Creator
OTHER_FILES += \
contrib/gitian-descriptors/* doc/*.rst doc/*.txt doc/README README.md res/bitcoin-qt.rc \
share/setup.nsi
# platform specific defaults, if not overridden on command line
isEmpty(BOOST_LIB_SUFFIX) {
macx:BOOST_LIB_SUFFIX = -mt
win32 {
contains(WINBITS, 32) {
BOOST_LIB_SUFFIX = -mgw49-mt-s-1_57
} else {
BOOST_LIB_SUFFIX = -mgw47-mt-d-1_55
}
}
}
isEmpty(BOOST_THREAD_LIB_SUFFIX) {
BOOST_THREAD_LIB_SUFFIX = $$BOOST_LIB_SUFFIX
}
isEmpty(BDB_LIB_PATH) {
macx:BDB_LIB_PATH = /opt/local/lib/db53
}
isEmpty(BDB_LIB_SUFFIX) {
macx:BDB_LIB_SUFFIX = -5.3
}
isEmpty(BDB_INCLUDE_PATH) {
macx:BDB_INCLUDE_PATH = /opt/local/include/db53
}
isEmpty(BOOST_LIB_PATH) {
macx:BOOST_LIB_PATH = /opt/local/lib
# custom linux
# !macx:!win32:BOOST_LIB_PATH = /usr/local/boost/stage/lib
}
isEmpty(BOOST_INCLUDE_PATH) {
macx:BOOST_INCLUDE_PATH = /opt/local/include
}
win32:DEFINES += WIN32
win32:RC_FILE = src/qt/res/bitcoin-qt.rc
win32:!contains(MINGW_THREAD_BUGFIX, 0) {
# At least qmake's win32-g++-cross profile is missing the -lmingwthrd
# thread-safety flag. GCC has -mthreads to enable this, but it doesn't
# work with static linking. -lmingwthrd must come BEFORE -lmingw, so
# it is prepended to QMAKE_LIBS_QT_ENTRY.
# It can be turned off with MINGW_THREAD_BUGFIX=0, just in case it causes
# any problems on some untested qmake profile now or in the future.
DEFINES += _MT
QMAKE_LIBS_QT_ENTRY = -lmingwthrd $$QMAKE_LIBS_QT_ENTRY
}
macx {
HEADERS += src/qt/macdockiconhandler.h
OBJECTIVE_SOURCES += src/qt/macdockiconhandler.mm
LIBS += -framework Foundation -framework ApplicationServices \
-framework AppKit
DEFINES += MAC_OSX MSG_NOSIGNAL=0
ICON = src/qt/res/icons/bitcoin.icns
TARGET = "FonzieCoin Qt"
# QMAKE_CFLAGS_THREAD += -pthread
# QMAKE_LFLAGS_THREAD += -pthread
# QMAKE_CXXFLAGS_THREAD += -pthread
}
# Set libraries and includes at end, to use platform-defined defaults if not overridden
INCLUDEPATH += $$BOOST_INCLUDE_PATH $$BDB_INCLUDE_PATH $$OPENSSL_INCLUDE_PATH $$QRENCODE_INCLUDE_PATH
win32:LIBS += -L"C:/$$MSYS/local/lib"
win32:LIBS += -L"C:/$$MSYS/lib"
win32:LIBS += -L"C:/$$MSYS/local/ssl/lib"
LIBS += -lssl -levent -lz -lcrypto
win32 {
contains(WINBITS, 32) {
LIBS += -L"C:/$$MSYS/local/BerkeleyDB.5.3/lib"
# LIBS += -L"C:/$$MSYS/local/miniupnpc-1.9.20141128"
LIBS += -L"C:/$$MSYS/local/boost_1_57_0/stage/lib"
LIBS += "C:/$$MSYS/local/ssl/lib/libcrypto.a"
LIBS += "C:/$$MSYS/local/ssl/lib/libssl.a"
# LIBS += "C:/$$MSYS/local/lib/libevent.a"
LIBS += "C:/$$MSYS/local/lib/libqrencode.a"
} else {
LIBS += -L"C:/$$MSYS/local/BerkeleyDB.4.8/lib"
LIBS += "C:/mingw64/bin/libwinpthread-1.dll"
LIBS += "C:/$$MSYS/local/lib/libboost_filesystem-mgw47-mt-d-1_55.dll"
LIBS += -static
}
}
# win32:LIBS += "C:/mingw64/x86_64-w64-mingw32/lib/libgcc_s_sjlj-1.dll"
# win32:LIBS += "C:/mingw64/x86_64-w64-mingw32/lib/libstdc++-6.dll"
macx|win32 {
LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) \
$$join(OPENSSL_LIB_PATH,,-L,) $$join(QRENCODE_LIB_PATH,,-L,)
}
win32 {
contains(WINBITS, 32) {
LIBS += -L"C:/Qt/Qt5.4.0/Tools/mingw491_32/opt/bin"
LIBS += "C:/Qt/Qt5.4.0/Tools/mingw491_32/opt/bin/libeay32.dll"
LIBS += "C:/Qt/Qt5.4.0/Tools/mingw491_32/opt/bin/ssleay32.dll"
}
}
!win32:!macx {
DEFINES += LINUX
# debian
LIBS += -L/usr/lib/x86_64-linux-gnu
# custom linux
# LIBS += -L/usr/local/ssl/lib
}
!macx:!win32 {
LIBS += -lrt
LIBS += -ldl
}
macx|win32 {
LIBS += -ldb_cxx$$BDB_LIB_SUFFIX
}
macx {
LIBS += -ldb_cxx-5.3
LIBS += /opt/local/lib/db53/libdb_cxx-5.3.a
}
!macx:!win32 {
# debian
LIBS += /usr/lib/x86_64-linux-gnu/libssl.a
LIBS += /usr/lib/x86_64-linux-gnu/libcrypto.a
LIBS += /usr/lib/x86_64-linux-gnu/libboost_system.a
LIBS += /usr/lib/x86_64-linux-gnu/libboost_filesystem.a
LIBS += /usr/lib/x86_64-linux-gnu/libboost_thread.a
LIBS += /usr/lib/x86_64-linux-gnu/libboost_program_options.a
LIBS += /usr/lib/x86_64-linux-gnu/libdb_cxx.a
# custom linux
# LIBS += /usr/local/ssl/lib/libssl.a
# LIBS += /usr/local/ssl/lib/libcrypto.a
# LIBS += /usr/local/boost/stage/lib/libboost_system.a
# LIBS += /usr/local/boost/stage/lib/libboost_filesystem.a
# LIBS += /usr/local/boost/stage/lib/libboost_thread.a
# LIBS += /usr/local/boost/stage/lib/libboost_program_options.a
# custom linux for static
# LIBS += /usr/lib/libcryptopp.a
}
win32|macx {
LIBS += -lboost_system$$BOOST_LIB_SUFFIX \
-lboost_filesystem$$BOOST_LIB_SUFFIX \
-lboost_program_options$$BOOST_LIB_SUFFIX \
-lboost_thread$$BOOST_THREAD_LIB_SUFFIX
}
win32:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
win32 {
contains(WINBITS, 64) {
LIBS += -pthread
} else {
LIBS += -pthread -lpthread
}
}
# -lgdi32 has to happen after -lcrypto (see #681)
win32:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32
!win32:!macx {
# Linux: turn dynamic linking back on for c/c++ runtime libraries
LIBS += -pthread
LIBS += -Wl,-Bdynamic,-rpath,.
}
system($$QMAKE_LRELEASE -silent $$_PRO_FILE_)
You can’t perform that action at this time.