2011-05-07 22:13:39 +02:00
|
|
|
TEMPLATE = app
|
2012-07-23 08:08:34 +02:00
|
|
|
TARGET = bitcoin-qt
|
2013-02-22 17:41:23 +01:00
|
|
|
macx:TARGET = "Bitcoin-Qt"
|
2013-05-10 15:50:33 +02:00
|
|
|
VERSION = 0.8.2
|
2011-09-27 20:16:07 +02:00
|
|
|
INCLUDEPATH += src src/json src/qt
|
2013-05-31 14:02:24 +02:00
|
|
|
QT += core gui network
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
2013-05-26 20:19:04 +02:00
|
|
|
DEFINES += BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE
|
2011-07-03 20:53:56 +02:00
|
|
|
CONFIG += no_include_pwd
|
2012-09-21 21:42:38 +02:00
|
|
|
CONFIG += thread
|
2011-06-14 08:13:29 +02:00
|
|
|
|
2012-06-24 18:03:03 +02:00
|
|
|
# for boost 1.37, add -mt to the boost libraries
|
2011-09-24 11:43:58 +02:00
|
|
|
# use: qmake BOOST_LIB_SUFFIX=-mt
|
2011-10-06 23:02:21 +02:00
|
|
|
# for boost thread win32 with _win32 sufix
|
|
|
|
# use: BOOST_THREAD_LIB_SUFFIX=_win32-...
|
2011-09-29 19:53:44 +02:00
|
|
|
# or when linking against a specific BerkelyDB version: BDB_LIB_SUFFIX=-4.8
|
2011-09-24 11:43:58 +02:00
|
|
|
|
2012-06-24 18:03:03 +02:00
|
|
|
# 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
|
2011-05-29 21:31:29 +02:00
|
|
|
|
2011-09-26 19:14:34 +02:00
|
|
|
OBJECTS_DIR = build
|
|
|
|
MOC_DIR = build
|
|
|
|
UI_DIR = build
|
|
|
|
|
2011-11-07 15:50:03 +01:00
|
|
|
# use: qmake "RELEASE=1"
|
|
|
|
contains(RELEASE, 1) {
|
|
|
|
# Mac: compile for maximum compatibility (10.5, 32-bit)
|
|
|
|
macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
|
2012-12-04 19:42:21 +01:00
|
|
|
macx:QMAKE_CFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
|
|
|
|
macx:QMAKE_OBJECTIVE_CFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
|
2011-11-07 15:50:03 +01:00
|
|
|
|
2012-12-15 11:02:37 +01:00
|
|
|
!win32:!macx {
|
2013-03-17 18:55:43 +01:00
|
|
|
# Linux: static link and extra security (see: https://wiki.debian.org/Hardening)
|
2013-02-15 22:53:50 +01:00
|
|
|
LIBS += -Wl,-Bstatic -Wl,-z,relro -Wl,-z,now
|
2011-11-07 15:50:03 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-16 14:33:25 +02:00
|
|
|
!win32 {
|
2013-02-15 22:53:50 +01:00
|
|
|
# for extra security against potential buffer overflows: enable GCCs Stack Smashing Protection
|
|
|
|
QMAKE_CXXFLAGS *= -fstack-protector-all
|
|
|
|
QMAKE_LFLAGS *= -fstack-protector-all
|
|
|
|
# Exclude on Windows cross compile with MinGW 4.2.x, as it will result in a non-working executable!
|
|
|
|
# This can be enabled for Windows, when we switch to MinGW >= 4.4.x.
|
2012-07-16 14:33:25 +02:00
|
|
|
}
|
2013-03-17 18:55:43 +01:00
|
|
|
# for extra security (see: https://wiki.debian.org/Hardening): this flag is GCC compiler-specific
|
|
|
|
QMAKE_CXXFLAGS *= -D_FORTIFY_SOURCE=2
|
2012-08-14 11:37:21 +02:00
|
|
|
# for extra security on Windows: enable ASLR and DEP via GCC linker flags
|
|
|
|
win32:QMAKE_LFLAGS *= -Wl,--dynamicbase -Wl,--nxcompat
|
2013-01-10 14:21:52 +01:00
|
|
|
# on Windows: enable GCC large address aware linker flag
|
|
|
|
win32:QMAKE_LFLAGS *= -Wl,--large-address-aware
|
2012-08-14 11:37:21 +02:00
|
|
|
|
2012-02-15 20:42:51 +01:00
|
|
|
# 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
|
|
|
|
LIBS += -lqrencode
|
|
|
|
}
|
|
|
|
|
2011-09-29 21:02:12 +02:00
|
|
|
# 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 {
|
2011-09-02 18:33:09 +02:00
|
|
|
message(Building with UPNP support)
|
2011-09-29 21:02:12 +02:00
|
|
|
count(USE_UPNP, 0) {
|
|
|
|
USE_UPNP=1
|
|
|
|
}
|
2011-10-17 06:09:22 +02:00
|
|
|
DEFINES += USE_UPNP=$$USE_UPNP STATICLIB
|
|
|
|
INCLUDEPATH += $$MINIUPNPC_INCLUDE_PATH
|
|
|
|
LIBS += $$join(MINIUPNPC_LIB_PATH,,-L,) -lminiupnpc
|
|
|
|
win32:LIBS += -liphlpapi
|
2011-09-02 18:33:09 +02:00
|
|
|
}
|
|
|
|
|
2011-09-19 12:40:23 +02:00
|
|
|
# use: qmake "USE_DBUS=1"
|
2011-09-29 19:53:44 +02:00
|
|
|
contains(USE_DBUS, 1) {
|
2011-09-03 20:52:54 +02:00
|
|
|
message(Building with DBUS (Freedesktop notifications) support)
|
2011-09-24 11:56:33 +02:00
|
|
|
DEFINES += USE_DBUS
|
2011-09-03 20:52:54 +02:00
|
|
|
QT += dbus
|
|
|
|
}
|
|
|
|
|
2012-06-08 18:43:06 +02:00
|
|
|
# use: qmake "USE_IPV6=1" ( enabled by default; default)
|
|
|
|
# or: qmake "USE_IPV6=0" (disabled by default)
|
2012-06-08 18:35:58 +02:00
|
|
|
# or: qmake "USE_IPV6=-" (not supported)
|
|
|
|
contains(USE_IPV6, -) {
|
2012-08-27 22:18:37 +02:00
|
|
|
message(Building without IPv6 support)
|
2012-06-08 18:35:58 +02:00
|
|
|
} else {
|
2012-08-27 22:18:37 +02:00
|
|
|
count(USE_IPV6, 0) {
|
|
|
|
USE_IPV6=1
|
|
|
|
}
|
|
|
|
DEFINES += USE_IPV6=$$USE_IPV6
|
2012-06-08 18:35:58 +02:00
|
|
|
}
|
|
|
|
|
2011-10-07 16:46:56 +02:00
|
|
|
contains(BITCOIN_NEED_QT_PLUGINS, 1) {
|
|
|
|
DEFINES += BITCOIN_NEED_QT_PLUGINS
|
2012-02-10 08:28:32 +01:00
|
|
|
QTPLUGIN += qcncodecs qjpcodecs qtwcodecs qkrcodecs qtaccessiblewidgets
|
2011-10-07 16:46:56 +02:00
|
|
|
}
|
|
|
|
|
2012-10-16 22:23:39 +02:00
|
|
|
INCLUDEPATH += src/leveldb/include src/leveldb/helpers
|
|
|
|
LIBS += $$PWD/src/leveldb/libleveldb.a $$PWD/src/leveldb/libmemenv.a
|
2012-12-15 11:02:37 +01:00
|
|
|
!win32 {
|
2013-04-04 04:37:50 +02:00
|
|
|
# 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
|
2012-08-30 21:13:50 +02:00
|
|
|
} else {
|
2012-10-16 22:23:39 +02:00
|
|
|
# make an educated guess about what the ranlib command is called
|
|
|
|
isEmpty(QMAKE_RANLIB) {
|
|
|
|
QMAKE_RANLIB = $$replace(QMAKE_STRIP, strip, ranlib)
|
2012-08-30 21:13:50 +02:00
|
|
|
}
|
2012-12-21 20:41:48 +01:00
|
|
|
LIBS += -lshlwapi
|
2013-04-04 04:37:50 +02:00
|
|
|
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
|
2012-08-30 21:13:50 +02:00
|
|
|
}
|
2012-10-16 22:23:39 +02:00
|
|
|
genleveldb.target = $$PWD/src/leveldb/libleveldb.a
|
|
|
|
genleveldb.depends = FORCE
|
|
|
|
PRE_TARGETDEPS += $$PWD/src/leveldb/libleveldb.a
|
|
|
|
QMAKE_EXTRA_TARGETS += genleveldb
|
2012-12-21 20:41:48 +01:00
|
|
|
# Gross ugly hack that depends on qmake internals, unfortunately there is no other way to do it.
|
2012-10-16 22:23:39 +02:00
|
|
|
QMAKE_CLEAN += $$PWD/src/leveldb/libleveldb.a; cd $$PWD/src/leveldb ; $(MAKE) clean
|
2011-07-09 11:54:25 +02:00
|
|
|
|
2012-04-07 02:06:53 +02:00
|
|
|
# regenerate src/build.h
|
2012-12-15 11:02:37 +01:00
|
|
|
!win32|contains(USE_BUILD_INFO, 1) {
|
2012-04-11 02:21:29 +02:00
|
|
|
genbuild.depends = FORCE
|
2012-05-17 17:15:28 +02:00
|
|
|
genbuild.commands = cd $$PWD; /bin/sh share/genbuild.sh $$OUT_PWD/build/build.h
|
2012-05-12 09:25:27 +02:00
|
|
|
genbuild.target = $$OUT_PWD/build/build.h
|
|
|
|
PRE_TARGETDEPS += $$OUT_PWD/build/build.h
|
2012-04-07 02:06:53 +02:00
|
|
|
QMAKE_EXTRA_TARGETS += genbuild
|
|
|
|
DEFINES += HAVE_BUILD_INFO
|
|
|
|
}
|
|
|
|
|
2012-09-30 15:26:41 +02:00
|
|
|
QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector
|
2011-05-29 21:31:29 +02:00
|
|
|
|
2011-05-07 22:13:39 +02:00
|
|
|
# Input
|
2012-05-01 18:45:10 +02:00
|
|
|
DEPENDPATH += src src/json src/qt
|
2011-06-11 22:11:58 +02:00
|
|
|
HEADERS += src/qt/bitcoingui.h \
|
|
|
|
src/qt/transactiontablemodel.h \
|
|
|
|
src/qt/addresstablemodel.h \
|
|
|
|
src/qt/optionsdialog.h \
|
|
|
|
src/qt/sendcoinsdialog.h \
|
2011-07-07 17:33:15 +02:00
|
|
|
src/qt/addressbookpage.h \
|
2012-06-15 09:48:26 +02:00
|
|
|
src/qt/signverifymessagedialog.h \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/qt/aboutdialog.h \
|
|
|
|
src/qt/editaddressdialog.h \
|
|
|
|
src/qt/bitcoinaddressvalidator.h \
|
2012-08-28 23:04:54 +02:00
|
|
|
src/alert.h \
|
2012-01-04 23:39:45 +01:00
|
|
|
src/addrman.h \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/base58.h \
|
|
|
|
src/bignum.h \
|
2013-05-07 15:16:25 +02:00
|
|
|
src/chainparams.h \
|
2011-09-08 22:50:58 +02:00
|
|
|
src/checkpoints.h \
|
2012-01-03 23:33:31 +01:00
|
|
|
src/compat.h \
|
2012-05-11 17:00:03 +02:00
|
|
|
src/sync.h \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/util.h \
|
2012-12-18 20:56:21 +01:00
|
|
|
src/hash.h \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/uint256.h \
|
|
|
|
src/serialize.h \
|
2013-01-08 12:02:51 +01:00
|
|
|
src/core.h \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/main.h \
|
|
|
|
src/net.h \
|
|
|
|
src/key.h \
|
|
|
|
src/db.h \
|
2012-04-15 23:39:49 +02:00
|
|
|
src/walletdb.h \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/script.h \
|
|
|
|
src/init.h \
|
2012-08-13 05:26:27 +02:00
|
|
|
src/bloom.h \
|
2012-02-27 17:55:53 +01:00
|
|
|
src/mruset.h \
|
2012-12-01 23:04:14 +01:00
|
|
|
src/checkqueue.h \
|
2011-06-11 22:11:58 +02:00
|
|
|
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 \
|
2011-06-20 21:31:42 +02:00
|
|
|
src/qt/transactiondescdialog.h \
|
2011-06-26 19:23:24 +02:00
|
|
|
src/qt/bitcoinamountfield.h \
|
|
|
|
src/wallet.h \
|
2011-06-28 21:41:56 +02:00
|
|
|
src/keystore.h \
|
|
|
|
src/qt/transactionfilterproxy.h \
|
2011-06-30 18:05:29 +02:00
|
|
|
src/qt/transactionview.h \
|
2011-07-03 20:53:56 +02:00
|
|
|
src/qt/walletmodel.h \
|
2013-03-22 18:32:49 +01:00
|
|
|
src/qt/walletview.h \
|
|
|
|
src/qt/walletstack.h \
|
|
|
|
src/qt/walletframe.h \
|
2011-07-05 22:09:39 +02:00
|
|
|
src/bitcoinrpc.h \
|
2011-07-07 14:27:16 +02:00
|
|
|
src/qt/overviewpage.h \
|
2011-07-09 15:26:57 +02:00
|
|
|
src/qt/csvmodelwriter.h \
|
2011-07-16 19:01:05 +02:00
|
|
|
src/crypter.h \
|
|
|
|
src/qt/sendcoinsentry.h \
|
2011-07-25 21:35:45 +02:00
|
|
|
src/qt/qvalidatedlineedit.h \
|
2011-07-29 14:36:35 +02:00
|
|
|
src/qt/bitcoinunits.h \
|
2011-08-24 22:07:26 +02:00
|
|
|
src/qt/qvaluecombobox.h \
|
2011-09-02 18:02:22 +02:00
|
|
|
src/qt/askpassphrasedialog.h \
|
2011-09-03 20:52:54 +02:00
|
|
|
src/protocol.h \
|
2011-12-24 05:27:12 +01:00
|
|
|
src/qt/notificator.h \
|
2013-02-12 00:52:30 +01:00
|
|
|
src/qt/paymentserver.h \
|
2012-04-04 13:19:30 +02:00
|
|
|
src/allocators.h \
|
2012-04-09 21:07:25 +02:00
|
|
|
src/ui_interface.h \
|
2012-08-22 13:00:27 +02:00
|
|
|
src/qt/rpcconsole.h \
|
2012-08-30 19:11:41 +02:00
|
|
|
src/version.h \
|
2012-08-14 11:21:48 +02:00
|
|
|
src/netbase.h \
|
2012-10-16 22:23:39 +02:00
|
|
|
src/clientversion.h \
|
|
|
|
src/txdb.h \
|
2012-12-12 19:31:18 +01:00
|
|
|
src/leveldb.h \
|
2013-04-04 11:14:46 +02:00
|
|
|
src/threadsafety.h \
|
2013-04-14 11:35:37 +02:00
|
|
|
src/limitedmap.h \
|
2013-05-19 17:36:01 +02:00
|
|
|
src/qt/splashscreen.h \
|
|
|
|
src/qt/intro.h
|
2011-09-02 18:02:22 +02:00
|
|
|
|
2013-01-18 15:07:05 +01:00
|
|
|
SOURCES += src/qt/bitcoin.cpp \
|
|
|
|
src/qt/bitcoingui.cpp \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/qt/transactiontablemodel.cpp \
|
|
|
|
src/qt/addresstablemodel.cpp \
|
|
|
|
src/qt/optionsdialog.cpp \
|
|
|
|
src/qt/sendcoinsdialog.cpp \
|
2011-07-07 17:33:15 +02:00
|
|
|
src/qt/addressbookpage.cpp \
|
2012-06-15 09:48:26 +02:00
|
|
|
src/qt/signverifymessagedialog.cpp \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/qt/aboutdialog.cpp \
|
|
|
|
src/qt/editaddressdialog.cpp \
|
|
|
|
src/qt/bitcoinaddressvalidator.cpp \
|
2012-08-28 23:04:54 +02:00
|
|
|
src/alert.cpp \
|
2013-05-07 15:16:25 +02:00
|
|
|
src/chainparams.cpp \
|
2012-04-07 02:06:53 +02:00
|
|
|
src/version.cpp \
|
2012-05-11 17:00:03 +02:00
|
|
|
src/sync.cpp \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/util.cpp \
|
2013-01-10 19:16:00 +01:00
|
|
|
src/hash.cpp \
|
2012-01-03 23:33:31 +01:00
|
|
|
src/netbase.cpp \
|
2011-07-11 21:30:40 +02:00
|
|
|
src/key.cpp \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/script.cpp \
|
2013-01-08 12:02:51 +01:00
|
|
|
src/core.cpp \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/main.cpp \
|
|
|
|
src/init.cpp \
|
|
|
|
src/net.cpp \
|
2012-08-13 05:26:27 +02:00
|
|
|
src/bloom.cpp \
|
2011-09-08 22:50:58 +02:00
|
|
|
src/checkpoints.cpp \
|
2012-01-04 23:39:45 +01:00
|
|
|
src/addrman.cpp \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/db.cpp \
|
2012-04-15 23:39:49 +02:00
|
|
|
src/walletdb.cpp \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/qt/clientmodel.cpp \
|
|
|
|
src/qt/guiutil.cpp \
|
|
|
|
src/qt/transactionrecord.cpp \
|
|
|
|
src/qt/optionsmodel.cpp \
|
|
|
|
src/qt/monitoreddatamapper.cpp \
|
|
|
|
src/qt/transactiondesc.cpp \
|
2011-06-13 19:24:53 +02:00
|
|
|
src/qt/transactiondescdialog.cpp \
|
2011-06-20 21:31:42 +02:00
|
|
|
src/qt/bitcoinstrings.cpp \
|
2011-06-26 19:23:24 +02:00
|
|
|
src/qt/bitcoinamountfield.cpp \
|
|
|
|
src/wallet.cpp \
|
2011-06-28 21:41:56 +02:00
|
|
|
src/keystore.cpp \
|
|
|
|
src/qt/transactionfilterproxy.cpp \
|
2011-06-30 18:05:29 +02:00
|
|
|
src/qt/transactionview.cpp \
|
2011-07-03 20:53:56 +02:00
|
|
|
src/qt/walletmodel.cpp \
|
2013-03-22 18:32:49 +01:00
|
|
|
src/qt/walletview.cpp \
|
|
|
|
src/qt/walletstack.cpp \
|
|
|
|
src/qt/walletframe.cpp \
|
2011-07-05 22:09:39 +02:00
|
|
|
src/bitcoinrpc.cpp \
|
2011-07-13 11:56:38 +02:00
|
|
|
src/rpcdump.cpp \
|
2012-06-29 05:18:38 +02:00
|
|
|
src/rpcnet.cpp \
|
2012-08-21 08:21:33 +02:00
|
|
|
src/rpcmining.cpp \
|
2012-08-21 16:38:57 +02:00
|
|
|
src/rpcwallet.cpp \
|
2012-08-21 17:03:38 +02:00
|
|
|
src/rpcblockchain.cpp \
|
2012-05-31 22:01:16 +02:00
|
|
|
src/rpcrawtransaction.cpp \
|
2011-07-07 14:27:16 +02:00
|
|
|
src/qt/overviewpage.cpp \
|
2011-07-09 15:26:57 +02:00
|
|
|
src/qt/csvmodelwriter.cpp \
|
2011-07-16 19:01:05 +02:00
|
|
|
src/crypter.cpp \
|
|
|
|
src/qt/sendcoinsentry.cpp \
|
2011-07-25 21:35:45 +02:00
|
|
|
src/qt/qvalidatedlineedit.cpp \
|
2011-07-29 14:36:35 +02:00
|
|
|
src/qt/bitcoinunits.cpp \
|
2011-08-24 22:07:26 +02:00
|
|
|
src/qt/qvaluecombobox.cpp \
|
2011-09-02 18:02:22 +02:00
|
|
|
src/qt/askpassphrasedialog.cpp \
|
2011-09-03 20:52:54 +02:00
|
|
|
src/protocol.cpp \
|
2011-12-24 05:27:12 +01:00
|
|
|
src/qt/notificator.cpp \
|
2013-02-12 00:52:30 +01:00
|
|
|
src/qt/paymentserver.cpp \
|
2012-02-27 12:55:04 +01:00
|
|
|
src/qt/rpcconsole.cpp \
|
2012-10-16 22:23:39 +02:00
|
|
|
src/noui.cpp \
|
|
|
|
src/leveldb.cpp \
|
2013-04-14 11:35:37 +02:00
|
|
|
src/txdb.cpp \
|
2013-05-19 17:36:01 +02:00
|
|
|
src/qt/splashscreen.cpp \
|
|
|
|
src/qt/intro.cpp
|
2011-05-09 20:44:46 +02:00
|
|
|
|
2013-01-18 15:07:05 +01:00
|
|
|
RESOURCES += src/qt/bitcoin.qrc
|
2011-05-12 14:44:52 +02:00
|
|
|
|
2013-01-18 15:07:05 +01:00
|
|
|
FORMS += src/qt/forms/sendcoinsdialog.ui \
|
2011-07-07 17:33:15 +02:00
|
|
|
src/qt/forms/addressbookpage.ui \
|
2012-06-15 09:48:26 +02:00
|
|
|
src/qt/forms/signverifymessagedialog.ui \
|
2011-06-11 22:11:58 +02:00
|
|
|
src/qt/forms/aboutdialog.ui \
|
|
|
|
src/qt/forms/editaddressdialog.ui \
|
2011-07-05 22:09:39 +02:00
|
|
|
src/qt/forms/transactiondescdialog.ui \
|
2011-07-16 19:01:05 +02:00
|
|
|
src/qt/forms/overviewpage.ui \
|
2011-08-24 22:07:26 +02:00
|
|
|
src/qt/forms/sendcoinsentry.ui \
|
2012-04-09 21:07:25 +02:00
|
|
|
src/qt/forms/askpassphrasedialog.ui \
|
2012-02-27 12:55:04 +01:00
|
|
|
src/qt/forms/rpcconsole.ui \
|
2013-05-19 17:36:01 +02:00
|
|
|
src/qt/forms/optionsdialog.ui \
|
|
|
|
src/qt/forms/intro.ui
|
2011-06-12 14:32:36 +02:00
|
|
|
|
2011-11-10 15:20:17 +01:00
|
|
|
contains(USE_QRCODE, 1) {
|
|
|
|
HEADERS += src/qt/qrcodedialog.h
|
|
|
|
SOURCES += src/qt/qrcodedialog.cpp
|
|
|
|
FORMS += src/qt/forms/qrcodedialog.ui
|
|
|
|
}
|
|
|
|
|
2012-02-10 23:25:36 +01:00
|
|
|
contains(BITCOIN_QT_TEST, 1) {
|
|
|
|
SOURCES += src/qt/test/test_main.cpp \
|
2012-03-25 23:25:10 +02:00
|
|
|
src/qt/test/uritests.cpp
|
|
|
|
HEADERS += src/qt/test/uritests.h
|
2012-02-10 23:25:36 +01:00
|
|
|
DEPENDPATH += src/qt/test
|
|
|
|
QT += testlib
|
|
|
|
TARGET = bitcoin-qt_test
|
|
|
|
DEFINES += BITCOIN_QT_TEST
|
2013-02-22 17:41:23 +01:00
|
|
|
macx: CONFIG -= app_bundle
|
2012-02-10 23:25:36 +01:00
|
|
|
}
|
|
|
|
|
2013-05-31 14:02:24 +02:00
|
|
|
# Todo: Remove this line when switching to Qt5, as that option was removed
|
2011-06-12 14:32:36 +02:00
|
|
|
CODECFORTR = UTF-8
|
2011-09-27 20:47:51 +02:00
|
|
|
|
2011-08-16 17:30:58 +02:00
|
|
|
# for lrelease/lupdate
|
2011-10-23 13:37:39 +02:00
|
|
|
# also add new translations to src/qt/bitcoin.qrc under translations/
|
|
|
|
TRANSLATIONS = $$files(src/qt/locale/bitcoin_*.ts)
|
2011-09-11 17:42:20 +02:00
|
|
|
|
2011-09-27 20:47:51 +02:00
|
|
|
isEmpty(QMAKE_LRELEASE) {
|
2012-03-21 22:29:33 +01:00
|
|
|
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe
|
2011-09-27 20:47:51 +02:00
|
|
|
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
|
|
|
}
|
2012-05-12 09:25:27 +02:00
|
|
|
isEmpty(QM_DIR):QM_DIR = $$PWD/src/qt/locale
|
2011-09-27 20:47:51 +02:00
|
|
|
# automatically build translations, so they can be included in resource file
|
|
|
|
TSQM.name = lrelease ${QMAKE_FILE_IN}
|
|
|
|
TSQM.input = TRANSLATIONS
|
2012-05-12 09:25:27 +02:00
|
|
|
TSQM.output = $$QM_DIR/${QMAKE_FILE_BASE}.qm
|
|
|
|
TSQM.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
|
2011-09-27 20:47:51 +02:00
|
|
|
TSQM.CONFIG = no_link
|
|
|
|
QMAKE_EXTRA_COMPILERS += TSQM
|
|
|
|
|
2011-09-28 22:01:47 +02:00
|
|
|
# "Other files" to show in Qt Creator
|
2013-04-10 17:19:28 +02:00
|
|
|
OTHER_FILES += README.md \
|
|
|
|
doc/*.txt \
|
2013-05-31 14:02:24 +02:00
|
|
|
doc/*.md \
|
2013-06-06 08:31:00 +02:00
|
|
|
src/bitcoind.cpp \
|
2013-04-10 17:19:28 +02:00
|
|
|
src/qt/res/bitcoin-qt.rc \
|
|
|
|
src/test/*.cpp \
|
|
|
|
src/test/*.h \
|
|
|
|
src/qt/test/*.cpp \
|
|
|
|
src/qt/test/*.h
|
2011-09-11 17:42:20 +02:00
|
|
|
|
2011-09-24 11:43:58 +02:00
|
|
|
# platform specific defaults, if not overridden on command line
|
|
|
|
isEmpty(BOOST_LIB_SUFFIX) {
|
|
|
|
macx:BOOST_LIB_SUFFIX = -mt
|
2012-12-15 11:02:37 +01:00
|
|
|
win32:BOOST_LIB_SUFFIX = -mgw44-mt-s-1_50
|
2011-09-24 11:43:58 +02:00
|
|
|
}
|
|
|
|
|
2011-10-06 23:02:21 +02:00
|
|
|
isEmpty(BOOST_THREAD_LIB_SUFFIX) {
|
|
|
|
BOOST_THREAD_LIB_SUFFIX = $$BOOST_LIB_SUFFIX
|
|
|
|
}
|
|
|
|
|
2011-09-24 11:43:58 +02:00
|
|
|
isEmpty(BDB_LIB_PATH) {
|
|
|
|
macx:BDB_LIB_PATH = /opt/local/lib/db48
|
|
|
|
}
|
|
|
|
|
2011-10-10 17:13:32 +02:00
|
|
|
isEmpty(BDB_LIB_SUFFIX) {
|
|
|
|
macx:BDB_LIB_SUFFIX = -4.8
|
|
|
|
}
|
|
|
|
|
2011-09-24 11:43:58 +02:00
|
|
|
isEmpty(BDB_INCLUDE_PATH) {
|
|
|
|
macx:BDB_INCLUDE_PATH = /opt/local/include/db48
|
|
|
|
}
|
|
|
|
|
|
|
|
isEmpty(BOOST_LIB_PATH) {
|
|
|
|
macx:BOOST_LIB_PATH = /opt/local/lib
|
|
|
|
}
|
|
|
|
|
|
|
|
isEmpty(BOOST_INCLUDE_PATH) {
|
|
|
|
macx:BOOST_INCLUDE_PATH = /opt/local/include
|
|
|
|
}
|
|
|
|
|
2012-12-15 11:02:37 +01:00
|
|
|
win32:DEFINES += WIN32
|
|
|
|
win32:RC_FILE = src/qt/res/bitcoin-qt.rc
|
2011-09-19 12:40:23 +02:00
|
|
|
|
2012-12-15 11:02:37 +01:00
|
|
|
win32:!contains(MINGW_THREAD_BUGFIX, 0) {
|
2012-03-18 00:54:22 +01:00
|
|
|
# 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
|
|
|
|
}
|
|
|
|
|
2012-12-15 11:02:37 +01:00
|
|
|
!win32:!macx {
|
2011-12-20 00:49:07 +01:00
|
|
|
DEFINES += LINUX
|
2012-03-14 07:39:42 +01:00
|
|
|
LIBS += -lrt
|
2013-01-30 04:42:51 +01:00
|
|
|
# _FILE_OFFSET_BITS=64 lets 32-bit fopen transparently support large files.
|
|
|
|
DEFINES += _FILE_OFFSET_BITS=64
|
2011-12-20 00:49:07 +01:00
|
|
|
}
|
|
|
|
|
2013-05-10 22:20:51 +02:00
|
|
|
macx:HEADERS += src/qt/macdockiconhandler.h src/qt/macnotificationhandler.h
|
|
|
|
macx:OBJECTIVE_SOURCES += src/qt/macdockiconhandler.mm src/qt/macnotificationhandler.mm
|
2013-05-03 15:18:28 +02:00
|
|
|
macx:LIBS += -framework Foundation -framework ApplicationServices -framework AppKit -framework CoreServices
|
2011-11-15 20:28:51 +01:00
|
|
|
macx:DEFINES += MAC_OSX MSG_NOSIGNAL=0
|
2011-09-11 17:42:20 +02:00
|
|
|
macx:ICON = src/qt/res/icons/bitcoin.icns
|
2012-09-21 21:42:38 +02:00
|
|
|
macx:QMAKE_CFLAGS_THREAD += -pthread
|
|
|
|
macx:QMAKE_LFLAGS_THREAD += -pthread
|
|
|
|
macx:QMAKE_CXXFLAGS_THREAD += -pthread
|
2013-02-12 00:52:30 +01:00
|
|
|
macx:QMAKE_INFO_PLIST = share/qt/Info.plist
|
2011-09-24 11:43:58 +02:00
|
|
|
|
|
|
|
# Set libraries and includes at end, to use platform-defined defaults if not overridden
|
2011-12-24 05:23:12 +01:00
|
|
|
INCLUDEPATH += $$BOOST_INCLUDE_PATH $$BDB_INCLUDE_PATH $$OPENSSL_INCLUDE_PATH $$QRENCODE_INCLUDE_PATH
|
|
|
|
LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB_PATH,,-L,) $$join(QRENCODE_LIB_PATH,,-L,)
|
2011-09-29 19:53:44 +02:00
|
|
|
LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX
|
2011-12-04 03:48:32 +01:00
|
|
|
# -lgdi32 has to happen after -lcrypto (see #681)
|
2012-12-15 11:02:37 +01:00
|
|
|
win32:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32
|
2011-10-06 23:02:21 +02:00
|
|
|
LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX
|
2012-12-15 11:02:37 +01:00
|
|
|
win32:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
|
2013-05-09 15:56:58 +02:00
|
|
|
macx:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
|
2011-09-29 19:53:44 +02:00
|
|
|
|
2011-11-07 15:50:03 +01:00
|
|
|
contains(RELEASE, 1) {
|
2012-12-15 11:02:37 +01:00
|
|
|
!win32:!macx {
|
2011-11-07 15:50:03 +01:00
|
|
|
# Linux: turn dynamic linking back on for c/c++ runtime libraries
|
|
|
|
LIBS += -Wl,-Bdynamic
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-04 21:52:58 +02:00
|
|
|
system($$QMAKE_LRELEASE -silent $$TRANSLATIONS)
|