1 # Copyright (c) 2013-2016 The Bitcoin Core developers
2 # Distributed under the MIT software license, see the accompanying
3 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 bin_PROGRAMS += qt/bitcoin-qt
6 EXTRA_LIBRARIES += qt/libbitcoinqt.a
10 qt/locale/bitcoin_af.ts \
11 qt/locale/bitcoin_af_ZA.ts \
12 qt/locale/bitcoin_ar.ts \
13 qt/locale/bitcoin_be_BY.ts \
14 qt/locale/bitcoin_bg_BG.ts \
15 qt/locale/bitcoin_bg.ts \
16 qt/locale/bitcoin_ca_ES.ts \
17 qt/locale/bitcoin_ca.ts \
18 qt/locale/bitcoin_ca@valencia.ts \
19 qt/locale/bitcoin_cs.ts \
20 qt/locale/bitcoin_cy.ts \
21 qt/locale/bitcoin_da.ts \
22 qt/locale/bitcoin_de.ts \
23 qt/locale/bitcoin_el_GR.ts \
24 qt/locale/bitcoin_el.ts \
25 qt/locale/bitcoin_en_GB.ts \
26 qt/locale/bitcoin_en.ts \
27 qt/locale/bitcoin_eo.ts \
28 qt/locale/bitcoin_es_AR.ts \
29 qt/locale/bitcoin_es_CL.ts \
30 qt/locale/bitcoin_es_CO.ts \
31 qt/locale/bitcoin_es_DO.ts \
32 qt/locale/bitcoin_es_ES.ts \
33 qt/locale/bitcoin_es_MX.ts \
34 qt/locale/bitcoin_es.ts \
35 qt/locale/bitcoin_es_UY.ts \
36 qt/locale/bitcoin_es_VE.ts \
37 qt/locale/bitcoin_et_EE.ts \
38 qt/locale/bitcoin_et.ts \
39 qt/locale/bitcoin_eu_ES.ts \
40 qt/locale/bitcoin_fa_IR.ts \
41 qt/locale/bitcoin_fa.ts \
42 qt/locale/bitcoin_fi.ts \
43 qt/locale/bitcoin_fr_CA.ts \
44 qt/locale/bitcoin_fr_FR.ts \
45 qt/locale/bitcoin_fr.ts \
46 qt/locale/bitcoin_gl.ts \
47 qt/locale/bitcoin_he.ts \
48 qt/locale/bitcoin_hi_IN.ts \
49 qt/locale/bitcoin_hr.ts \
50 qt/locale/bitcoin_hu.ts \
51 qt/locale/bitcoin_id_ID.ts \
52 qt/locale/bitcoin_it_IT.ts \
53 qt/locale/bitcoin_it.ts \
54 qt/locale/bitcoin_ja.ts \
55 qt/locale/bitcoin_ka.ts \
56 qt/locale/bitcoin_kk_KZ.ts \
57 qt/locale/bitcoin_ko_KR.ts \
58 qt/locale/bitcoin_ku_IQ.ts \
59 qt/locale/bitcoin_ky.ts \
60 qt/locale/bitcoin_la.ts \
61 qt/locale/bitcoin_lt.ts \
62 qt/locale/bitcoin_lv_LV.ts \
63 qt/locale/bitcoin_mk_MK.ts \
64 qt/locale/bitcoin_mn.ts \
65 qt/locale/bitcoin_ms_MY.ts \
66 qt/locale/bitcoin_nb.ts \
67 qt/locale/bitcoin_ne.ts \
68 qt/locale/bitcoin_nl.ts \
69 qt/locale/bitcoin_pam.ts \
70 qt/locale/bitcoin_pl.ts \
71 qt/locale/bitcoin_pt_BR.ts \
72 qt/locale/bitcoin_pt_PT.ts \
73 qt/locale/bitcoin_ro_RO.ts \
74 qt/locale/bitcoin_ro.ts \
75 qt/locale/bitcoin_ru_RU.ts \
76 qt/locale/bitcoin_ru.ts \
77 qt/locale/bitcoin_sk.ts \
78 qt/locale/bitcoin_sl_SI.ts \
79 qt/locale/bitcoin_sq.ts \
80 qt/locale/bitcoin_sr@latin.ts \
81 qt/locale/bitcoin_sr.ts \
82 qt/locale/bitcoin_sv.ts \
83 qt/locale/bitcoin_ta.ts \
84 qt/locale/bitcoin_th_TH.ts \
85 qt/locale/bitcoin_tr_TR.ts \
86 qt/locale/bitcoin_tr.ts \
87 qt/locale/bitcoin_uk.ts \
88 qt/locale/bitcoin_ur_PK.ts \
89 qt/locale/bitcoin_uz@Cyrl.ts \
90 qt/locale/bitcoin_vi.ts \
91 qt/locale/bitcoin_vi_VN.ts \
92 qt/locale/bitcoin_zh_CN.ts \
93 qt/locale/bitcoin_zh_HK.ts \
94 qt/locale/bitcoin_zh.ts \
95 qt/locale/bitcoin_zh_TW.ts
98 qt/forms/addressbookpage.ui \
99 qt/forms/askpassphrasedialog.ui \
100 qt/forms/coincontroldialog.ui \
101 qt/forms/editaddressdialog.ui \
102 qt/forms/helpmessagedialog.ui \
104 qt/forms/modaloverlay.ui \
105 qt/forms/openuridialog.ui \
106 qt/forms/optionsdialog.ui \
107 qt/forms/overviewpage.ui \
108 qt/forms/receivecoinsdialog.ui \
109 qt/forms/receiverequestdialog.ui \
110 qt/forms/debugwindow.ui \
111 qt/forms/sendcoinsdialog.ui \
112 qt/forms/sendcoinsentry.ui \
113 qt/forms/signverifymessagedialog.ui \
114 qt/forms/transactiondescdialog.ui
117 qt/moc_addressbookpage.cpp \
118 qt/moc_addresstablemodel.cpp \
119 qt/moc_askpassphrasedialog.cpp \
120 qt/moc_bantablemodel.cpp \
121 qt/moc_bitcoinaddressvalidator.cpp \
122 qt/moc_bitcoinamountfield.cpp \
123 qt/moc_bitcoingui.cpp \
124 qt/moc_bitcoinunits.cpp \
125 qt/moc_clientmodel.cpp \
126 qt/moc_coincontroldialog.cpp \
127 qt/moc_coincontroltreewidget.cpp \
128 qt/moc_csvmodelwriter.cpp \
129 qt/moc_editaddressdialog.cpp \
132 qt/moc_macdockiconhandler.cpp \
133 qt/moc_macnotificationhandler.cpp \
134 qt/moc_modaloverlay.cpp \
135 qt/moc_notificator.cpp \
136 qt/moc_openuridialog.cpp \
137 qt/moc_optionsdialog.cpp \
138 qt/moc_optionsmodel.cpp \
139 qt/moc_overviewpage.cpp \
140 qt/moc_peertablemodel.cpp \
141 qt/moc_paymentserver.cpp \
142 qt/moc_qvalidatedlineedit.cpp \
143 qt/moc_qvaluecombobox.cpp \
144 qt/moc_receivecoinsdialog.cpp \
145 qt/moc_receiverequestdialog.cpp \
146 qt/moc_recentrequeststablemodel.cpp \
147 qt/moc_rpcconsole.cpp \
148 qt/moc_sendcoinsdialog.cpp \
149 qt/moc_sendcoinsentry.cpp \
150 qt/moc_signverifymessagedialog.cpp \
151 qt/moc_splashscreen.cpp \
152 qt/moc_trafficgraphwidget.cpp \
153 qt/moc_transactiondesc.cpp \
154 qt/moc_transactiondescdialog.cpp \
155 qt/moc_transactionfilterproxy.cpp \
156 qt/moc_transactiontablemodel.cpp \
157 qt/moc_transactionview.cpp \
158 qt/moc_utilitydialog.cpp \
159 qt/moc_walletframe.cpp \
160 qt/moc_walletmodel.cpp \
161 qt/moc_walletview.cpp
164 qt/macdockiconhandler.mm \
165 qt/macnotificationhandler.mm
169 qt/bitcoinamountfield.moc \
171 qt/overviewpage.moc \
174 QT_QRC_CPP = qt/qrc_bitcoin.cpp
175 QT_QRC = qt/bitcoin.qrc
176 QT_QRC_LOCALE_CPP = qt/qrc_bitcoin_locale.cpp
177 QT_QRC_LOCALE = qt/bitcoin_locale.qrc
179 PROTOBUF_CC = qt/paymentrequest.pb.cc
180 PROTOBUF_H = qt/paymentrequest.pb.h
181 PROTOBUF_PROTO = qt/paymentrequest.proto
184 qt/addressbookpage.h \
185 qt/addresstablemodel.h \
186 qt/askpassphrasedialog.h \
188 qt/bitcoinaddressvalidator.h \
189 qt/bitcoinamountfield.h \
193 qt/coincontroldialog.h \
194 qt/coincontroltreewidget.h \
195 qt/csvmodelwriter.h \
196 qt/editaddressdialog.h \
200 qt/macdockiconhandler.h \
201 qt/macnotificationhandler.h \
209 qt/paymentrequestplus.h \
211 qt/peertablemodel.h \
213 qt/qvalidatedlineedit.h \
214 qt/qvaluecombobox.h \
215 qt/receivecoinsdialog.h \
216 qt/receiverequestdialog.h \
217 qt/recentrequeststablemodel.h \
219 qt/sendcoinsdialog.h \
220 qt/sendcoinsentry.h \
221 qt/signverifymessagedialog.h \
223 qt/trafficgraphwidget.h \
224 qt/transactiondesc.h \
225 qt/transactiondescdialog.h \
226 qt/transactionfilterproxy.h \
227 qt/transactionrecord.h \
228 qt/transactiontablemodel.h \
229 qt/transactionview.h \
233 qt/walletmodeltransaction.h \
235 qt/winshutdownmonitor.h
238 qt/res/icons/add.png \
239 qt/res/icons/address-book.png \
240 qt/res/icons/about.png \
241 qt/res/icons/about_qt.png \
242 qt/res/icons/bitcoin.ico \
243 qt/res/icons/bitcoin_testnet.ico \
244 qt/res/icons/bitcoin.png \
245 qt/res/icons/chevron.png \
246 qt/res/icons/clock1.png \
247 qt/res/icons/clock2.png \
248 qt/res/icons/clock3.png \
249 qt/res/icons/clock4.png \
250 qt/res/icons/clock5.png \
251 qt/res/icons/configure.png \
252 qt/res/icons/connect0.png \
253 qt/res/icons/connect1.png \
254 qt/res/icons/connect2.png \
255 qt/res/icons/connect3.png \
256 qt/res/icons/connect4.png \
257 qt/res/icons/debugwindow.png \
258 qt/res/icons/edit.png \
259 qt/res/icons/editcopy.png \
260 qt/res/icons/editpaste.png \
261 qt/res/icons/export.png \
262 qt/res/icons/eye.png \
263 qt/res/icons/eye_minus.png \
264 qt/res/icons/eye_plus.png \
265 qt/res/icons/filesave.png \
266 qt/res/icons/fontbigger.png \
267 qt/res/icons/fontsmaller.png \
268 qt/res/icons/hd_disabled.png \
269 qt/res/icons/hd_enabled.png \
270 qt/res/icons/history.png \
271 qt/res/icons/info.png \
272 qt/res/icons/key.png \
273 qt/res/icons/lock_closed.png \
274 qt/res/icons/lock_open.png \
275 qt/res/icons/network_disabled.png \
276 qt/res/icons/open.png \
277 qt/res/icons/overview.png \
278 qt/res/icons/quit.png \
279 qt/res/icons/receive.png \
280 qt/res/icons/remove.png \
281 qt/res/icons/send.png \
282 qt/res/icons/synced.png \
283 qt/res/icons/transaction0.png \
284 qt/res/icons/transaction2.png \
285 qt/res/icons/transaction_abandoned.png \
286 qt/res/icons/transaction_conflicted.png \
287 qt/res/icons/tx_inout.png \
288 qt/res/icons/tx_input.png \
289 qt/res/icons/tx_output.png \
290 qt/res/icons/tx_mined.png \
291 qt/res/icons/warning.png \
292 qt/res/icons/verify.png
294 BITCOIN_QT_BASE_CPP = \
295 qt/bantablemodel.cpp \
296 qt/bitcoinaddressvalidator.cpp \
297 qt/bitcoinamountfield.cpp \
299 qt/bitcoinunits.cpp \
301 qt/csvmodelwriter.cpp \
304 qt/modaloverlay.cpp \
305 qt/networkstyle.cpp \
307 qt/optionsdialog.cpp \
308 qt/optionsmodel.cpp \
309 qt/peertablemodel.cpp \
310 qt/platformstyle.cpp \
311 qt/qvalidatedlineedit.cpp \
312 qt/qvaluecombobox.cpp \
314 qt/splashscreen.cpp \
315 qt/trafficgraphwidget.cpp \
318 BITCOIN_QT_WINDOWS_CPP = qt/winshutdownmonitor.cpp
320 BITCOIN_QT_WALLET_CPP = \
321 qt/addressbookpage.cpp \
322 qt/addresstablemodel.cpp \
323 qt/askpassphrasedialog.cpp \
324 qt/coincontroldialog.cpp \
325 qt/coincontroltreewidget.cpp \
326 qt/editaddressdialog.cpp \
327 qt/openuridialog.cpp \
328 qt/overviewpage.cpp \
329 qt/paymentrequestplus.cpp \
330 qt/paymentserver.cpp \
331 qt/receivecoinsdialog.cpp \
332 qt/receiverequestdialog.cpp \
333 qt/recentrequeststablemodel.cpp \
334 qt/sendcoinsdialog.cpp \
335 qt/sendcoinsentry.cpp \
336 qt/signverifymessagedialog.cpp \
337 qt/transactiondesc.cpp \
338 qt/transactiondescdialog.cpp \
339 qt/transactionfilterproxy.cpp \
340 qt/transactionrecord.cpp \
341 qt/transactiontablemodel.cpp \
342 qt/transactionview.cpp \
345 qt/walletmodeltransaction.cpp \
348 BITCOIN_QT_CPP = $(BITCOIN_QT_BASE_CPP)
350 BITCOIN_QT_CPP += $(BITCOIN_QT_WINDOWS_CPP)
353 BITCOIN_QT_CPP += $(BITCOIN_QT_WALLET_CPP)
358 RES_MOVIES = $(wildcard $(srcdir)/qt/res/movies/spinner-*.png)
360 BITCOIN_RC = qt/res/bitcoin-qt-res.rc
362 BITCOIN_QT_INCLUDES = -I$(builddir)/qt -I$(srcdir)/qt -I$(srcdir)/qt/forms \
363 -I$(builddir)/qt/forms -DQT_NO_KEYWORDS
365 qt_libbitcoinqt_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
366 $(QT_INCLUDES) $(QT_DBUS_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
367 qt_libbitcoinqt_a_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
369 qt_libbitcoinqt_a_SOURCES = $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(QT_FORMS_UI) \
370 $(QT_QRC) $(QT_QRC_LOCALE) $(QT_TS) $(PROTOBUF_PROTO) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES)
372 nodist_qt_libbitcoinqt_a_SOURCES = $(QT_MOC_CPP) $(QT_MOC) $(PROTOBUF_CC) \
373 $(PROTOBUF_H) $(QT_QRC_CPP) $(QT_QRC_LOCALE_CPP)
375 # forms/foo.h -> forms/ui_foo.h
376 QT_FORMS_H=$(join $(dir $(QT_FORMS_UI)),$(addprefix ui_, $(notdir $(QT_FORMS_UI:.ui=.h))))
378 # Most files will depend on the forms and moc files as includes. Generate them
379 # before anything else.
380 $(QT_MOC): $(QT_FORMS_H)
381 $(qt_libbitcoinqt_a_OBJECTS) $(qt_bitcoin_qt_OBJECTS) : | $(QT_MOC)
383 #Generating these with a half-written protobuf header leads to wacky results.
384 #This makes sure it's done.
385 $(QT_MOC): $(PROTOBUF_H)
386 $(QT_MOC_CPP): $(PROTOBUF_H)
388 # bitcoin-qt binary #
389 qt_bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
390 $(QT_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
391 qt_bitcoin_qt_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
393 qt_bitcoin_qt_SOURCES = qt/bitcoin.cpp
395 qt_bitcoin_qt_SOURCES += $(BITCOIN_MM)
398 qt_bitcoin_qt_SOURCES += $(BITCOIN_RC)
400 qt_bitcoin_qt_LDADD = qt/libbitcoinqt.a $(LIBBITCOIN_SERVER)
402 qt_bitcoin_qt_LDADD += $(LIBBITCOIN_WALLET)
405 qt_bitcoin_qt_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
407 qt_bitcoin_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CONSENSUS) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \
408 $(BOOST_LIBS) $(QT_LIBS) $(QT_DBUS_LIBS) $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1) \
409 $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
410 qt_bitcoin_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
411 qt_bitcoin_qt_LIBTOOLFLAGS = --tag CXX
413 #locale/foo.ts -> locale/foo.qm
414 QT_QM=$(QT_TS:.ts=.qm)
418 $(srcdir)/qt/bitcoinstrings.cpp: $(libbitcoin_server_a_SOURCES) $(libbitcoin_wallet_a_SOURCES) $(libbitcoin_common_a_SOURCES) $(libbitcoin_zmq_a_SOURCES) $(libbitcoin_consensus_a_SOURCES) $(libbitcoin_util_a_SOURCES)
419 @test -n $(XGETTEXT) || echo "xgettext is required for updating translations"
420 $(AM_V_GEN) cd $(srcdir); XGETTEXT=$(XGETTEXT) PACKAGE_NAME="$(PACKAGE_NAME)" COPYRIGHT_HOLDERS="$(COPYRIGHT_HOLDERS)" COPYRIGHT_HOLDERS_SUBSTITUTION="$(COPYRIGHT_HOLDERS_SUBSTITUTION)" $(PYTHON) ../share/qt/extract_strings_qt.py $^
422 translate: $(srcdir)/qt/bitcoinstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(BITCOIN_QT_BASE_CPP) qt/bitcoin.cpp $(BITCOIN_QT_WINDOWS_CPP) $(BITCOIN_QT_WALLET_CPP) $(BITCOIN_QT_H) $(BITCOIN_MM)
423 @test -n $(LUPDATE) || echo "lupdate is required for updating translations"
424 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LUPDATE) $^ -locations relative -no-obsolete -ts $(srcdir)/qt/locale/bitcoin_en.ts
426 $(QT_QRC_LOCALE_CPP): $(QT_QRC_LOCALE) $(QT_QM)
428 @cp -f $< $(@D)/temp_$(<F)
429 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin_locale $(@D)/temp_$(<F) | \
430 $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
433 $(QT_QRC_CPP): $(QT_QRC) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES) $(PROTOBUF_H)
435 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin $< | \
436 $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
438 CLEAN_QT = $(nodist_qt_libbitcoinqt_a_SOURCES) $(QT_QM) $(QT_FORMS_H) qt/*.gcda qt/*.gcno
440 CLEANFILES += $(CLEAN_QT)
442 bitcoin_qt_clean: FORCE
443 rm -f $(CLEAN_QT) $(qt_libbitcoinqt_a_OBJECTS) $(qt_bitcoin_qt_OBJECTS) qt/bitcoin-qt$(EXEEXT) $(LIBBITCOINQT)
445 bitcoin_qt : qt/bitcoin-qt$(EXEEXT)
450 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(UIC) -o $@ $< || (echo "Error creating $@"; false)
453 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(DEFAULT_INCLUDES) $(QT_INCLUDES) $(MOC_DEFS) $< | \
454 $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
457 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(DEFAULT_INCLUDES) $(QT_INCLUDES) $(MOC_DEFS) $< | \
458 $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
463 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LRELEASE) -silent $< -qm $@