[doc][trivial] Remove source forge from Debian watch.
[bitcoinplatinum.git] / src / Makefile.qt.include
blobe62003a513bad708db82000dce703a7be122be17
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/debugwindow.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_bantablemodel.cpp \
101   qt/moc_bitcoinaddressvalidator.cpp \
102   qt/moc_bitcoinamountfield.cpp \
103   qt/moc_bitcoingui.cpp \
104   qt/moc_bitcoinunits.cpp \
105   qt/moc_clientmodel.cpp \
106   qt/moc_coincontroldialog.cpp \
107   qt/moc_coincontroltreewidget.cpp \
108   qt/moc_csvmodelwriter.cpp \
109   qt/moc_editaddressdialog.cpp \
110   qt/moc_guiutil.cpp \
111   qt/moc_intro.cpp \
112   qt/moc_macdockiconhandler.cpp \
113   qt/moc_macnotificationhandler.cpp \
114   qt/moc_notificator.cpp \
115   qt/moc_openuridialog.cpp \
116   qt/moc_optionsdialog.cpp \
117   qt/moc_optionsmodel.cpp \
118   qt/moc_overviewpage.cpp \
119   qt/moc_peertablemodel.cpp \
120   qt/moc_paymentserver.cpp \
121   qt/moc_qvalidatedlineedit.cpp \
122   qt/moc_qvaluecombobox.cpp \
123   qt/moc_receivecoinsdialog.cpp \
124   qt/moc_receiverequestdialog.cpp \
125   qt/moc_recentrequeststablemodel.cpp \
126   qt/moc_rpcconsole.cpp \
127   qt/moc_sendcoinsdialog.cpp \
128   qt/moc_sendcoinsentry.cpp \
129   qt/moc_signverifymessagedialog.cpp \
130   qt/moc_splashscreen.cpp \
131   qt/moc_trafficgraphwidget.cpp \
132   qt/moc_transactiondesc.cpp \
133   qt/moc_transactiondescdialog.cpp \
134   qt/moc_transactionfilterproxy.cpp \
135   qt/moc_transactiontablemodel.cpp \
136   qt/moc_transactionview.cpp \
137   qt/moc_utilitydialog.cpp \
138   qt/moc_walletframe.cpp \
139   qt/moc_walletmodel.cpp \
140   qt/moc_walletview.cpp
142 BITCOIN_MM = \
143   qt/macdockiconhandler.mm \
144   qt/macnotificationhandler.mm
146 QT_MOC = \
147   qt/bitcoin.moc \
148   qt/bitcoinamountfield.moc \
149   qt/intro.moc \
150   qt/overviewpage.moc \
151   qt/rpcconsole.moc
153 QT_QRC_CPP = qt/qrc_bitcoin.cpp
154 QT_QRC = qt/bitcoin.qrc
155 QT_QRC_LOCALE_CPP = qt/qrc_bitcoin_locale.cpp
156 QT_QRC_LOCALE = qt/bitcoin_locale.qrc
158 PROTOBUF_CC = qt/paymentrequest.pb.cc
159 PROTOBUF_H = qt/paymentrequest.pb.h
160 PROTOBUF_PROTO = qt/paymentrequest.proto
162 BITCOIN_QT_H = \
163   qt/addressbookpage.h \
164   qt/addresstablemodel.h \
165   qt/askpassphrasedialog.h \
166   qt/bantablemodel.h \
167   qt/bitcoinaddressvalidator.h \
168   qt/bitcoinamountfield.h \
169   qt/bitcoingui.h \
170   qt/bitcoinunits.h \
171   qt/clientmodel.h \
172   qt/coincontroldialog.h \
173   qt/coincontroltreewidget.h \
174   qt/csvmodelwriter.h \
175   qt/editaddressdialog.h \
176   qt/guiconstants.h \
177   qt/guiutil.h \
178   qt/intro.h \
179   qt/macdockiconhandler.h \
180   qt/macnotificationhandler.h \
181   qt/networkstyle.h \
182   qt/notificator.h \
183   qt/openuridialog.h \
184   qt/optionsdialog.h \
185   qt/optionsmodel.h \
186   qt/overviewpage.h \
187   qt/paymentrequestplus.h \
188   qt/paymentserver.h \
189   qt/peertablemodel.h \
190   qt/platformstyle.h \
191   qt/qvalidatedlineedit.h \
192   qt/qvaluecombobox.h \
193   qt/receivecoinsdialog.h \
194   qt/receiverequestdialog.h \
195   qt/recentrequeststablemodel.h \
196   qt/rpcconsole.h \
197   qt/sendcoinsdialog.h \
198   qt/sendcoinsentry.h \
199   qt/signverifymessagedialog.h \
200   qt/splashscreen.h \
201   qt/trafficgraphwidget.h \
202   qt/transactiondesc.h \
203   qt/transactiondescdialog.h \
204   qt/transactionfilterproxy.h \
205   qt/transactionrecord.h \
206   qt/transactiontablemodel.h \
207   qt/transactionview.h \
208   qt/utilitydialog.h \
209   qt/walletframe.h \
210   qt/walletmodel.h \
211   qt/walletmodeltransaction.h \
212   qt/walletview.h \
213   qt/winshutdownmonitor.h
215 RES_ICONS = \
216   qt/res/icons/add.png \
217   qt/res/icons/address-book.png \
218   qt/res/icons/about.png \
219   qt/res/icons/about_qt.png \
220   qt/res/icons/bitcoin.ico \
221   qt/res/icons/bitcoin.png \
222   qt/res/icons/clock1.png \
223   qt/res/icons/clock2.png \
224   qt/res/icons/clock3.png \
225   qt/res/icons/clock4.png \
226   qt/res/icons/clock5.png \
227   qt/res/icons/configure.png \
228   qt/res/icons/connect0.png \
229   qt/res/icons/connect1.png \
230   qt/res/icons/connect2.png \
231   qt/res/icons/connect3.png \
232   qt/res/icons/connect4.png \
233   qt/res/icons/debugwindow.png \
234   qt/res/icons/edit.png \
235   qt/res/icons/editcopy.png \
236   qt/res/icons/editpaste.png \
237   qt/res/icons/export.png \
238   qt/res/icons/eye.png \
239   qt/res/icons/eye_minus.png \
240   qt/res/icons/eye_plus.png \
241   qt/res/icons/filesave.png \
242   qt/res/icons/history.png \
243   qt/res/icons/info.png \
244   qt/res/icons/key.png \
245   qt/res/icons/lock_closed.png \
246   qt/res/icons/lock_open.png \
247   qt/res/icons/open.png \
248   qt/res/icons/overview.png \
249   qt/res/icons/quit.png \
250   qt/res/icons/receive.png \
251   qt/res/icons/remove.png \
252   qt/res/icons/send.png \
253   qt/res/icons/synced.png \
254   qt/res/icons/transaction0.png \
255   qt/res/icons/transaction2.png \
256   qt/res/icons/transaction_conflicted.png \
257   qt/res/icons/tx_inout.png \
258   qt/res/icons/tx_input.png \
259   qt/res/icons/tx_output.png \
260   qt/res/icons/tx_mined.png \
261   qt/res/icons/warning.png \
262   qt/res/icons/verify.png
264 BITCOIN_QT_CPP = \
265   qt/bantablemodel.cpp \
266   qt/bitcoinaddressvalidator.cpp \
267   qt/bitcoinamountfield.cpp \
268   qt/bitcoingui.cpp \
269   qt/bitcoinunits.cpp \
270   qt/clientmodel.cpp \
271   qt/csvmodelwriter.cpp \
272   qt/guiutil.cpp \
273   qt/intro.cpp \
274   qt/networkstyle.cpp \
275   qt/notificator.cpp \
276   qt/optionsdialog.cpp \
277   qt/optionsmodel.cpp \
278   qt/peertablemodel.cpp \
279   qt/platformstyle.cpp \
280   qt/qvalidatedlineedit.cpp \
281   qt/qvaluecombobox.cpp \
282   qt/rpcconsole.cpp \
283   qt/splashscreen.cpp \
284   qt/trafficgraphwidget.cpp \
285   qt/utilitydialog.cpp
287 if TARGET_WINDOWS
288 BITCOIN_QT_CPP += qt/winshutdownmonitor.cpp
289 endif
291 if ENABLE_WALLET
292 BITCOIN_QT_CPP += \
293   qt/addressbookpage.cpp \
294   qt/addresstablemodel.cpp \
295   qt/askpassphrasedialog.cpp \
296   qt/coincontroldialog.cpp \
297   qt/coincontroltreewidget.cpp \
298   qt/editaddressdialog.cpp \
299   qt/openuridialog.cpp \
300   qt/overviewpage.cpp \
301   qt/paymentrequestplus.cpp \
302   qt/paymentserver.cpp \
303   qt/receivecoinsdialog.cpp \
304   qt/receiverequestdialog.cpp \
305   qt/recentrequeststablemodel.cpp \
306   qt/sendcoinsdialog.cpp \
307   qt/sendcoinsentry.cpp \
308   qt/signverifymessagedialog.cpp \
309   qt/transactiondesc.cpp \
310   qt/transactiondescdialog.cpp \
311   qt/transactionfilterproxy.cpp \
312   qt/transactionrecord.cpp \
313   qt/transactiontablemodel.cpp \
314   qt/transactionview.cpp \
315   qt/walletframe.cpp \
316   qt/walletmodel.cpp \
317   qt/walletmodeltransaction.cpp \
318   qt/walletview.cpp
319 endif
321 RES_IMAGES = 
323 RES_MOVIES = $(wildcard qt/res/movies/spinner-*.png)
325 BITCOIN_RC = qt/res/bitcoin-qt-res.rc
327 BITCOIN_QT_INCLUDES = -I$(builddir)/qt -I$(srcdir)/qt -I$(srcdir)/qt/forms \
328   -I$(builddir)/qt/forms -DQT_NO_KEYWORDS
330 qt_libbitcoinqt_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
331   $(QT_INCLUDES) $(QT_DBUS_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
332 qt_libbitcoinqt_a_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
334 qt_libbitcoinqt_a_SOURCES = $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(QT_FORMS_UI) \
335   $(QT_QRC) $(QT_QRC_LOCALE) $(QT_TS) $(PROTOBUF_PROTO) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES)
337 nodist_qt_libbitcoinqt_a_SOURCES = $(QT_MOC_CPP) $(QT_MOC) $(PROTOBUF_CC) \
338   $(PROTOBUF_H) $(QT_QRC_CPP) $(QT_QRC_LOCALE_CPP)
340 # forms/foo.h -> forms/ui_foo.h
341 QT_FORMS_H=$(join $(dir $(QT_FORMS_UI)),$(addprefix ui_, $(notdir $(QT_FORMS_UI:.ui=.h))))
343 # Most files will depend on the forms and moc files as includes. Generate them
344 # before anything else.
345 $(QT_MOC): $(QT_FORMS_H)
346 $(qt_libbitcoinqt_a_OBJECTS) $(qt_bitcoin_qt_OBJECTS) : | $(QT_MOC)
348 #Generating these with a half-written protobuf header leads to wacky results.
349 #This makes sure it's done.
350 $(QT_MOC): $(PROTOBUF_H)
351 $(QT_MOC_CPP): $(PROTOBUF_H)
353 # bitcoin-qt binary #
354 qt_bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
355   $(QT_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
356 qt_bitcoin_qt_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
358 qt_bitcoin_qt_SOURCES = qt/bitcoin.cpp
359 if TARGET_DARWIN
360   qt_bitcoin_qt_SOURCES += $(BITCOIN_MM)
361 endif
362 if TARGET_WINDOWS
363   qt_bitcoin_qt_SOURCES += $(BITCOIN_RC)
364 endif
365 qt_bitcoin_qt_LDADD = qt/libbitcoinqt.a $(LIBBITCOIN_SERVER)
366 if ENABLE_WALLET
367 qt_bitcoin_qt_LDADD += $(LIBBITCOIN_WALLET)
368 endif
369 if ENABLE_ZMQ
370 qt_bitcoin_qt_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
371 endif
372 qt_bitcoin_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \
373   $(BOOST_LIBS) $(QT_LIBS) $(QT_DBUS_LIBS) $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1) \
374   $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
375 qt_bitcoin_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
376 qt_bitcoin_qt_LIBTOOLFLAGS = --tag CXX
378 #locale/foo.ts -> locale/foo.qm
379 QT_QM=$(QT_TS:.ts=.qm)
381 SECONDARY: $(QT_QM)
383 qt/bitcoinstrings.cpp: $(libbitcoin_server_a_SOURCES) $(libbitcoin_wallet_a_SOURCES)
384         @test -n $(XGETTEXT) || echo "xgettext is required for updating translations"
385         $(AM_V_GEN) cd $(srcdir); XGETTEXT=$(XGETTEXT) ../share/qt/extract_strings_qt.py $^
387 translate: qt/bitcoinstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(BITCOIN_MM)
388         @test -n $(LUPDATE) || echo "lupdate is required for updating translations"
389         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LUPDATE) $^ -locations relative -no-obsolete -ts qt/locale/bitcoin_en.ts
391 $(QT_QRC_LOCALE_CPP): $(QT_QRC_LOCALE) $(QT_QM)
392         @test -f $(RCC)
393         @test -f $(@D)/$(<F) || cp -f $< $(@D)
394         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin_locale $(@D)/$(<F) | \
395           $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
397 $(QT_QRC_CPP): $(QT_QRC) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES) $(PROTOBUF_H)
398         @test -f $(RCC)
399         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin $< | \
400           $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
402 CLEAN_QT = $(nodist_qt_libbitcoinqt_a_SOURCES) $(QT_QM) $(QT_FORMS_H) qt/*.gcda qt/*.gcno
404 CLEANFILES += $(CLEAN_QT)
406 bitcoin_qt_clean: FORCE
407         rm -f $(CLEAN_QT) $(qt_libbitcoinqt_a_OBJECTS) $(qt_bitcoin_qt_OBJECTS) qt/bitcoin-qt$(EXEEXT) $(LIBBITCOINQT)
409 bitcoin_qt : qt/bitcoin-qt$(EXEEXT)
411 ui_%.h: %.ui
412         @test -f $(UIC)
413         @$(MKDIR_P) $(@D)
414         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(UIC) -o $@ $< || (echo "Error creating $@"; false)
416 %.moc: %.cpp
417         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) $< | \
418           $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
420 moc_%.cpp: %.h
421         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) $< | \
422           $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
424 %.qm: %.ts
425         @test -f $(LRELEASE)
426         @$(MKDIR_P) $(@D)
427         $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LRELEASE) -silent $< -qm $@