2014-05-28 10:38:41 -07:00
|
|
|
bin_PROGRAMS += qt/bitcoin-qt
|
2015-01-05 12:34:00 -08:00
|
|
|
EXTRA_LIBRARIES += qt/libbitcoinqt.a
|
2014-05-28 10:38:41 -07:00
|
|
|
|
|
|
|
# bitcoin qt core #
|
|
|
|
QT_TS = \
|
|
|
|
qt/locale/bitcoin_ach.ts \
|
|
|
|
qt/locale/bitcoin_af_ZA.ts \
|
|
|
|
qt/locale/bitcoin_ar.ts \
|
|
|
|
qt/locale/bitcoin_be_BY.ts \
|
|
|
|
qt/locale/bitcoin_bg.ts \
|
|
|
|
qt/locale/bitcoin_bs.ts \
|
|
|
|
qt/locale/bitcoin_ca_ES.ts \
|
|
|
|
qt/locale/bitcoin_ca.ts \
|
|
|
|
qt/locale/bitcoin_ca@valencia.ts \
|
|
|
|
qt/locale/bitcoin_cmn.ts \
|
|
|
|
qt/locale/bitcoin_cs.ts \
|
|
|
|
qt/locale/bitcoin_cy.ts \
|
|
|
|
qt/locale/bitcoin_da.ts \
|
|
|
|
qt/locale/bitcoin_de.ts \
|
|
|
|
qt/locale/bitcoin_el_GR.ts \
|
|
|
|
qt/locale/bitcoin_en.ts \
|
|
|
|
qt/locale/bitcoin_eo.ts \
|
|
|
|
qt/locale/bitcoin_es_CL.ts \
|
|
|
|
qt/locale/bitcoin_es_DO.ts \
|
|
|
|
qt/locale/bitcoin_es_MX.ts \
|
|
|
|
qt/locale/bitcoin_es.ts \
|
|
|
|
qt/locale/bitcoin_es_UY.ts \
|
|
|
|
qt/locale/bitcoin_et.ts \
|
|
|
|
qt/locale/bitcoin_eu_ES.ts \
|
|
|
|
qt/locale/bitcoin_fa_IR.ts \
|
|
|
|
qt/locale/bitcoin_fa.ts \
|
|
|
|
qt/locale/bitcoin_fi.ts \
|
|
|
|
qt/locale/bitcoin_fr_CA.ts \
|
|
|
|
qt/locale/bitcoin_fr.ts \
|
|
|
|
qt/locale/bitcoin_gl.ts \
|
|
|
|
qt/locale/bitcoin_gu_IN.ts \
|
|
|
|
qt/locale/bitcoin_he.ts \
|
|
|
|
qt/locale/bitcoin_hi_IN.ts \
|
|
|
|
qt/locale/bitcoin_hr.ts \
|
|
|
|
qt/locale/bitcoin_hu.ts \
|
|
|
|
qt/locale/bitcoin_id_ID.ts \
|
|
|
|
qt/locale/bitcoin_it.ts \
|
|
|
|
qt/locale/bitcoin_ja.ts \
|
|
|
|
qt/locale/bitcoin_ka.ts \
|
|
|
|
qt/locale/bitcoin_kk_KZ.ts \
|
|
|
|
qt/locale/bitcoin_ko_KR.ts \
|
|
|
|
qt/locale/bitcoin_ky.ts \
|
|
|
|
qt/locale/bitcoin_la.ts \
|
|
|
|
qt/locale/bitcoin_lt.ts \
|
|
|
|
qt/locale/bitcoin_lv_LV.ts \
|
|
|
|
qt/locale/bitcoin_mn.ts \
|
|
|
|
qt/locale/bitcoin_ms_MY.ts \
|
|
|
|
qt/locale/bitcoin_nb.ts \
|
|
|
|
qt/locale/bitcoin_nl.ts \
|
|
|
|
qt/locale/bitcoin_pam.ts \
|
|
|
|
qt/locale/bitcoin_pl.ts \
|
|
|
|
qt/locale/bitcoin_pt_BR.ts \
|
|
|
|
qt/locale/bitcoin_pt_PT.ts \
|
|
|
|
qt/locale/bitcoin_ro_RO.ts \
|
|
|
|
qt/locale/bitcoin_ru.ts \
|
|
|
|
qt/locale/bitcoin_sah.ts \
|
|
|
|
qt/locale/bitcoin_sk.ts \
|
|
|
|
qt/locale/bitcoin_sl_SI.ts \
|
|
|
|
qt/locale/bitcoin_sq.ts \
|
|
|
|
qt/locale/bitcoin_sr.ts \
|
|
|
|
qt/locale/bitcoin_sv.ts \
|
|
|
|
qt/locale/bitcoin_th_TH.ts \
|
|
|
|
qt/locale/bitcoin_tr.ts \
|
|
|
|
qt/locale/bitcoin_uk.ts \
|
|
|
|
qt/locale/bitcoin_ur_PK.ts \
|
|
|
|
qt/locale/bitcoin_uz@Cyrl.ts \
|
|
|
|
qt/locale/bitcoin_vi.ts \
|
|
|
|
qt/locale/bitcoin_vi_VN.ts \
|
|
|
|
qt/locale/bitcoin_zh_CN.ts \
|
|
|
|
qt/locale/bitcoin_zh_HK.ts \
|
|
|
|
qt/locale/bitcoin_zh_TW.ts
|
|
|
|
|
|
|
|
QT_FORMS_UI = \
|
|
|
|
qt/forms/addressbookpage.ui \
|
|
|
|
qt/forms/askpassphrasedialog.ui \
|
|
|
|
qt/forms/coincontroldialog.ui \
|
|
|
|
qt/forms/editaddressdialog.ui \
|
|
|
|
qt/forms/helpmessagedialog.ui \
|
|
|
|
qt/forms/intro.ui \
|
|
|
|
qt/forms/openuridialog.ui \
|
|
|
|
qt/forms/optionsdialog.ui \
|
|
|
|
qt/forms/overviewpage.ui \
|
|
|
|
qt/forms/receivecoinsdialog.ui \
|
|
|
|
qt/forms/receiverequestdialog.ui \
|
|
|
|
qt/forms/rpcconsole.ui \
|
|
|
|
qt/forms/sendcoinsdialog.ui \
|
|
|
|
qt/forms/sendcoinsentry.ui \
|
|
|
|
qt/forms/signverifymessagedialog.ui \
|
|
|
|
qt/forms/transactiondescdialog.ui
|
|
|
|
|
|
|
|
QT_MOC_CPP = \
|
|
|
|
qt/moc_addressbookpage.cpp \
|
|
|
|
qt/moc_addresstablemodel.cpp \
|
|
|
|
qt/moc_askpassphrasedialog.cpp \
|
|
|
|
qt/moc_bitcoinaddressvalidator.cpp \
|
|
|
|
qt/moc_bitcoinamountfield.cpp \
|
|
|
|
qt/moc_bitcoingui.cpp \
|
|
|
|
qt/moc_bitcoinunits.cpp \
|
|
|
|
qt/moc_clientmodel.cpp \
|
|
|
|
qt/moc_coincontroldialog.cpp \
|
|
|
|
qt/moc_coincontroltreewidget.cpp \
|
|
|
|
qt/moc_csvmodelwriter.cpp \
|
|
|
|
qt/moc_editaddressdialog.cpp \
|
|
|
|
qt/moc_guiutil.cpp \
|
|
|
|
qt/moc_intro.cpp \
|
|
|
|
qt/moc_macdockiconhandler.cpp \
|
|
|
|
qt/moc_macnotificationhandler.cpp \
|
|
|
|
qt/moc_notificator.cpp \
|
|
|
|
qt/moc_openuridialog.cpp \
|
|
|
|
qt/moc_optionsdialog.cpp \
|
|
|
|
qt/moc_optionsmodel.cpp \
|
|
|
|
qt/moc_overviewpage.cpp \
|
|
|
|
qt/moc_peertablemodel.cpp \
|
|
|
|
qt/moc_paymentserver.cpp \
|
|
|
|
qt/moc_qvalidatedlineedit.cpp \
|
|
|
|
qt/moc_qvaluecombobox.cpp \
|
|
|
|
qt/moc_receivecoinsdialog.cpp \
|
|
|
|
qt/moc_receiverequestdialog.cpp \
|
|
|
|
qt/moc_recentrequeststablemodel.cpp \
|
|
|
|
qt/moc_rpcconsole.cpp \
|
|
|
|
qt/moc_sendcoinsdialog.cpp \
|
|
|
|
qt/moc_sendcoinsentry.cpp \
|
|
|
|
qt/moc_signverifymessagedialog.cpp \
|
|
|
|
qt/moc_splashscreen.cpp \
|
|
|
|
qt/moc_trafficgraphwidget.cpp \
|
|
|
|
qt/moc_transactiondesc.cpp \
|
|
|
|
qt/moc_transactiondescdialog.cpp \
|
|
|
|
qt/moc_transactionfilterproxy.cpp \
|
|
|
|
qt/moc_transactiontablemodel.cpp \
|
|
|
|
qt/moc_transactionview.cpp \
|
|
|
|
qt/moc_utilitydialog.cpp \
|
|
|
|
qt/moc_walletframe.cpp \
|
|
|
|
qt/moc_walletmodel.cpp \
|
|
|
|
qt/moc_walletview.cpp
|
|
|
|
|
|
|
|
BITCOIN_MM = \
|
|
|
|
qt/macdockiconhandler.mm \
|
|
|
|
qt/macnotificationhandler.mm
|
|
|
|
|
|
|
|
QT_MOC = \
|
|
|
|
qt/bitcoin.moc \
|
2014-07-18 07:31:13 -07:00
|
|
|
qt/bitcoinamountfield.moc \
|
2014-05-28 10:38:41 -07:00
|
|
|
qt/intro.moc \
|
|
|
|
qt/overviewpage.moc \
|
|
|
|
qt/rpcconsole.moc
|
|
|
|
|
|
|
|
QT_QRC_CPP = qt/qrc_bitcoin.cpp
|
|
|
|
QT_QRC = qt/bitcoin.qrc
|
2014-06-10 12:43:02 -07:00
|
|
|
QT_QRC_LOCALE_CPP = qt/qrc_bitcoin_locale.cpp
|
|
|
|
QT_QRC_LOCALE = qt/bitcoin_locale.qrc
|
2014-05-28 10:38:41 -07:00
|
|
|
|
|
|
|
PROTOBUF_CC = qt/paymentrequest.pb.cc
|
|
|
|
PROTOBUF_H = qt/paymentrequest.pb.h
|
|
|
|
PROTOBUF_PROTO = qt/paymentrequest.proto
|
|
|
|
|
|
|
|
BITCOIN_QT_H = \
|
|
|
|
qt/addressbookpage.h \
|
|
|
|
qt/addresstablemodel.h \
|
|
|
|
qt/askpassphrasedialog.h \
|
|
|
|
qt/bitcoinaddressvalidator.h \
|
|
|
|
qt/bitcoinamountfield.h \
|
|
|
|
qt/bitcoingui.h \
|
|
|
|
qt/bitcoinunits.h \
|
|
|
|
qt/clientmodel.h \
|
|
|
|
qt/coincontroldialog.h \
|
|
|
|
qt/coincontroltreewidget.h \
|
|
|
|
qt/csvmodelwriter.h \
|
|
|
|
qt/editaddressdialog.h \
|
|
|
|
qt/guiconstants.h \
|
|
|
|
qt/guiutil.h \
|
|
|
|
qt/intro.h \
|
|
|
|
qt/macdockiconhandler.h \
|
|
|
|
qt/macnotificationhandler.h \
|
2014-10-09 02:04:49 -07:00
|
|
|
qt/networkstyle.h \
|
2014-05-28 10:38:41 -07:00
|
|
|
qt/notificator.h \
|
|
|
|
qt/openuridialog.h \
|
|
|
|
qt/optionsdialog.h \
|
|
|
|
qt/optionsmodel.h \
|
|
|
|
qt/overviewpage.h \
|
|
|
|
qt/paymentrequestplus.h \
|
|
|
|
qt/paymentserver.h \
|
|
|
|
qt/peertablemodel.h \
|
2015-07-28 06:20:14 -07:00
|
|
|
qt/platformstyle.h \
|
2014-05-28 10:38:41 -07:00
|
|
|
qt/qvalidatedlineedit.h \
|
|
|
|
qt/qvaluecombobox.h \
|
|
|
|
qt/receivecoinsdialog.h \
|
|
|
|
qt/receiverequestdialog.h \
|
|
|
|
qt/recentrequeststablemodel.h \
|
|
|
|
qt/rpcconsole.h \
|
|
|
|
qt/sendcoinsdialog.h \
|
|
|
|
qt/sendcoinsentry.h \
|
|
|
|
qt/signverifymessagedialog.h \
|
|
|
|
qt/splashscreen.h \
|
|
|
|
qt/trafficgraphwidget.h \
|
|
|
|
qt/transactiondesc.h \
|
|
|
|
qt/transactiondescdialog.h \
|
|
|
|
qt/transactionfilterproxy.h \
|
|
|
|
qt/transactionrecord.h \
|
|
|
|
qt/transactiontablemodel.h \
|
|
|
|
qt/transactionview.h \
|
|
|
|
qt/utilitydialog.h \
|
|
|
|
qt/walletframe.h \
|
|
|
|
qt/walletmodel.h \
|
|
|
|
qt/walletmodeltransaction.h \
|
|
|
|
qt/walletview.h \
|
|
|
|
qt/winshutdownmonitor.h
|
|
|
|
|
|
|
|
RES_ICONS = \
|
|
|
|
qt/res/icons/add.png \
|
|
|
|
qt/res/icons/address-book.png \
|
2014-11-05 04:47:21 -08:00
|
|
|
qt/res/icons/about.png \
|
|
|
|
qt/res/icons/about_qt.png \
|
2014-05-28 10:38:41 -07:00
|
|
|
qt/res/icons/bitcoin.ico \
|
|
|
|
qt/res/icons/bitcoin.png \
|
|
|
|
qt/res/icons/clock1.png \
|
|
|
|
qt/res/icons/clock2.png \
|
|
|
|
qt/res/icons/clock3.png \
|
|
|
|
qt/res/icons/clock4.png \
|
|
|
|
qt/res/icons/clock5.png \
|
|
|
|
qt/res/icons/configure.png \
|
2014-11-05 04:47:21 -08:00
|
|
|
qt/res/icons/connect0.png \
|
|
|
|
qt/res/icons/connect1.png \
|
|
|
|
qt/res/icons/connect2.png \
|
|
|
|
qt/res/icons/connect3.png \
|
|
|
|
qt/res/icons/connect4.png \
|
2014-05-28 10:38:41 -07:00
|
|
|
qt/res/icons/debugwindow.png \
|
|
|
|
qt/res/icons/edit.png \
|
|
|
|
qt/res/icons/editcopy.png \
|
|
|
|
qt/res/icons/editpaste.png \
|
|
|
|
qt/res/icons/export.png \
|
2014-08-09 17:26:04 -07:00
|
|
|
qt/res/icons/eye.png \
|
|
|
|
qt/res/icons/eye_minus.png \
|
|
|
|
qt/res/icons/eye_plus.png \
|
2014-05-28 10:38:41 -07:00
|
|
|
qt/res/icons/filesave.png \
|
|
|
|
qt/res/icons/history.png \
|
2014-11-05 04:47:21 -08:00
|
|
|
qt/res/icons/info.png \
|
2014-05-28 10:38:41 -07:00
|
|
|
qt/res/icons/key.png \
|
|
|
|
qt/res/icons/lock_closed.png \
|
|
|
|
qt/res/icons/lock_open.png \
|
2014-11-05 04:47:21 -08:00
|
|
|
qt/res/icons/open.png \
|
2014-05-28 10:38:41 -07:00
|
|
|
qt/res/icons/overview.png \
|
|
|
|
qt/res/icons/quit.png \
|
|
|
|
qt/res/icons/receive.png \
|
|
|
|
qt/res/icons/remove.png \
|
|
|
|
qt/res/icons/send.png \
|
|
|
|
qt/res/icons/synced.png \
|
|
|
|
qt/res/icons/transaction0.png \
|
|
|
|
qt/res/icons/transaction2.png \
|
|
|
|
qt/res/icons/transaction_conflicted.png \
|
|
|
|
qt/res/icons/tx_inout.png \
|
|
|
|
qt/res/icons/tx_input.png \
|
|
|
|
qt/res/icons/tx_output.png \
|
2014-07-05 08:14:43 -07:00
|
|
|
qt/res/icons/tx_mined.png \
|
2015-05-06 06:20:11 -07:00
|
|
|
qt/res/icons/warning.png \
|
2014-11-05 04:47:21 -08:00
|
|
|
qt/res/icons/verify.png
|
2014-05-28 10:38:41 -07:00
|
|
|
|
|
|
|
BITCOIN_QT_CPP = \
|
|
|
|
qt/bitcoinaddressvalidator.cpp \
|
|
|
|
qt/bitcoinamountfield.cpp \
|
|
|
|
qt/bitcoingui.cpp \
|
|
|
|
qt/bitcoinunits.cpp \
|
|
|
|
qt/clientmodel.cpp \
|
|
|
|
qt/csvmodelwriter.cpp \
|
|
|
|
qt/guiutil.cpp \
|
|
|
|
qt/intro.cpp \
|
2014-10-09 02:04:49 -07:00
|
|
|
qt/networkstyle.cpp \
|
2014-05-28 10:38:41 -07:00
|
|
|
qt/notificator.cpp \
|
|
|
|
qt/optionsdialog.cpp \
|
|
|
|
qt/optionsmodel.cpp \
|
|
|
|
qt/peertablemodel.cpp \
|
2015-07-28 06:20:14 -07:00
|
|
|
qt/platformstyle.cpp \
|
2014-05-28 10:38:41 -07:00
|
|
|
qt/qvalidatedlineedit.cpp \
|
|
|
|
qt/qvaluecombobox.cpp \
|
|
|
|
qt/rpcconsole.cpp \
|
|
|
|
qt/splashscreen.cpp \
|
|
|
|
qt/trafficgraphwidget.cpp \
|
2014-12-18 04:34:16 -08:00
|
|
|
qt/utilitydialog.cpp
|
|
|
|
|
|
|
|
if TARGET_WINDOWS
|
|
|
|
BITCOIN_QT_CPP += qt/winshutdownmonitor.cpp
|
|
|
|
endif
|
2014-05-28 10:38:41 -07:00
|
|
|
|
|
|
|
if ENABLE_WALLET
|
|
|
|
BITCOIN_QT_CPP += \
|
|
|
|
qt/addressbookpage.cpp \
|
|
|
|
qt/addresstablemodel.cpp \
|
|
|
|
qt/askpassphrasedialog.cpp \
|
|
|
|
qt/coincontroldialog.cpp \
|
|
|
|
qt/coincontroltreewidget.cpp \
|
|
|
|
qt/editaddressdialog.cpp \
|
|
|
|
qt/openuridialog.cpp \
|
|
|
|
qt/overviewpage.cpp \
|
|
|
|
qt/paymentrequestplus.cpp \
|
|
|
|
qt/paymentserver.cpp \
|
|
|
|
qt/receivecoinsdialog.cpp \
|
|
|
|
qt/receiverequestdialog.cpp \
|
|
|
|
qt/recentrequeststablemodel.cpp \
|
|
|
|
qt/sendcoinsdialog.cpp \
|
|
|
|
qt/sendcoinsentry.cpp \
|
|
|
|
qt/signverifymessagedialog.cpp \
|
|
|
|
qt/transactiondesc.cpp \
|
|
|
|
qt/transactiondescdialog.cpp \
|
|
|
|
qt/transactionfilterproxy.cpp \
|
|
|
|
qt/transactionrecord.cpp \
|
|
|
|
qt/transactiontablemodel.cpp \
|
|
|
|
qt/transactionview.cpp \
|
|
|
|
qt/walletframe.cpp \
|
|
|
|
qt/walletmodel.cpp \
|
|
|
|
qt/walletmodeltransaction.cpp \
|
|
|
|
qt/walletview.cpp
|
|
|
|
endif
|
|
|
|
|
2015-01-09 11:57:17 -08:00
|
|
|
RES_IMAGES =
|
2014-05-28 10:38:41 -07:00
|
|
|
|
|
|
|
RES_MOVIES = $(wildcard qt/res/movies/spinner-*.png)
|
|
|
|
|
|
|
|
BITCOIN_RC = qt/res/bitcoin-qt-res.rc
|
|
|
|
|
2014-06-05 12:24:48 -07:00
|
|
|
BITCOIN_QT_INCLUDES = -I$(builddir)/qt -I$(srcdir)/qt -I$(srcdir)/qt/forms \
|
2015-07-14 04:59:05 -07:00
|
|
|
-I$(builddir)/qt/forms -DQT_NO_KEYWORDS
|
2014-06-05 12:24:48 -07:00
|
|
|
|
|
|
|
qt_libbitcoinqt_a_CPPFLAGS = $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
|
|
|
|
$(QT_INCLUDES) $(QT_DBUS_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
|
|
|
|
|
2014-05-28 10:38:41 -07:00
|
|
|
qt_libbitcoinqt_a_SOURCES = $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(QT_FORMS_UI) \
|
2014-06-10 12:43:02 -07:00
|
|
|
$(QT_QRC) $(QT_QRC_LOCALE) $(QT_TS) $(PROTOBUF_PROTO) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES)
|
2014-05-28 10:38:41 -07:00
|
|
|
|
|
|
|
nodist_qt_libbitcoinqt_a_SOURCES = $(QT_MOC_CPP) $(QT_MOC) $(PROTOBUF_CC) \
|
2014-06-10 12:43:02 -07:00
|
|
|
$(PROTOBUF_H) $(QT_QRC_CPP) $(QT_QRC_LOCALE_CPP)
|
2014-05-28 10:38:41 -07:00
|
|
|
|
|
|
|
# forms/foo.h -> forms/ui_foo.h
|
|
|
|
QT_FORMS_H=$(join $(dir $(QT_FORMS_UI)),$(addprefix ui_, $(notdir $(QT_FORMS_UI:.ui=.h))))
|
|
|
|
|
|
|
|
# Most files will depend on the forms and moc files as includes. Generate them
|
|
|
|
# before anything else.
|
|
|
|
$(QT_MOC): $(QT_FORMS_H)
|
|
|
|
$(qt_libbitcoinqt_a_OBJECTS) $(qt_bitcoin_qt_OBJECTS) : | $(QT_MOC)
|
|
|
|
|
|
|
|
#Generating these with a half-written protobuf header leads to wacky results.
|
|
|
|
#This makes sure it's done.
|
|
|
|
$(QT_MOC): $(PROTOBUF_H)
|
|
|
|
$(QT_MOC_CPP): $(PROTOBUF_H)
|
|
|
|
|
|
|
|
# bitcoin-qt binary #
|
2014-06-05 12:24:48 -07:00
|
|
|
qt_bitcoin_qt_CPPFLAGS = $(BITCOIN_INCLUDES) $(BITCOIN_QT_INCLUDES) \
|
|
|
|
$(QT_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
|
|
|
|
|
2014-05-28 10:38:41 -07:00
|
|
|
qt_bitcoin_qt_SOURCES = qt/bitcoin.cpp
|
|
|
|
if TARGET_DARWIN
|
|
|
|
qt_bitcoin_qt_SOURCES += $(BITCOIN_MM)
|
|
|
|
endif
|
|
|
|
if TARGET_WINDOWS
|
|
|
|
qt_bitcoin_qt_SOURCES += $(BITCOIN_RC)
|
|
|
|
endif
|
|
|
|
qt_bitcoin_qt_LDADD = qt/libbitcoinqt.a $(LIBBITCOIN_SERVER)
|
|
|
|
if ENABLE_WALLET
|
|
|
|
qt_bitcoin_qt_LDADD += $(LIBBITCOIN_WALLET)
|
|
|
|
endif
|
2014-07-29 08:12:44 -07:00
|
|
|
qt_bitcoin_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CRYPTO) $(LIBBITCOIN_UNIVALUE) $(LIBLEVELDB) $(LIBMEMENV) \
|
2014-11-05 07:58:37 -08:00
|
|
|
$(BOOST_LIBS) $(QT_LIBS) $(QT_DBUS_LIBS) $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1)
|
2014-10-14 15:03:52 -07:00
|
|
|
qt_bitcoin_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
|
2014-10-16 04:50:49 -07:00
|
|
|
qt_bitcoin_qt_LIBTOOLFLAGS = --tag CXX
|
2014-05-28 10:38:41 -07:00
|
|
|
|
|
|
|
#locale/foo.ts -> locale/foo.qm
|
|
|
|
QT_QM=$(QT_TS:.ts=.qm)
|
|
|
|
|
2014-11-06 07:28:29 -08:00
|
|
|
SECONDARY: $(QT_QM)
|
2014-05-28 10:38:41 -07:00
|
|
|
|
2014-07-02 22:31:50 -07:00
|
|
|
qt/bitcoinstrings.cpp: $(libbitcoin_server_a_SOURCES) $(libbitcoin_wallet_a_SOURCES)
|
2014-05-28 10:38:41 -07:00
|
|
|
@test -n $(XGETTEXT) || echo "xgettext is required for updating translations"
|
2014-07-02 22:31:50 -07:00
|
|
|
$(AM_V_GEN) cd $(srcdir); XGETTEXT=$(XGETTEXT) ../share/qt/extract_strings_qt.py $^
|
2014-05-28 10:38:41 -07:00
|
|
|
|
|
|
|
translate: qt/bitcoinstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(BITCOIN_QT_CPP) $(BITCOIN_QT_H) $(BITCOIN_MM)
|
|
|
|
@test -n $(LUPDATE) || echo "lupdate is required for updating translations"
|
2014-06-05 11:17:50 -07:00
|
|
|
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LUPDATE) $^ -locations relative -no-obsolete -ts qt/locale/bitcoin_en.ts
|
2014-05-28 10:38:41 -07:00
|
|
|
|
2014-06-10 12:43:02 -07:00
|
|
|
$(QT_QRC_LOCALE_CPP): $(QT_QRC_LOCALE) $(QT_QM)
|
2014-06-05 11:17:50 -07:00
|
|
|
@test -f $(RCC)
|
2014-06-10 12:43:02 -07:00
|
|
|
@test -f $(@D)/$(<F) || cp -f $< $(@D)
|
|
|
|
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin_locale $(@D)/$(<F) | \
|
|
|
|
$(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
|
|
|
|
|
|
|
|
$(QT_QRC_CPP): $(QT_QRC) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES) $(PROTOBUF_H)
|
|
|
|
@test -f $(RCC)
|
|
|
|
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name bitcoin $< | \
|
|
|
|
$(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
|
2014-05-28 10:38:41 -07:00
|
|
|
|
|
|
|
CLEAN_QT = $(nodist_qt_libbitcoinqt_a_SOURCES) $(QT_QM) $(QT_FORMS_H) qt/*.gcda qt/*.gcno
|
|
|
|
|
|
|
|
CLEANFILES += $(CLEAN_QT)
|
|
|
|
|
|
|
|
bitcoin_qt_clean: FORCE
|
|
|
|
rm -f $(CLEAN_QT) $(qt_libbitcoinqt_a_OBJECTS) $(qt_bitcoin_qt_OBJECTS) qt/bitcoin-qt$(EXEEXT) $(LIBBITCOINQT)
|
|
|
|
|
|
|
|
bitcoin_qt : qt/bitcoin-qt$(EXEEXT)
|
2014-06-04 14:13:03 -07:00
|
|
|
|
|
|
|
ui_%.h: %.ui
|
2014-06-05 11:17:50 -07:00
|
|
|
@test -f $(UIC)
|
|
|
|
@$(MKDIR_P) $(@D)
|
|
|
|
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(UIC) -o $@ $< || (echo "Error creating $@"; false)
|
2014-06-04 14:13:03 -07:00
|
|
|
|
|
|
|
%.moc: %.cpp
|
2014-06-05 11:17:50 -07:00
|
|
|
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) $< | \
|
|
|
|
$(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
|
2014-06-04 14:13:03 -07:00
|
|
|
|
|
|
|
moc_%.cpp: %.h
|
2014-06-05 11:17:50 -07:00
|
|
|
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(QT_INCLUDES) $(MOC_DEFS) $< | \
|
|
|
|
$(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
|
2014-06-04 14:13:03 -07:00
|
|
|
|
|
|
|
%.qm: %.ts
|
2014-06-05 11:17:50 -07:00
|
|
|
@test -f $(LRELEASE)
|
|
|
|
@$(MKDIR_P) $(@D)
|
|
|
|
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LRELEASE) -silent $< -qm $@
|