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_callback.cpp \
126 qt/moc_clientmodel.cpp \
127 qt/moc_coincontroldialog.cpp \
128 qt/moc_coincontroltreewidget.cpp \
129 qt/moc_csvmodelwriter.cpp \
130 qt/moc_editaddressdialog.cpp \
133 qt/moc_macdockiconhandler.cpp \
134 qt/moc_macnotificationhandler.cpp \
135 qt/moc_modaloverlay.cpp \
136 qt/moc_notificator.cpp \
137 qt/moc_openuridialog.cpp \
138 qt/moc_optionsdialog.cpp \
139 qt/moc_optionsmodel.cpp \
140 qt/moc_overviewpage.cpp \
141 qt/moc_peertablemodel.cpp \
142 qt/moc_paymentserver.cpp \
143 qt/moc_qvalidatedlineedit.cpp \
144 qt/moc_qvaluecombobox.cpp \
145 qt/moc_receivecoinsdialog.cpp \
146 qt/moc_receiverequestdialog.cpp \
147 qt/moc_recentrequeststablemodel.cpp \
148 qt/moc_rpcconsole.cpp \
149 qt/moc_sendcoinsdialog.cpp \
150 qt/moc_sendcoinsentry.cpp \
151 qt/moc_signverifymessagedialog.cpp \
152 qt/moc_splashscreen.cpp \
153 qt/moc_trafficgraphwidget.cpp \
154 qt/moc_transactiondesc.cpp \
155 qt/moc_transactiondescdialog.cpp \
156 qt/moc_transactionfilterproxy.cpp \
157 qt/moc_transactiontablemodel.cpp \
158 qt/moc_transactionview.cpp \
159 qt/moc_utilitydialog.cpp \
160 qt/moc_walletframe.cpp \
161 qt/moc_walletmodel.cpp \
162 qt/moc_walletview.cpp
165 qt/macdockiconhandler.mm \
166 qt/macnotificationhandler.mm
170 qt/bitcoinamountfield.moc \
173 qt/overviewpage.moc \
176 QT_QRC_CPP = qt/qrc_bitcoin.cpp
177 QT_QRC = qt/bitcoin.qrc
178 QT_QRC_LOCALE_CPP = qt/qrc_bitcoin_locale.cpp
179 QT_QRC_LOCALE = qt/bitcoin_locale.qrc
181 PROTOBUF_CC = qt/paymentrequest.pb.cc
182 PROTOBUF_H = qt/paymentrequest.pb.h
183 PROTOBUF_PROTO = qt/paymentrequest.proto
186 qt/addressbookpage.h \
187 qt/addresstablemodel.h \
188 qt/askpassphrasedialog.h \
190 qt/bitcoinaddressvalidator.h \
191 qt/bitcoinamountfield.h \
196 qt/coincontroldialog.h \
197 qt/coincontroltreewidget.h \
198 qt/csvmodelwriter.h \
199 qt/editaddressdialog.h \
203 qt/macdockiconhandler.h \
204 qt/macnotificationhandler.h \
212 qt/paymentrequestplus.h \
214 qt/peertablemodel.h \
216 qt/qvalidatedlineedit.h \
217 qt/qvaluecombobox.h \
218 qt/receivecoinsdialog.h \
219 qt/receiverequestdialog.h \
220 qt/recentrequeststablemodel.h \
222 qt/sendcoinsdialog.h \
223 qt/sendcoinsentry.h \
224 qt/signverifymessagedialog.h \
226 qt/trafficgraphwidget.h \
227 qt/transactiondesc.h \
228 qt/transactiondescdialog.h \
229 qt/transactionfilterproxy.h \
230 qt/transactionrecord.h \
231 qt/transactiontablemodel.h \
232 qt/transactionview.h \
236 qt/walletmodeltransaction.h \
238 qt/winshutdownmonitor.h
241 qt/res/icons/add.png \
242 qt/res/icons/address-book.png \
243 qt/res/icons/about.png \
244 qt/res/icons/about_qt.png \
245 qt/res/icons/bitcoin.ico \
246 qt/res/icons/bitcoin_testnet.ico \
247 qt/res/icons/bitcoin.png \
248 qt/res/icons/chevron.png \
249 qt/res/icons/clock1.png \
250 qt/res/icons/clock2.png \
251 qt/res/icons/clock3.png \
252 qt/res/icons/clock4.png \
253 qt/res/icons/clock5.png \
254 qt/res/icons/configure.png \
255 qt/res/icons/connect0.png \
256 qt/res/icons/connect1.png \
257 qt/res/icons/connect2.png \
258 qt/res/icons/connect3.png \
259 qt/res/icons/connect4.png \
260 qt/res/icons/debugwindow.png \
261 qt/res/icons/edit.png \
262 qt/res/icons/editcopy.png \
263 qt/res/icons/editpaste.png \
264 qt/res/icons/export.png \
265 qt/res/icons/eye.png \
266 qt/res/icons/eye_minus.png \
267 qt/res/icons/eye_plus.png \
268 qt/res/icons/filesave.png \
269 qt/res/icons/fontbigger.png \
270 qt/res/icons/fontsmaller.png \
271 qt/res/icons/hd_disabled.png \
272 qt/res/icons/hd_enabled.png \
273 qt/res/icons/history.png \
274 qt/res/icons/info.png \
275 qt/res/icons/key.png \
276 qt/res/icons/lock_closed.png \
277 qt/res/icons/lock_open.png \
278 qt/res/icons/network_disabled.png \
279 qt/res/icons/open.png \
280 qt/res/icons/overview.png \
281 qt/res/icons/quit.png \
282 qt/res/icons/receive.png \
283 qt/res/icons/remove.png \
284 qt/res/icons/send.png \
285 qt/res/icons/synced.png \
286 qt/res/icons/transaction0.png \
287 qt/res/icons/transaction2.png \
288 qt/res/icons/transaction_abandoned.png \
289 qt/res/icons/transaction_conflicted.png \
290 qt/res/icons/tx_inout.png \
291 qt/res/icons/tx_input.png \
292 qt/res/icons/tx_output.png \
293 qt/res/icons/tx_mined.png \
294 qt/res/icons/warning.png \
295 qt/res/icons/verify.png
297 BITCOIN_QT_BASE_CPP = \
298 qt/bantablemodel.cpp \
299 qt/bitcoinaddressvalidator.cpp \
300 qt/bitcoinamountfield.cpp \
302 qt/bitcoinunits.cpp \
304 qt/csvmodelwriter.cpp \
307 qt/modaloverlay.cpp \
308 qt/networkstyle.cpp \
310 qt/optionsdialog.cpp \
311 qt/optionsmodel.cpp \
312 qt/peertablemodel.cpp \
313 qt/platformstyle.cpp \
314 qt/qvalidatedlineedit.cpp \
315 qt/qvaluecombobox.cpp \
317 qt/splashscreen.cpp \
318 qt/trafficgraphwidget.cpp \
321 BITCOIN_QT_WINDOWS_CPP = qt/winshutdownmonitor.cpp
323 BITCOIN_QT_WALLET_CPP = \
324 qt/addressbookpage.cpp \
325 qt/addresstablemodel.cpp \
326 qt/askpassphrasedialog.cpp \
327 qt/coincontroldialog.cpp \
328 qt/coincontroltreewidget.cpp \
329 qt/editaddressdialog.cpp \
330 qt/openuridialog.cpp \
331 qt/overviewpage.cpp \
332 qt/paymentrequestplus.cpp \
333 qt/paymentserver.cpp \
334 qt/receivecoinsdialog.cpp \
335 qt/receiverequestdialog.cpp \
336 qt/recentrequeststablemodel.cpp \
337 qt/sendcoinsdialog.cpp \
338 qt/sendcoinsentry.cpp \
339 qt/signverifymessagedialog.cpp \
340 qt/transactiondesc.cpp \
341 qt/transactiondescdialog.cpp \
342 qt/transactionfilterproxy.cpp \
343 qt/transactionrecord.cpp \
344 qt/transactiontablemodel.cpp \
345 qt/transactionview.cpp \
348 qt/walletmodeltransaction.cpp \
351 BITCOIN_QT_CPP = $(BITCOIN_QT_BASE_CPP)
353 BITCOIN_QT_CPP += $(BITCOIN_QT_WINDOWS_CPP)
356 BITCOIN_QT_CPP += $(BITCOIN_QT_WALLET_CPP)
361 RES_MOVIES = $(wildcard $(srcdir)/qt/res/movies/spinner-*.png)
363 BITCOIN_RC = qt/res/bitcoin-qt-res.rc
365 BITCOIN_QT_INCLUDES = -I$(builddir)/qt -I$(srcdir)/qt -I$(srcdir)/qt/forms \
366 -I$(builddir)/qt/forms -DQT_NO_KEYWORDS
368 qt_libbitcoinqt_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
369 $(QT_INCLUDES) $(QT_DBUS_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
370 qt_libbitcoinqt_a_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
372 qt_libbitcoinqt_a_SOURCES = $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(QT_FORMS_UI) \
373 $(QT_QRC) $(QT_QRC_LOCALE) $(QT_TS) $(PROTOBUF_PROTO) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES)
375 nodist_qt_libbitcoinqt_a_SOURCES = $(QT_MOC_CPP) $(QT_MOC) $(PROTOBUF_CC) \
376 $(PROTOBUF_H) $(QT_QRC_CPP) $(QT_QRC_LOCALE_CPP)
378 # forms/foo.h -> forms/ui_foo.h
379 QT_FORMS_H=$(join $(dir $(QT_FORMS_UI)),$(addprefix ui_, $(notdir $(QT_FORMS_UI:.ui=.h))))
381 # Most files will depend on the forms and moc files as includes. Generate them
382 # before anything else.
383 $(QT_MOC): $(QT_FORMS_H)
384 $(qt_libbitcoinqt_a_OBJECTS) $(qt_bitcoin_qt_OBJECTS) : | $(QT_MOC)
386 #Generating these with a half-written protobuf header leads to wacky results.
387 #This makes sure it's done.
388 $(QT_MOC): $(PROTOBUF_H)
389 $(QT_MOC_CPP): $(PROTOBUF_H)
391 # bitcoin-qt binary #
392 qt_bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
393 $(QT_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
394 qt_bitcoin_qt_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
396 qt_bitcoin_qt_SOURCES = qt/bitcoin.cpp
398 qt_bitcoin_qt_SOURCES += $(BITCOIN_MM)
401 qt_bitcoin_qt_SOURCES += $(BITCOIN_RC)
403 qt_bitcoin_qt_LDADD = qt/libbitcoinqt.a $(LIBBITCOIN_SERVER)
405 qt_bitcoin_qt_LDADD += $(LIBBITCOIN_WALLET)
408 qt_bitcoin_qt_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
410 qt_bitcoin_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CONSENSUS) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \
411 $(BOOST_LIBS) $(QT_LIBS) $(QT_DBUS_LIBS) $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1) \
412 $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
413 qt_bitcoin_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
414 qt_bitcoin_qt_LIBTOOLFLAGS = --tag CXX
416 #locale/foo.ts -> locale/foo.qm
417 QT_QM=$(QT_TS:.ts=.qm)
421 $(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)
422 @test -n $(XGETTEXT) || echo "xgettext is required for updating translations"
423 $(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 $^
425 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)
426 @test -n $(LUPDATE) || echo "lupdate is required for updating translations"
427 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LUPDATE) $^ -locations relative -no-obsolete -ts $(srcdir)/qt/locale/bitcoin_en.ts
429 $(QT_QRC_LOCALE_CPP): $(QT_QRC_LOCALE) $(QT_QM)
431 @cp -f $< $(@D)/temp_$(<F)
432 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin_locale $(@D)/temp_$(<F) | \
433 $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
436 $(QT_QRC_CPP): $(QT_QRC) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES) $(PROTOBUF_H)
438 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin $< | \
439 $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
441 CLEAN_QT = $(nodist_qt_libbitcoinqt_a_SOURCES) $(QT_QM) $(QT_FORMS_H) qt/*.gcda qt/*.gcno
443 CLEANFILES += $(CLEAN_QT)
445 bitcoin_qt_clean: FORCE
446 rm -f $(CLEAN_QT) $(qt_libbitcoinqt_a_OBJECTS) $(qt_bitcoin_qt_OBJECTS) qt/bitcoin-qt$(EXEEXT) $(LIBBITCOINQT)
448 bitcoin_qt : qt/bitcoin-qt$(EXEEXT)
453 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(UIC) -o $@ $< || (echo "Error creating $@"; false)
456 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(DEFAULT_INCLUDES) $(QT_INCLUDES) $(MOC_DEFS) $< | \
457 $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
460 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(DEFAULT_INCLUDES) $(QT_INCLUDES) $(MOC_DEFS) $< | \
461 $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
466 $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LRELEASE) -silent $< -qm $@