You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

494 lines
15 KiB

# Copyright (c) 2013-2016 The Starwels developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
bin_PROGRAMS += qt/starwels-qt
EXTRA_LIBRARIES += qt/libstarwelsqt.a
# starwels qt core #
QT_TS = \
qt/locale/starwels_af.ts \
qt/locale/starwels_af_ZA.ts \
qt/locale/starwels_am.ts \
qt/locale/starwels_ar.ts \
qt/locale/starwels_be_BY.ts \
qt/locale/starwels_bg_BG.ts \
qt/locale/starwels_bg.ts \
qt/locale/starwels_bn.ts \
qt/locale/starwels_bs.ts \
qt/locale/starwels_ca_ES.ts \
qt/locale/starwels_ca.ts \
qt/locale/starwels_ca@valencia.ts \
qt/locale/starwels_cs_CZ.ts \
qt/locale/starwels_cs.ts \
qt/locale/starwels_cy.ts \
qt/locale/starwels_da.ts \
qt/locale/starwels_de_DE.ts \
qt/locale/starwels_de.ts \
qt/locale/starwels_el_GR.ts \
qt/locale/starwels_el.ts \
qt/locale/starwels_en_AU.ts \
qt/locale/starwels_en_GB.ts \
qt/locale/starwels_en.ts \
qt/locale/starwels_eo.ts \
qt/locale/starwels_es_419.ts \
qt/locale/starwels_es_AR.ts \
qt/locale/starwels_es_CL.ts \
qt/locale/starwels_es_CO.ts \
qt/locale/starwels_es_DO.ts \
qt/locale/starwels_es_ES.ts \
qt/locale/starwels_es_MX.ts \
qt/locale/starwels_es.ts \
qt/locale/starwels_es_UY.ts \
qt/locale/starwels_es_VE.ts \
qt/locale/starwels_et_EE.ts \
qt/locale/starwels_et.ts \
qt/locale/starwels_eu_ES.ts \
qt/locale/starwels_fa_IR.ts \
qt/locale/starwels_fa.ts \
qt/locale/starwels_fi.ts \
qt/locale/starwels_fr_CA.ts \
qt/locale/starwels_fr_FR.ts \
qt/locale/starwels_fr.ts \
qt/locale/starwels_gl.ts \
qt/locale/starwels_he_IL.ts \
qt/locale/starwels_he.ts \
qt/locale/starwels_hi_IN.ts \
qt/locale/starwels_hr.ts \
qt/locale/starwels_hu_HU.ts \
qt/locale/starwels_hu.ts \
qt/locale/starwels_id_ID.ts \
qt/locale/starwels_id.ts \
qt/locale/starwels_is.ts \
qt/locale/starwels_it_IT.ts \
qt/locale/starwels_it.ts \
qt/locale/starwels_ja_JP.ts \
qt/locale/starwels_ja.ts \
qt/locale/starwels_ka.ts \
qt/locale/starwels_kk_KZ.ts \
qt/locale/starwels_km_KH.ts \
qt/locale/starwels_ko_KR.ts \
qt/locale/starwels_ko.ts \
qt/locale/starwels_ku_IQ.ts \
qt/locale/starwels_ky.ts \
qt/locale/starwels_la.ts \
qt/locale/starwels_lt.ts \
qt/locale/starwels_lv_LV.ts \
qt/locale/starwels_mk_MK.ts \
qt/locale/starwels_ml.ts \
qt/locale/starwels_mn.ts \
qt/locale/starwels_mr_IN.ts \
qt/locale/starwels_ms_MY.ts \
qt/locale/starwels_ms.ts \
qt/locale/starwels_my.ts \
qt/locale/starwels_nb_NO.ts \
qt/locale/starwels_nb.ts \
qt/locale/starwels_ne.ts \
qt/locale/starwels_nl_NL.ts \
qt/locale/starwels_nl.ts \
qt/locale/starwels_pam.ts \
qt/locale/starwels_pl_PL.ts \
qt/locale/starwels_pl.ts \
qt/locale/starwels_pt_BR.ts \
qt/locale/starwels_pt_PT.ts \
qt/locale/starwels_pt.ts \
qt/locale/starwels_ro_RO.ts \
qt/locale/starwels_ro.ts \
qt/locale/starwels_ru_RU.ts \
qt/locale/starwels_ru.ts \
qt/locale/starwels_si.ts \
qt/locale/starwels_sk.ts \
qt/locale/starwels_sl_SI.ts \
qt/locale/starwels_sn.ts \
qt/locale/starwels_sq.ts \
qt/locale/starwels_sr@latin.ts \
qt/locale/starwels_sr.ts \
qt/locale/starwels_sv.ts \
qt/locale/starwels_ta_IN.ts \
qt/locale/starwels_ta.ts \
qt/locale/starwels_te.ts \
qt/locale/starwels_th_TH.ts \
qt/locale/starwels_th.ts \
qt/locale/starwels_tr_TR.ts \
qt/locale/starwels_tr.ts \
qt/locale/starwels_uk.ts \
qt/locale/starwels_ur_PK.ts \
qt/locale/starwels_uz@Cyrl.ts \
qt/locale/starwels_vi.ts \
qt/locale/starwels_vi_VN.ts \
qt/locale/starwels_zh_CN.ts \
qt/locale/starwels_zh-Hans.ts \
qt/locale/starwels_zh_HK.ts \
qt/locale/starwels_zh.ts \
qt/locale/starwels_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/modaloverlay.ui \
qt/forms/openuridialog.ui \
qt/forms/optionsdialog.ui \
qt/forms/overviewpage.ui \
qt/forms/receivecoinsdialog.ui \
qt/forms/receiverequestdialog.ui \
qt/forms/debugwindow.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_bantablemodel.cpp \
qt/moc_starwelsaddressvalidator.cpp \
qt/moc_starwelsamountfield.cpp \
qt/moc_starwelsgui.cpp \
qt/moc_starwelsunits.cpp \
qt/moc_callback.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_modaloverlay.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
STARWELS_MM = \
qt/macdockiconhandler.mm \
qt/macnotificationhandler.mm
QT_MOC = \
qt/starwels.moc \
qt/starwelsamountfield.moc \
qt/callback.moc \
qt/intro.moc \
qt/overviewpage.moc \
qt/rpcconsole.moc
QT_QRC_CPP = qt/qrc_starwels.cpp
QT_QRC = qt/starwels.qrc
QT_QRC_LOCALE_CPP = qt/qrc_starwels_locale.cpp
QT_QRC_LOCALE = qt/starwels_locale.qrc
PROTOBUF_CC = qt/paymentrequest.pb.cc
PROTOBUF_H = qt/paymentrequest.pb.h
PROTOBUF_PROTO = qt/paymentrequest.proto
STARWELS_QT_H = \
qt/addressbookpage.h \
qt/addresstablemodel.h \
qt/askpassphrasedialog.h \
qt/bantablemodel.h \
qt/starwelsaddressvalidator.h \
qt/starwelsamountfield.h \
qt/starwelsgui.h \
qt/starwelsunits.h \
qt/callback.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 \
qt/modaloverlay.h \
qt/networkstyle.h \
qt/notificator.h \
qt/openuridialog.h \
qt/optionsdialog.h \
qt/optionsmodel.h \
qt/overviewpage.h \
qt/paymentrequestplus.h \
qt/paymentserver.h \
qt/peertablemodel.h \
qt/platformstyle.h \
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 \
qt/res/icons/about.png \
qt/res/icons/about_qt.png \
qt/res/icons/starwels.ico \
qt/res/icons/starwels_ai.ico \
qt/res/icons/starwels.png \
qt/res/icons/chevron.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 \
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 \
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 \
qt/res/icons/eye.png \
qt/res/icons/eye_minus.png \
qt/res/icons/eye_plus.png \
qt/res/icons/filesave.png \
qt/res/icons/fontbigger.png \
qt/res/icons/fontsmaller.png \
qt/res/icons/hd_disabled.png \
qt/res/icons/hd_enabled.png \
qt/res/icons/history.png \
qt/res/icons/info.png \
qt/res/icons/key.png \
qt/res/icons/lock_closed.png \
qt/res/icons/lock_open.png \
qt/res/icons/network_disabled.png \
qt/res/icons/open.png \
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_abandoned.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 \
qt/res/icons/tx_mined.png \
qt/res/icons/warning.png \
qt/res/icons/verify.png
STARWELS_QT_BASE_CPP = \
qt/bantablemodel.cpp \
qt/starwelsaddressvalidator.cpp \
qt/starwelsamountfield.cpp \
qt/starwelsgui.cpp \
qt/starwelsunits.cpp \
qt/clientmodel.cpp \
qt/csvmodelwriter.cpp \
qt/guiutil.cpp \
qt/intro.cpp \
qt/modaloverlay.cpp \
qt/networkstyle.cpp \
qt/notificator.cpp \
qt/optionsdialog.cpp \
qt/optionsmodel.cpp \
qt/peertablemodel.cpp \
qt/platformstyle.cpp \
qt/qvalidatedlineedit.cpp \
qt/qvaluecombobox.cpp \
qt/rpcconsole.cpp \
qt/splashscreen.cpp \
qt/trafficgraphwidget.cpp \
qt/utilitydialog.cpp
STARWELS_QT_WINDOWS_CPP = qt/winshutdownmonitor.cpp
STARWELS_QT_WALLET_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
STARWELS_QT_CPP = $(STARWELS_QT_BASE_CPP)
if TARGET_WINDOWS
STARWELS_QT_CPP += $(STARWELS_QT_WINDOWS_CPP)
endif
if ENABLE_WALLET
STARWELS_QT_CPP += $(STARWELS_QT_WALLET_CPP)
endif
RES_IMAGES =
RES_MOVIES = $(wildcard $(srcdir)/qt/res/movies/spinner-*.png)
STARWELS_RC = qt/res/starwels-qt-res.rc
STARWELS_QT_INCLUDES = -DQT_NO_KEYWORDS
qt_libstarwelsqt_a_CPPFLAGS = $(AM_CPPFLAGS) $(STARWELS_INCLUDES) $(STARWELS_QT_INCLUDES) \
$(QT_INCLUDES) $(QT_DBUS_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
qt_libstarwelsqt_a_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
qt_libstarwelsqt_a_OBJCXXFLAGS = $(AM_OBJCXXFLAGS) $(QT_PIE_FLAGS)
qt_libstarwelsqt_a_SOURCES = $(STARWELS_QT_CPP) $(STARWELS_QT_H) $(QT_FORMS_UI) \
$(QT_QRC) $(QT_QRC_LOCALE) $(QT_TS) $(PROTOBUF_PROTO) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES)
nodist_qt_libstarwelsqt_a_SOURCES = $(QT_MOC_CPP) $(QT_MOC) $(PROTOBUF_CC) \
$(PROTOBUF_H) $(QT_QRC_CPP) $(QT_QRC_LOCALE_CPP)
# 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_libstarwelsqt_a_OBJECTS) $(qt_starwels_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)
# starwels-qt binary #
qt_starwels_qt_CPPFLAGS = $(AM_CPPFLAGS) $(STARWELS_INCLUDES) $(STARWELS_QT_INCLUDES) \
$(QT_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
qt_starwels_qt_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
qt_starwels_qt_SOURCES = qt/starwels.cpp
if TARGET_DARWIN
qt_starwels_qt_SOURCES += $(STARWELS_MM)
endif
if TARGET_WINDOWS
qt_starwels_qt_SOURCES += $(STARWELS_RC)
endif
qt_starwels_qt_LDADD = qt/libstarwelsqt.a $(LIBSTARWELS_SERVER)
if ENABLE_WALLET
qt_starwels_qt_LDADD += $(LIBSTARWELS_WALLET)
endif
if ENABLE_ZMQ
qt_starwels_qt_LDADD += $(LIBSTARWELS_ZMQ) $(ZMQ_LIBS)
endif
qt_starwels_qt_LDADD += $(LIBSTARWELS_CLI) $(LIBSTARWELS_COMMON) $(LIBSTARWELS_UTIL) $(LIBSTARWELS_CONSENSUS) $(LIBSTARWELS_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) $(LIBLEVELDB_SSE42) $(LIBMEMENV) \
$(BOOST_LIBS) $(QT_LIBS) $(QT_DBUS_LIBS) $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1) \
$(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
qt_starwels_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
qt_starwels_qt_LIBTOOLFLAGS = --tag CXX
#locale/foo.ts -> locale/foo.qm
QT_QM=$(QT_TS:.ts=.qm)
SECONDARY: $(QT_QM)
$(srcdir)/qt/starwelsstrings.cpp: $(libstarwels_server_a_SOURCES) $(libstarwels_wallet_a_SOURCES) $(libstarwels_common_a_SOURCES) $(libstarwels_zmq_a_SOURCES) $(libstarwels_consensus_a_SOURCES) $(libstarwels_util_a_SOURCES)
@test -n $(XGETTEXT) || echo "xgettext is required for updating translations"
$(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 $^
translate: $(srcdir)/qt/starwelsstrings.cpp $(QT_FORMS_UI) $(QT_FORMS_UI) $(STARWELS_QT_BASE_CPP) qt/starwels.cpp $(STARWELS_QT_WINDOWS_CPP) $(STARWELS_QT_WALLET_CPP) $(STARWELS_QT_H) $(STARWELS_MM)
@test -n $(LUPDATE) || echo "lupdate is required for updating translations"
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LUPDATE) $^ -locations relative -no-obsolete -ts $(srcdir)/qt/locale/starwels_en.ts
$(QT_QRC_LOCALE_CPP): $(QT_QRC_LOCALE) $(QT_QM)
@test -f $(RCC)
@cp -f $< $(@D)/temp_$(<F)
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name starwels_locale $(@D)/temp_$(<F) | \
$(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
@rm $(@D)/temp_$(<F)
$(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 starwels $< | \
$(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
CLEAN_QT = $(nodist_qt_libstarwelsqt_a_SOURCES) $(QT_QM) $(QT_FORMS_H) qt/*.gcda qt/*.gcno qt/temp_starwels_locale.qrc
CLEANFILES += $(CLEAN_QT)
starwels_qt_clean: FORCE
rm -f $(CLEAN_QT) $(qt_libstarwelsqt_a_OBJECTS) $(qt_starwels_qt_OBJECTS) qt/starwels-qt$(EXEEXT) $(LIBSTARWELSQT)
starwels_qt : qt/starwels-qt$(EXEEXT)
ui_%.h: %.ui
@test -f $(UIC)
@$(MKDIR_P) $(@D)
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(UIC) -o $@ $< || (echo "Error creating $@"; false)
%.moc: %.cpp
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(DEFAULT_INCLUDES) $(QT_INCLUDES) $(MOC_DEFS) $< | \
$(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
moc_%.cpp: %.h
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(DEFAULT_INCLUDES) $(QT_INCLUDES) $(MOC_DEFS) $< | \
$(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
%.qm: %.ts
@test -f $(LRELEASE)
@$(MKDIR_P) $(@D)
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LRELEASE) -silent $< -qm $@