Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 259 lines (230 sloc) 7.914 kb
aaa1c3c @laanwj initial commit
laanwj authored
1 TEMPLATE = app
1f2e0df @laanwj begin integration with bitcoin upstream
laanwj authored
2 TARGET =
94eaab7 @gavinandresen Bump version to 0.5.0.0
gavinandresen authored
3 VERSION = 0.5.0
6ccff2c remove cryptopp dependency, add simple unittest for SHA256Transform()
Nils Schneider authored
4 INCLUDEPATH += src src/json src/qt
3f19795 @TheBlueMatt Add BOOST_THREAD_USE_LIB define.
TheBlueMatt authored
5 DEFINES += QT_GUI BOOST_THREAD_USE_LIB
8fe2308 @laanwj windows build fixes
laanwj authored
6 CONFIG += no_include_pwd
5363cb0 @laanwj Add berkelydb version warning
laanwj authored
7
99cec89 @laanwj make qmake build system more configurable (as suggested by lukejr)
laanwj authored
8 # for boost 1.37, add -mt to the boost libraries
9 # use: qmake BOOST_LIB_SUFFIX=-mt
0e569e4 @TheBlueMatt Add option to specify a different suffix for boost_thread.
TheBlueMatt authored
10 # for boost thread win32 with _win32 sufix
11 # use: BOOST_THREAD_LIB_SUFFIX=_win32-...
07e2882 @laanwj qmake build system improvements
laanwj authored
12 # or when linking against a specific BerkelyDB version: BDB_LIB_SUFFIX=-4.8
99cec89 @laanwj make qmake build system more configurable (as suggested by lukejr)
laanwj authored
13
14 # Dependency library locations can be customized with BOOST_INCLUDE_PATH,
15 # BOOST_LIB_PATH, BDB_INCLUDE_PATH, BDB_LIB_PATH
16 # OPENSSL_INCLUDE_PATH and OPENSSL_LIB_PATH respectively
1d7e321 @laanwj mark specific warnings to disable for the cases where bitcoin core "sins...
laanwj authored
17
36eccc5 @TheBlueMatt Output build temp files in build/ instead of current directory.
TheBlueMatt authored
18 OBJECTS_DIR = build
19 MOC_DIR = build
20 UI_DIR = build
21
5d3083c @luke-jr Bugfix: Restore old behaviour of USE_UPNP as close as possible (built & ...
luke-jr authored
22 # use: qmake "USE_UPNP=1" ( enabled by default; default)
23 # or: qmake "USE_UPNP=0" (disabled by default)
24 # or: qmake "USE_UPNP=-" (not supported)
25 # miniupnpc (http://miniupnp.free.fr/files/) must be installed for support
26 contains(USE_UPNP, -) {
27 message(Building without UPNP support)
28 } else {
0aca857 @laanwj support USE_UPNP setting
laanwj authored
29 message(Building with UPNP support)
5d3083c @luke-jr Bugfix: Restore old behaviour of USE_UPNP as close as possible (built & ...
luke-jr authored
30 count(USE_UPNP, 0) {
31 USE_UPNP=1
32 }
aaf71d8 @TheBlueMatt Allow miniupnpc include path specificaiton and fix link on Win32.
TheBlueMatt authored
33 DEFINES += USE_UPNP=$$USE_UPNP STATICLIB
34 INCLUDEPATH += $$MINIUPNPC_INCLUDE_PATH
35 LIBS += $$join(MINIUPNPC_LIB_PATH,,-L,) -lminiupnpc
36 win32:LIBS += -liphlpapi
0aca857 @laanwj support USE_UPNP setting
laanwj authored
37 }
38
9b490f7 @laanwj put Q_OBJECT everywhere it should be (removes warnings when running lupd...
laanwj authored
39 # use: qmake "USE_DBUS=1"
07e2882 @laanwj qmake build system improvements
laanwj authored
40 contains(USE_DBUS, 1) {
cf9195c @laanwj (k)ubuntu 10.04+ notification support (based on @zwierzak his code)
laanwj authored
41 message(Building with DBUS (Freedesktop notifications) support)
010c4fc @laanwj Change define to determine use of DBUS to USE_DBUS, to prevent overlap w...
laanwj authored
42 DEFINES += USE_DBUS
cf9195c @laanwj (k)ubuntu 10.04+ notification support (based on @zwierzak his code)
laanwj authored
43 QT += dbus
44 }
45
07e2882 @laanwj qmake build system improvements
laanwj authored
46 # use: qmake "USE_SSL=1"
8f1631b @laanwj make USE_SSL actually work (thanks @prusnak for noticing)
laanwj authored
47 contains(USE_SSL, 1) {
07e2882 @laanwj qmake build system improvements
laanwj authored
48 message(Building with SSL support for RPC)
49 DEFINES += USE_SSL
50 }
51
5f2e76b @TheBlueMatt Optionally include additional QT plugins when required to build.
TheBlueMatt authored
52 contains(BITCOIN_NEED_QT_PLUGINS, 1) {
53 DEFINES += BITCOIN_NEED_QT_PLUGINS
54 QTPLUGIN += qcncodecs qjpcodecs qtwcodecs qkrcodecs
55 }
56
533c82c @laanwj do not use -fstack-protector on Windows
laanwj authored
57 !windows {
58 # for extra security against potential buffer overflows
59 QMAKE_CXXFLAGS += -fstack-protector
60 QMAKE_LFLAGS += -fstack-protector
61 # do not enable this on windows, as it will result in a non-working executable!
62 }
ea8440d @laanwj Add -fstack-protector to gcc CXX flags
laanwj authored
63
5363cb0 @laanwj Add berkelydb version warning
laanwj authored
64 # disable quite some warnings because bitcoin core "sins" a lot
d041590 @TheBlueMatt Add -Wno-strict-aliasing because boost breaks that too much.
TheBlueMatt authored
65 QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wno-strict-aliasing -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses -Wno-unknown-pragmas -Wno-switch
1d7e321 @laanwj mark specific warnings to disable for the cases where bitcoin core "sins...
laanwj authored
66
aaa1c3c @laanwj initial commit
laanwj authored
67 # Input
6ccff2c remove cryptopp dependency, add simple unittest for SHA256Transform()
Nils Schneider authored
68 DEPENDPATH += src/qt src src json/include
ba4081c @laanwj move back to original directory structure
laanwj authored
69 HEADERS += src/qt/bitcoingui.h \
70 src/qt/transactiontablemodel.h \
71 src/qt/addresstablemodel.h \
72 src/qt/optionsdialog.h \
73 src/qt/sendcoinsdialog.h \
3479849 @laanwj convert to full tab-based ui
laanwj authored
74 src/qt/addressbookpage.h \
ba4081c @laanwj move back to original directory structure
laanwj authored
75 src/qt/aboutdialog.h \
76 src/qt/editaddressdialog.h \
77 src/qt/bitcoinaddressvalidator.h \
78 src/base58.h \
79 src/bignum.h \
80 src/util.h \
81 src/uint256.h \
82 src/serialize.h \
83 src/strlcpy.h \
84 src/main.h \
85 src/net.h \
86 src/key.h \
87 src/db.h \
88 src/script.h \
89 src/noui.h \
90 src/init.h \
91 src/headers.h \
92 src/irc.h \
93 src/json/json_spirit_writer_template.h \
94 src/json/json_spirit_writer.h \
95 src/json/json_spirit_value.h \
96 src/json/json_spirit_utils.h \
97 src/json/json_spirit_stream_reader.h \
98 src/json/json_spirit_reader_template.h \
99 src/json/json_spirit_reader.h \
100 src/json/json_spirit_error_position.h \
101 src/json/json_spirit.h \
102 src/qt/clientmodel.h \
103 src/qt/guiutil.h \
104 src/qt/transactionrecord.h \
105 src/qt/guiconstants.h \
106 src/qt/optionsmodel.h \
107 src/qt/monitoreddatamapper.h \
47c6215 @laanwj use #ifdef QT_UI to distinguish Qt UI instead of hardcoded #if 0
laanwj authored
108 src/qtui.h \
ba4081c @laanwj move back to original directory structure
laanwj authored
109 src/qt/transactiondesc.h \
f193c57 @laanwj introduce bitcoin amount field with split amount/decimals, to protect ag...
laanwj authored
110 src/qt/transactiondescdialog.h \
e8ef3da @laanwj update core to d0d80170a2ca73004e08fb85007fe055cbf4e411 (CWallet class)
laanwj authored
111 src/qt/bitcoinamountfield.h \
112 src/wallet.h \
ceb6d4e @laanwj Implement filter row instead of tabs, allows for more expressive filters
laanwj authored
113 src/keystore.h \
114 src/qt/transactionfilterproxy.h \
ef079e1 @laanwj Split off WalletModel from ClientModel, to be able to support multi-wall...
laanwj authored
115 src/qt/transactionview.h \
8fe2308 @laanwj windows build fixes
laanwj authored
116 src/qt/walletmodel.h \
64c8b69 @laanwj tab reorg phase 1: split main gui into "overview" and "history"
laanwj authored
117 src/bitcoinrpc.h \
fbaee7a @laanwj Export functionality for transaction list
laanwj authored
118 src/qt/overviewpage.h \
0b814f9 @laanwj add better windows7/vista look by nico_w
laanwj authored
119 src/qt/csvmodelwriter.h \
a5e6d72 @laanwj add sendmany support
laanwj authored
120 src/crypter.h \
121 src/qt/sendcoinsentry.h \
e285ffc @laanwj preparations for multiple unit (uBTC, mBTC, BTC) support, fix amount ent...
laanwj authored
122 src/qt/qvalidatedlineedit.h \
ee014e5 @laanwj Full support for other units, add configuration option for default unit ...
laanwj authored
123 src/qt/bitcoinunits.h \
b7bcaf9 @laanwj Wallet encryption part 2: ask passphrase when needed, add menu options
laanwj authored
124 src/qt/qvaluecombobox.h \
c5aa1b1 @laanwj update to work with new lock system, add protocol.* to build system
laanwj authored
125 src/qt/askpassphrasedialog.h \
cf9195c @laanwj (k)ubuntu 10.04+ notification support (based on @zwierzak his code)
laanwj authored
126 src/protocol.h \
127 src/qt/notificator.h
c5aa1b1 @laanwj update to work with new lock system, add protocol.* to build system
laanwj authored
128
ba4081c @laanwj move back to original directory structure
laanwj authored
129 SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
130 src/qt/transactiontablemodel.cpp \
131 src/qt/addresstablemodel.cpp \
132 src/qt/optionsdialog.cpp \
133 src/qt/sendcoinsdialog.cpp \
3479849 @laanwj convert to full tab-based ui
laanwj authored
134 src/qt/addressbookpage.cpp \
ba4081c @laanwj move back to original directory structure
laanwj authored
135 src/qt/aboutdialog.cpp \
136 src/qt/editaddressdialog.cpp \
137 src/qt/bitcoinaddressvalidator.cpp \
138 src/util.cpp \
139 src/script.cpp \
140 src/main.cpp \
141 src/init.cpp \
142 src/net.cpp \
143 src/irc.cpp \
144 src/db.cpp \
145 src/json/json_spirit_writer.cpp \
146 src/json/json_spirit_value.cpp \
147 src/json/json_spirit_reader.cpp \
148 src/qt/clientmodel.cpp \
149 src/qt/guiutil.cpp \
150 src/qt/transactionrecord.cpp \
151 src/qt/optionsmodel.cpp \
152 src/qt/monitoreddatamapper.cpp \
153 src/qt/transactiondesc.cpp \
6315130 @laanwj Internationalization -- conversion of strings from bitcoin core
laanwj authored
154 src/qt/transactiondescdialog.cpp \
f193c57 @laanwj introduce bitcoin amount field with split amount/decimals, to protect ag...
laanwj authored
155 src/qt/bitcoinstrings.cpp \
e8ef3da @laanwj update core to d0d80170a2ca73004e08fb85007fe055cbf4e411 (CWallet class)
laanwj authored
156 src/qt/bitcoinamountfield.cpp \
157 src/wallet.cpp \
ceb6d4e @laanwj Implement filter row instead of tabs, allows for more expressive filters
laanwj authored
158 src/keystore.cpp \
159 src/qt/transactionfilterproxy.cpp \
ef079e1 @laanwj Split off WalletModel from ClientModel, to be able to support multi-wall...
laanwj authored
160 src/qt/transactionview.cpp \
8fe2308 @laanwj windows build fixes
laanwj authored
161 src/qt/walletmodel.cpp \
64c8b69 @laanwj tab reorg phase 1: split main gui into "overview" and "history"
laanwj authored
162 src/bitcoinrpc.cpp \
fbaee7a @laanwj Export functionality for transaction list
laanwj authored
163 src/qt/overviewpage.cpp \
0b814f9 @laanwj add better windows7/vista look by nico_w
laanwj authored
164 src/qt/csvmodelwriter.cpp \
a5e6d72 @laanwj add sendmany support
laanwj authored
165 src/crypter.cpp \
166 src/qt/sendcoinsentry.cpp \
e285ffc @laanwj preparations for multiple unit (uBTC, mBTC, BTC) support, fix amount ent...
laanwj authored
167 src/qt/qvalidatedlineedit.cpp \
ee014e5 @laanwj Full support for other units, add configuration option for default unit ...
laanwj authored
168 src/qt/bitcoinunits.cpp \
b7bcaf9 @laanwj Wallet encryption part 2: ask passphrase when needed, add menu options
laanwj authored
169 src/qt/qvaluecombobox.cpp \
c5aa1b1 @laanwj update to work with new lock system, add protocol.* to build system
laanwj authored
170 src/qt/askpassphrasedialog.cpp \
cf9195c @laanwj (k)ubuntu 10.04+ notification support (based on @zwierzak his code)
laanwj authored
171 src/protocol.cpp \
172 src/qt/notificator.cpp
13740b7 @laanwj Use resource system
laanwj authored
173
174 RESOURCES += \
ba4081c @laanwj move back to original directory structure
laanwj authored
175 src/qt/bitcoin.qrc
df57788 @laanwj rename to qt standard
laanwj authored
176
177 FORMS += \
ba4081c @laanwj move back to original directory structure
laanwj authored
178 src/qt/forms/sendcoinsdialog.ui \
3479849 @laanwj convert to full tab-based ui
laanwj authored
179 src/qt/forms/addressbookpage.ui \
ba4081c @laanwj move back to original directory structure
laanwj authored
180 src/qt/forms/aboutdialog.ui \
181 src/qt/forms/editaddressdialog.ui \
64c8b69 @laanwj tab reorg phase 1: split main gui into "overview" and "history"
laanwj authored
182 src/qt/forms/transactiondescdialog.ui \
a5e6d72 @laanwj add sendmany support
laanwj authored
183 src/qt/forms/overviewpage.ui \
b7bcaf9 @laanwj Wallet encryption part 2: ask passphrase when needed, add menu options
laanwj authored
184 src/qt/forms/sendcoinsentry.ui \
185 src/qt/forms/askpassphrasedialog.ui
ab2fe68 @laanwj prepare internationalization; rename project to bitcoin-qt
laanwj authored
186
187 CODECFORTR = UTF-8
5902040 @laanwj translation handling improvements
laanwj authored
188
317c733 @laanwj add russian translation by msva
laanwj authored
189 # for lrelease/lupdate
5c92622 @laanwj Translation lookup logic improvements
laanwj authored
190 # also add new translations to src/qt/bitcoin.qrc under translations/
191 TRANSLATIONS = $$files(src/qt/locale/bitcoin_*.ts)
2c1fd3c @p2k Some Mac OS X specific things
p2k authored
192
5902040 @laanwj translation handling improvements
laanwj authored
193 isEmpty(QMAKE_LRELEASE) {
194 win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
195 else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
196 }
197 isEmpty(TS_DIR):TS_DIR = src/qt/locale
198 # automatically build translations, so they can be included in resource file
199 TSQM.name = lrelease ${QMAKE_FILE_IN}
200 TSQM.input = TRANSLATIONS
201 TSQM.output = $$TS_DIR/${QMAKE_FILE_BASE}.qm
202 TSQM.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN}
203 TSQM.CONFIG = no_link
204 QMAKE_EXTRA_COMPILERS += TSQM
07e2882 @laanwj qmake build system improvements
laanwj authored
205 PRE_TARGETDEPS += compiler_TSQM_make_all
5902040 @laanwj translation handling improvements
laanwj authored
206
f33a43e @laanwj Update "other files" in Qt Creator with all documentation now that the p...
laanwj authored
207 # "Other files" to show in Qt Creator
2c1fd3c @p2k Some Mac OS X specific things
p2k authored
208 OTHER_FILES += \
f33a43e @laanwj Update "other files" in Qt Creator with all documentation now that the p...
laanwj authored
209 doc/*.rst doc/*.txt doc/README README.md
2c1fd3c @p2k Some Mac OS X specific things
p2k authored
210
99cec89 @laanwj make qmake build system more configurable (as suggested by lukejr)
laanwj authored
211 # platform specific defaults, if not overridden on command line
212 isEmpty(BOOST_LIB_SUFFIX) {
213 macx:BOOST_LIB_SUFFIX = -mt
214 windows:BOOST_LIB_SUFFIX = -mgw44-mt-1_43
215 }
216
0e569e4 @TheBlueMatt Add option to specify a different suffix for boost_thread.
TheBlueMatt authored
217 isEmpty(BOOST_THREAD_LIB_SUFFIX) {
218 BOOST_THREAD_LIB_SUFFIX = $$BOOST_LIB_SUFFIX
219 }
220
99cec89 @laanwj make qmake build system more configurable (as suggested by lukejr)
laanwj authored
221 isEmpty(BDB_LIB_PATH) {
222 macx:BDB_LIB_PATH = /opt/local/lib/db48
223 }
224
b50ac8f @gavinandresen Mac OSX release process changes
gavinandresen authored
225 isEmpty(BDB_LIB_SUFFIX) {
226 macx:BDB_LIB_SUFFIX = -4.8
227 }
228
99cec89 @laanwj make qmake build system more configurable (as suggested by lukejr)
laanwj authored
229 isEmpty(BDB_INCLUDE_PATH) {
230 macx:BDB_INCLUDE_PATH = /opt/local/include/db48
231 }
232
233 isEmpty(BOOST_LIB_PATH) {
234 macx:BOOST_LIB_PATH = /opt/local/lib
235 }
236
237 isEmpty(BOOST_INCLUDE_PATH) {
238 macx:BOOST_INCLUDE_PATH = /opt/local/include
239 }
240
241 windows:LIBS += -lws2_32 -lgdi32
6853e62 @gavinandresen Fix build on windows and mac
gavinandresen authored
242 windows:DEFINES += WIN32
9b490f7 @laanwj put Q_OBJECT everywhere it should be (removes warnings when running lupd...
laanwj authored
243 windows:RC_FILE = src/qt/res/bitcoin-qt.rc
244
527137e @p2k Improved Mac experience; QDoubleSpinBox for BitcoinAmountField
p2k authored
245 macx:HEADERS += src/qt/macdockiconhandler.h
246 macx:OBJECTIVE_SOURCES += src/qt/macdockiconhandler.mm
247 macx:LIBS += -framework Foundation -framework ApplicationServices -framework AppKit
6853e62 @gavinandresen Fix build on windows and mac
gavinandresen authored
248 macx:DEFINES += MAC_OSX MSG_NOSIGNAL=0 BOOST_FILESYSTEM_VERSION=3
2c1fd3c @p2k Some Mac OS X specific things
p2k authored
249 macx:ICON = src/qt/res/icons/bitcoin.icns
b50ac8f @gavinandresen Mac OSX release process changes
gavinandresen authored
250 macx:TARGET = "Bitcoin-Qt"
99cec89 @laanwj make qmake build system more configurable (as suggested by lukejr)
laanwj authored
251
252 # Set libraries and includes at end, to use platform-defined defaults if not overridden
253 INCLUDEPATH += $$BOOST_INCLUDE_PATH $$BDB_INCLUDE_PATH $$OPENSSL_INCLUDE_PATH
254 LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB_PATH,,-L,)
07e2882 @laanwj qmake build system improvements
laanwj authored
255 LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX
0e569e4 @TheBlueMatt Add option to specify a different suffix for boost_thread.
TheBlueMatt authored
256 LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX
07e2882 @laanwj qmake build system improvements
laanwj authored
257
258 system($$QMAKE_LRELEASE -silent $$_PRO_FILE_)
Something went wrong with that request. Please try again.