Add UpdatedBlockTip signal to CMainSignals and CValidationInterface
[bitcoinplatinum.git] / src / Makefile.qt.include
blob8d60aca25c531b4068c258cf2574bb7c7d36d7f4
1 bin_PROGRAMS += qt/bitcoin-qt
2 EXTRA_LIBRARIES += qt/libbitcoinqt.a
4 # bitcoin qt core #
5 QT_TS = \
6   qt/locale/bitcoin_ach.ts \
7   qt/locale/bitcoin_af_ZA.ts \
8   qt/locale/bitcoin_ar.ts \
9   qt/locale/bitcoin_be_BY.ts \
10   qt/locale/bitcoin_bg.ts \
11   qt/locale/bitcoin_bs.ts \
12   qt/locale/bitcoin_ca_ES.ts \
13   qt/locale/bitcoin_ca.ts \
14   qt/locale/bitcoin_ca@valencia.ts \
15   qt/locale/bitcoin_cmn.ts \
16   qt/locale/bitcoin_cs.ts \
17   qt/locale/bitcoin_cy.ts \
18   qt/locale/bitcoin_da.ts \
19   qt/locale/bitcoin_de.ts \
20   qt/locale/bitcoin_el_GR.ts \
21   qt/locale/bitcoin_en.ts \
22   qt/locale/bitcoin_eo.ts \
23   qt/locale/bitcoin_es_CL.ts \
24   qt/locale/bitcoin_es_DO.ts \
25   qt/locale/bitcoin_es_MX.ts \
26   qt/locale/bitcoin_es.ts \
27   qt/locale/bitcoin_es_UY.ts \
28   qt/locale/bitcoin_et.ts \
29   qt/locale/bitcoin_eu_ES.ts \
30   qt/locale/bitcoin_fa_IR.ts \
31   qt/locale/bitcoin_fa.ts \
32   qt/locale/bitcoin_fi.ts \
33   qt/locale/bitcoin_fr_CA.ts \
34   qt/locale/bitcoin_fr.ts \
35   qt/locale/bitcoin_gl.ts \
36   qt/locale/bitcoin_gu_IN.ts \
37   qt/locale/bitcoin_he.ts \
38   qt/locale/bitcoin_hi_IN.ts \
39   qt/locale/bitcoin_hr.ts \
40   qt/locale/bitcoin_hu.ts \
41   qt/locale/bitcoin_id_ID.ts \
42   qt/locale/bitcoin_it.ts \
43   qt/locale/bitcoin_ja.ts \
44   qt/locale/bitcoin_ka.ts \
45   qt/locale/bitcoin_kk_KZ.ts \
46   qt/locale/bitcoin_ko_KR.ts \
47   qt/locale/bitcoin_ky.ts \
48   qt/locale/bitcoin_la.ts \
49   qt/locale/bitcoin_lt.ts \
50   qt/locale/bitcoin_lv_LV.ts \
51   qt/locale/bitcoin_mn.ts \
52   qt/locale/bitcoin_ms_MY.ts \
53   qt/locale/bitcoin_nb.ts \
54   qt/locale/bitcoin_nl.ts \
55   qt/locale/bitcoin_pam.ts \
56   qt/locale/bitcoin_pl.ts \
57   qt/locale/bitcoin_pt_BR.ts \
58   qt/locale/bitcoin_pt_PT.ts \
59   qt/locale/bitcoin_ro_RO.ts \
60   qt/locale/bitcoin_ru.ts \
61   qt/locale/bitcoin_sah.ts \
62   qt/locale/bitcoin_sk.ts \
63   qt/locale/bitcoin_sl_SI.ts \
64   qt/locale/bitcoin_sq.ts \
65   qt/locale/bitcoin_sr.ts \
66   qt/locale/bitcoin_sv.ts \
67   qt/locale/bitcoin_th_TH.ts \
68   qt/locale/bitcoin_tr.ts \
69   qt/locale/bitcoin_uk.ts \
70   qt/locale/bitcoin_ur_PK.ts \
71   qt/locale/bitcoin_uz@Cyrl.ts \
72   qt/locale/bitcoin_vi.ts \
73   qt/locale/bitcoin_vi_VN.ts \
74   qt/locale/bitcoin_zh_CN.ts \
75   qt/locale/bitcoin_zh_HK.ts \
76   qt/locale/bitcoin_zh_TW.ts
78 QT_FORMS_UI = \
79   qt/forms/addressbookpage.ui \
80   qt/forms/askpassphrasedialog.ui \
81   qt/forms/coincontroldialog.ui \
82   qt/forms/editaddressdialog.ui \
83   qt/forms/helpmessagedialog.ui \
84   qt/forms/intro.ui \
85   qt/forms/openuridialog.ui \
86   qt/forms/optionsdialog.ui \
87   qt/forms/overviewpage.ui \
88   qt/forms/receivecoinsdialog.ui \
89   qt/forms/receiverequestdialog.ui \
90   qt/forms/rpcconsole.ui \
91   qt/forms/sendcoinsdialog.ui \
92   qt/forms/sendcoinsentry.ui \
93   qt/forms/signverifymessagedialog.ui \
94   qt/forms/transactiondescdialog.ui
96 QT_MOC_CPP = \
97   qt/moc_addressbookpage.cpp \
98   qt/moc_addresstablemodel.cpp \
99   qt/moc_askpassphrasedialog.cpp \
100   qt/moc_bitcoinaddressvalidator.cpp \
101   qt/moc_bitcoinamountfield.cpp \
102   qt/moc_bitcoingui.cpp \
103   qt/moc_bitcoinunits.cpp \
104   qt/moc_clientmodel.cpp \
105   qt/moc_coincontroldialog.cpp \
106   qt/moc_coincontroltreewidget.cpp \
107   qt/moc_csvmodelwriter.cpp \
108   qt/moc_editaddressdialog.cpp \
109   qt/moc_guiutil.cpp \
110   qt/moc_intro.cpp \
111   qt/moc_macdockiconhandler.cpp \
112   qt/moc_macnotificationhandler.cpp \
113   qt/moc_notificator.cpp \
114   qt/moc_openuridialog.cpp \
115   qt/moc_optionsdialog.cpp \
116   qt/moc_optionsmodel.cpp \
117   qt/moc_overviewpage.cpp \
118   qt/moc_peertablemodel.cpp \
119   qt/moc_paymentserver.cpp \
120   qt/moc_qvalidatedlineedit.cpp \
121   qt/moc_qvaluecombobox.cpp \
122   qt/moc_receivecoinsdialog.cpp \
123   qt/moc_receiverequestdialog.cpp \
124   qt/moc_recentrequeststablemodel.cpp \
125   qt/moc_rpcconsole.cpp \
126   qt/moc_sendcoinsdialog.cpp \
127   qt/moc_sendcoinsentry.cpp \
128   qt/moc_signverifymessagedialog.cpp \
129   qt/moc_splashscreen.cpp \
130   qt/moc_trafficgraphwidget.cpp \
131   qt/moc_transactiondesc.cpp \
132   qt/moc_transactiondescdialog.cpp \
133   qt/moc_transactionfilterproxy.cpp \
134   qt/moc_transactiontablemodel.cpp \
135   qt/moc_transactionview.cpp \
136   qt/moc_utilitydialog.cpp \
137   qt/moc_walletframe.cpp \
138   qt/moc_walletmodel.cpp \
139   qt/moc_walletview.cpp
141 BITCOIN_MM = \
142   qt/macdockiconhandler.mm \
143   qt/macnotificationhandler.mm
145 QT_MOC = \
146   qt/bitcoin.moc \
147   qt/bitcoinamountfield.moc \
148   qt/intro.moc \
149   qt/overviewpage.moc \
150   qt/rpcconsole.moc
152 QT_QRC_CPP = qt/qrc_bitcoin.cpp
153 QT_QRC = qt/bitcoin.qrc
154 QT_QRC_LOCALE_CPP = qt/qrc_bitcoin_locale.cpp
155 QT_QRC_LOCALE = qt/bitcoin_locale.qrc
157 PROTOBUF_CC = qt/paymentrequest.pb.cc
158 PROTOBUF_H = qt/paymentrequest.pb.h
159 PROTOBUF_PROTO = qt/paymentrequest.proto
161 BITCOIN_QT_H = \
162   qt/addressbookpage.h \
163   qt/addresstablemodel.h \
164   qt/askpassphrasedialog.h \
165   qt/bitcoinaddressvalidator.h \
166   qt/bitcoinamountfield.h \
167   qt/bitcoingui.h \
168   qt/bitcoinunits.h \
169   qt/clientmodel.h \
170   qt/coincontroldialog.h \
171   qt/coincontroltreewidget.h \
172   qt/csvmodelwriter.h \
173   qt/editaddressdialog.h \
174   qt/guiconstants.h \
175   qt/guiutil.h \
176   qt/intro.h \
177   qt/macdockiconhandler.h \
178   qt/macnotificationhandler.h \
179   qt/networkstyle.h \
180   qt/notificator.h \
181   qt/openuridialog.h \
182   qt/optionsdialog.h \
183   qt/optionsmodel.h \
184   qt/overviewpage.h \
185   qt/paymentrequestplus.h \
186   qt/paymentserver.h \
187   qt/peertablemodel.h \
188   qt/platformstyle.h \
189   qt/qvalidatedlineedit.h \
190   qt/qvaluecombobox.h \
191   qt/receivecoinsdialog.h \
192   qt/receiverequestdialog.h \
193   qt/recentrequeststablemodel.h \
194   qt/rpcconsole.h \
195   qt/sendcoinsdialog.h \
196   qt/sendcoinsentry.h \
197   qt/signverifymessagedialog.h \
198   qt/splashscreen.h \
199   qt/trafficgraphwidget.h \
200   qt/transactiondesc.h \
201   qt/transactiondescdialog.h \
202   qt/transactionfilterproxy.h \
203   qt/transactionrecord.h \
204   qt/transactiontablemodel.h \
205   qt/transactionview.h \
206   qt/utilitydialog.h \
207   qt/walletframe.h \
208   qt/walletmodel.h \
209   qt/walletmodeltransaction.h \
210   qt/walletview.h \
211   qt/winshutdownmonitor.h
213 RES_ICONS = \
214   qt/res/icons/add.png \
215   qt/res/icons/address-book.png \
216   qt/res/icons/about.png \
217   qt/res/icons/about_qt.png \
218   qt/res/icons/bitcoin.ico \
219   qt/res/icons/bitcoin.png \
220   qt/res/icons/clock1.png \
221   qt/res/icons/clock2.png \
222   qt/res/icons/clock3.png \
223   qt/res/icons/clock4.png \
224   qt/res/icons/clock5.png \
225   qt/res/icons/configure.png \
226   qt/res/icons/connect0.png \
227   qt/res/icons/connect1.png \
228   qt/res/icons/connect2.png \
229   qt/res/icons/connect3.png \
230   qt/res/icons/connect4.png \
231   qt/res/icons/debugwindow.png \
232   qt/res/icons/edit.png \
233   qt/res/icons/editcopy.png \
234   qt/res/icons/editpaste.png \
235   qt/res/icons/export.png \
236   qt/res/icons/eye.png \
237   qt/res/icons/eye_minus.png \
238   qt/res/icons/eye_plus.png \
239   qt/res/icons/filesave.png \
240   qt/res/icons/history.png \
241   qt/res/icons/info.png \
242   qt/res/icons/key.png \
243   qt/res/icons/lock_closed.png \
244   qt/res/icons/lock_open.png \
245   qt/res/icons/open.png \
246   qt/res/icons/overview.png \
247   qt/res/icons/quit.png \
248   qt/res/icons/receive.png \
249   qt/res/icons/remove.png \
250   qt/res/icons/send.png \
251   qt/res/icons/synced.png \
252   qt/res/icons/transaction0.png \
253   qt/res/icons/transaction2.png \
254   qt/res/icons/transaction_conflicted.png \
255   qt/res/icons/tx_inout.png \
256   qt/res/icons/tx_input.png \
257   qt/res/icons/tx_output.png \
258   qt/res/icons/tx_mined.png \
259   qt/res/icons/warning.png \
260   qt/res/icons/verify.png
262 BITCOIN_QT_CPP = \
263   qt/bitcoinaddressvalidator.cpp \
264   qt/bitcoinamountfield.cpp \
265   qt/bitcoingui.cpp \
266   qt/bitcoinunits.cpp \
267   qt/clientmodel.cpp \
268   qt/csvmodelwriter.cpp \
269   qt/guiutil.cpp \
270   qt/intro.cpp \
271   qt/networkstyle.cpp \
272   qt/notificator.cpp \
273   qt/optionsdialog.cpp \
274   qt/optionsmodel.cpp \
275   qt/peertablemodel.cpp \
276   qt/platformstyle.cpp \
277   qt/qvalidatedlineedit.cpp \
278   qt/qvaluecombobox.cpp \
279   qt/rpcconsole.cpp \
280   qt/splashscreen.cpp \
281   qt/trafficgraphwidget.cpp \
282   qt/utilitydialog.cpp
284 if TARGET_WINDOWS
285 BITCOIN_QT_CPP += qt/winshutdownmonitor.cpp
286 endif
288 if ENABLE_WALLET
289 BITCOIN_QT_CPP += \
290   qt/addressbookpage.cpp \
291   qt/addresstablemodel.cpp \
292   qt/askpassphrasedialog.cpp \
293   qt/coincontroldialog.cpp \
294   qt/coincontroltreewidget.cpp \
295   qt/editaddressdialog.cpp \
296   qt/openuridialog.cpp \
297   qt/overviewpage.cpp \
298   qt/paymentrequestplus.cpp \
299   qt/paymentserver.cpp \
300   qt/receivecoinsdialog.cpp \
301   qt/receiverequestdialog.cpp \
302   qt/recentrequeststablemodel.cpp \
303   qt/sendcoinsdialog.cpp \
304   qt/sendcoinsentry.cpp \
305   qt/signverifymessagedialog.cpp \
306   qt/transactiondesc.cpp \
307   qt/transactiondescdialog.cpp \
308   qt/transactionfilterproxy.cpp \
309   qt/transactionrecord.cpp \
310   qt/transactiontablemodel.cpp \
311   qt/transactionview.cpp \
312   qt/walletframe.cpp \
313   qt/walletmodel.cpp \
314   qt/walletmodeltransaction.cpp \
315   qt/walletview.cpp
316 endif
318 RES_IMAGES = 
320 RES_MOVIES = $(wildcard qt/res/movies/spinner-*.png)
322 BITCOIN_RC = qt/res/bitcoin-qt-res.rc
324 BITCOIN_QT_INCLUDES = -I$(builddir)/qt -I$(srcdir)/qt -I$(srcdir)/qt/forms \
325   -I$(builddir)/qt/forms -DQT_NO_KEYWORDS
327 qt_libbitcoinqt_a_CPPFLAGS = $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
328   $(QT_INCLUDES) $(QT_DBUS_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
330 qt_libbitcoinqt_a_SOURCES = $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(QT_FORMS_UI) \
331   $(QT_QRC) $(QT_QRC_LOCALE) $(QT_TS) $(PROTOBUF_PROTO) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES)
333 nodist_qt_libbitcoinqt_a_SOURCES = $(QT_MOC_CPP) $(QT_MOC) $(PROTOBUF_CC) \
334   $(PROTOBUF_H) $(QT_QRC_CPP) $(QT_QRC_LOCALE_CPP)
336 # forms/foo.h -> forms/ui_foo.h
337 QT_FORMS_H=$(join $(dir $(QT_FORMS_UI)),$(addprefix ui_, $(notdir $(QT_FORMS_UI:.ui=.h))))
339 # Most files will depend on the forms and moc files as includes. Generate them
340 # before anything else.
341 $(QT_MOC): $(QT_FORMS_H)
342 $(qt_libbitcoinqt_a_OBJECTS) $(qt_bitcoin_qt_OBJECTS) : | $(QT_MOC)
344 #Generating these with a half-written protobuf header leads to wacky results.
345 #This makes sure it's done.
346 $(QT_MOC): $(PROTOBUF_H)
347 $(QT_MOC_CPP): $(PROTOBUF_H)
349 # bitcoin-qt binary #
350 qt_bitcoin_qt_CPPFLAGS = $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
351   $(QT_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
353 qt_bitcoin_qt_SOURCES = qt/bitcoin.cpp
354 if TARGET_DARWIN
355   qt_bitcoin_qt_SOURCES += $(BITCOIN_MM)
356 endif
357 if TARGET_WINDOWS
358   qt_bitcoin_qt_SOURCES += $(BITCOIN_RC)
359 endif
360 qt_bitcoin_qt_LDADD = qt/libbitcoinqt.a $(LIBBITCOIN_SERVER)
361 if ENABLE_WALLET
362 qt_bitcoin_qt_LDADD += $(LIBBITCOIN_WALLET)
363 endif
364 qt_bitcoin_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBBITCOIN_UNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \
365   $(BOOST_LIBS) $(QT_LIBS) $(QT_DBUS_LIBS) $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1) \
366   $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
367 qt_bitcoin_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
368 qt_bitcoin_qt_LIBTOOLFLAGS = --tag CXX
370 #locale/foo.ts -> locale/foo.qm
371 QT_QM=$(QT_TS:.ts=.qm)
373 SECONDARY: $(QT_QM)
375 qt/bitcoinstrings.cpp: $(libbitcoin_server_a_SOURCES) $(libbitcoin_wallet_a_SOURCES)
376         @test -n $(XGETTEXT) || echo "xgettext is required for updating translations"
377         $(AM_V_GEN) cd $(srcdir); XGETTEXT=$(XGETTEXT) ../share/qt/extract_strings_qt.py $^
379 translate: qt/bitcoinstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(BITCOIN_MM)
380         @test -n $(LUPDATE) || echo "lupdate is required for updating translations"
381         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LUPDATE) $^ -locations relative -no-obsolete -ts qt/locale/bitcoin_en.ts
383 $(QT_QRC_LOCALE_CPP): $(QT_QRC_LOCALE) $(QT_QM)
384         @test -f $(RCC)
385         @test -f $(@D)/$(<F) || cp -f $< $(@D)
386         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin_locale $(@D)/$(<F) | \
387           $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
389 $(QT_QRC_CPP): $(QT_QRC) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES) $(PROTOBUF_H)
390         @test -f $(RCC)
391         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin $< | \
392           $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
394 CLEAN_QT = $(nodist_qt_libbitcoinqt_a_SOURCES) $(QT_QM) $(QT_FORMS_H) qt/*.gcda qt/*.gcno
396 CLEANFILES += $(CLEAN_QT)
398 bitcoin_qt_clean: FORCE
399         rm -f $(CLEAN_QT) $(qt_libbitcoinqt_a_OBJECTS) $(qt_bitcoin_qt_OBJECTS) qt/bitcoin-qt$(EXEEXT) $(LIBBITCOINQT)
401 bitcoin_qt : qt/bitcoin-qt$(EXEEXT)
403 ui_%.h: %.ui
404         @test -f $(UIC)
405         @$(MKDIR_P) $(@D)
406         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(UIC) -o $@ $< || (echo "Error creating $@"; false)
408 %.moc: %.cpp
409         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) $< | \
410           $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
412 moc_%.cpp: %.h
413         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) $< | \
414           $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
416 %.qm: %.ts
417         @test -f $(LRELEASE)
418         @$(MKDIR_P) $(@D)
419         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LRELEASE) -silent $< -qm $@