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.

Makefile.qt.include 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. # Copyright (c) 2013-2016 The Starwels developers
  2. # Distributed under the MIT software license, see the accompanying
  3. # file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. bin_PROGRAMS += qt/starwels-qt
  5. EXTRA_LIBRARIES += qt/libstarwelsqt.a
  6. # starwels qt core #
  7. QT_TS = \
  8. qt/locale/starwels_af.ts \
  9. qt/locale/starwels_af_ZA.ts \
  10. qt/locale/starwels_ar.ts \
  11. qt/locale/starwels_be_BY.ts \
  12. qt/locale/starwels_bg_BG.ts \
  13. qt/locale/starwels_bg.ts \
  14. qt/locale/starwels_bn.ts \
  15. qt/locale/starwels_bs.ts \
  16. qt/locale/starwels_ca_ES.ts \
  17. qt/locale/starwels_ca.ts \
  18. qt/locale/starwels_ca@valencia.ts \
  19. qt/locale/starwels_cs.ts \
  20. qt/locale/starwels_cy.ts \
  21. qt/locale/starwels_da.ts \
  22. qt/locale/starwels_de_DE.ts \
  23. qt/locale/starwels_de.ts \
  24. qt/locale/starwels_el_GR.ts \
  25. qt/locale/starwels_el.ts \
  26. qt/locale/starwels_en_AU.ts \
  27. qt/locale/starwels_en_GB.ts \
  28. qt/locale/starwels_en.ts \
  29. qt/locale/starwels_en_US.ts \
  30. qt/locale/starwels_eo.ts \
  31. qt/locale/starwels_es_419.ts \
  32. qt/locale/starwels_es_AR.ts \
  33. qt/locale/starwels_es_CL.ts \
  34. qt/locale/starwels_es_CO.ts \
  35. qt/locale/starwels_es_DO.ts \
  36. qt/locale/starwels_es_ES.ts \
  37. qt/locale/starwels_es_MX.ts \
  38. qt/locale/starwels_es.ts \
  39. qt/locale/starwels_es_UY.ts \
  40. qt/locale/starwels_es_VE.ts \
  41. qt/locale/starwels_et_EE.ts \
  42. qt/locale/starwels_et.ts \
  43. qt/locale/starwels_eu_ES.ts \
  44. qt/locale/starwels_fa_IR.ts \
  45. qt/locale/starwels_fa.ts \
  46. qt/locale/starwels_fi.ts \
  47. qt/locale/starwels_fr_CA.ts \
  48. qt/locale/starwels_fr_FR.ts \
  49. qt/locale/starwels_fr.ts \
  50. qt/locale/starwels_gl.ts \
  51. qt/locale/starwels_he_IL.ts \
  52. qt/locale/starwels_he.ts \
  53. qt/locale/starwels_hi_IN.ts \
  54. qt/locale/starwels_hr.ts \
  55. qt/locale/starwels_hu.ts \
  56. qt/locale/starwels_id_ID.ts \
  57. qt/locale/starwels_id.ts \
  58. qt/locale/starwels_it_IT.ts \
  59. qt/locale/starwels_it.ts \
  60. qt/locale/starwels_ja_JP.ts \
  61. qt/locale/starwels_ja.ts \
  62. qt/locale/starwels_ka.ts \
  63. qt/locale/starwels_kk_KZ.ts \
  64. qt/locale/starwels_ko_KR.ts \
  65. qt/locale/starwels_ku_IQ.ts \
  66. qt/locale/starwels_ky.ts \
  67. qt/locale/starwels_la.ts \
  68. qt/locale/starwels_lt.ts \
  69. qt/locale/starwels_lv_LV.ts \
  70. qt/locale/starwels_mk_MK.ts \
  71. qt/locale/starwels_mn.ts \
  72. qt/locale/starwels_ms_MY.ts \
  73. qt/locale/starwels_my.ts \
  74. qt/locale/starwels_nb_NO.ts \
  75. qt/locale/starwels_nb.ts \
  76. qt/locale/starwels_ne.ts \
  77. qt/locale/starwels_nl_NL.ts \
  78. qt/locale/starwels_nl.ts \
  79. qt/locale/starwels_pam.ts \
  80. qt/locale/starwels_pl.ts \
  81. qt/locale/starwels_pt_BR.ts \
  82. qt/locale/starwels_pt_PT.ts \
  83. qt/locale/starwels_ro_RO.ts \
  84. qt/locale/starwels_ro.ts \
  85. qt/locale/starwels_ru_RU.ts \
  86. qt/locale/starwels_ru.ts \
  87. qt/locale/starwels_si.ts \
  88. qt/locale/starwels_sk.ts \
  89. qt/locale/starwels_sl_SI.ts \
  90. qt/locale/starwels_sq.ts \
  91. qt/locale/starwels_sr@latin.ts \
  92. qt/locale/starwels_sr.ts \
  93. qt/locale/starwels_sv.ts \
  94. qt/locale/starwels_ta.ts \
  95. qt/locale/starwels_te.ts \
  96. qt/locale/starwels_th_TH.ts \
  97. qt/locale/starwels_th.ts \
  98. qt/locale/starwels_tr_TR.ts \
  99. qt/locale/starwels_tr.ts \
  100. qt/locale/starwels_uk.ts \
  101. qt/locale/starwels_ur_PK.ts \
  102. qt/locale/starwels_uz@Cyrl.ts \
  103. qt/locale/starwels_vi.ts \
  104. qt/locale/starwels_vi_VN.ts \
  105. qt/locale/starwels_zh_CN.ts \
  106. qt/locale/starwels_zh_HK.ts \
  107. qt/locale/starwels_zh.ts \
  108. qt/locale/starwels_zh_TW.ts
  109. QT_FORMS_UI = \
  110. qt/forms/addressbookpage.ui \
  111. qt/forms/askpassphrasedialog.ui \
  112. qt/forms/coincontroldialog.ui \
  113. qt/forms/editaddressdialog.ui \
  114. qt/forms/helpmessagedialog.ui \
  115. qt/forms/intro.ui \
  116. qt/forms/modaloverlay.ui \
  117. qt/forms/openuridialog.ui \
  118. qt/forms/optionsdialog.ui \
  119. qt/forms/overviewpage.ui \
  120. qt/forms/receivecoinsdialog.ui \
  121. qt/forms/receiverequestdialog.ui \
  122. qt/forms/debugwindow.ui \
  123. qt/forms/sendcoinsdialog.ui \
  124. qt/forms/sendcoinsentry.ui \
  125. qt/forms/signverifymessagedialog.ui \
  126. qt/forms/transactiondescdialog.ui
  127. QT_MOC_CPP = \
  128. qt/moc_addressbookpage.cpp \
  129. qt/moc_addresstablemodel.cpp \
  130. qt/moc_askpassphrasedialog.cpp \
  131. qt/moc_bantablemodel.cpp \
  132. qt/moc_starwelsaddressvalidator.cpp \
  133. qt/moc_starwelsamountfield.cpp \
  134. qt/moc_starwelsgui.cpp \
  135. qt/moc_starwelsunits.cpp \
  136. qt/moc_callback.cpp \
  137. qt/moc_clientmodel.cpp \
  138. qt/moc_coincontroldialog.cpp \
  139. qt/moc_coincontroltreewidget.cpp \
  140. qt/moc_csvmodelwriter.cpp \
  141. qt/moc_editaddressdialog.cpp \
  142. qt/moc_guiutil.cpp \
  143. qt/moc_intro.cpp \
  144. qt/moc_macdockiconhandler.cpp \
  145. qt/moc_macnotificationhandler.cpp \
  146. qt/moc_modaloverlay.cpp \
  147. qt/moc_notificator.cpp \
  148. qt/moc_openuridialog.cpp \
  149. qt/moc_optionsdialog.cpp \
  150. qt/moc_optionsmodel.cpp \
  151. qt/moc_overviewpage.cpp \
  152. qt/moc_peertablemodel.cpp \
  153. qt/moc_paymentserver.cpp \
  154. qt/moc_qvalidatedlineedit.cpp \
  155. qt/moc_qvaluecombobox.cpp \
  156. qt/moc_receivecoinsdialog.cpp \
  157. qt/moc_receiverequestdialog.cpp \
  158. qt/moc_recentrequeststablemodel.cpp \
  159. qt/moc_rpcconsole.cpp \
  160. qt/moc_sendcoinsdialog.cpp \
  161. qt/moc_sendcoinsentry.cpp \
  162. qt/moc_signverifymessagedialog.cpp \
  163. qt/moc_splashscreen.cpp \
  164. qt/moc_trafficgraphwidget.cpp \
  165. qt/moc_transactiondesc.cpp \
  166. qt/moc_transactiondescdialog.cpp \
  167. qt/moc_transactionfilterproxy.cpp \
  168. qt/moc_transactiontablemodel.cpp \
  169. qt/moc_transactionview.cpp \
  170. qt/moc_utilitydialog.cpp \
  171. qt/moc_walletframe.cpp \
  172. qt/moc_walletmodel.cpp \
  173. qt/moc_walletview.cpp
  174. STARWELS_MM = \
  175. qt/macdockiconhandler.mm \
  176. qt/macnotificationhandler.mm
  177. QT_MOC = \
  178. qt/starwels.moc \
  179. qt/starwelsamountfield.moc \
  180. qt/callback.moc \
  181. qt/intro.moc \
  182. qt/overviewpage.moc \
  183. qt/rpcconsole.moc
  184. QT_QRC_CPP = qt/qrc_starwels.cpp
  185. QT_QRC = qt/starwels.qrc
  186. QT_QRC_LOCALE_CPP = qt/qrc_starwels_locale.cpp
  187. QT_QRC_LOCALE = qt/starwels_locale.qrc
  188. PROTOBUF_CC = qt/paymentrequest.pb.cc
  189. PROTOBUF_H = qt/paymentrequest.pb.h
  190. PROTOBUF_PROTO = qt/paymentrequest.proto
  191. STARWELS_QT_H = \
  192. qt/addressbookpage.h \
  193. qt/addresstablemodel.h \
  194. qt/askpassphrasedialog.h \
  195. qt/bantablemodel.h \
  196. qt/starwelsaddressvalidator.h \
  197. qt/starwelsamountfield.h \
  198. qt/starwelsgui.h \
  199. qt/starwelsunits.h \
  200. qt/callback.h \
  201. qt/clientmodel.h \
  202. qt/coincontroldialog.h \
  203. qt/coincontroltreewidget.h \
  204. qt/csvmodelwriter.h \
  205. qt/editaddressdialog.h \
  206. qt/guiconstants.h \
  207. qt/guiutil.h \
  208. qt/intro.h \
  209. qt/macdockiconhandler.h \
  210. qt/macnotificationhandler.h \
  211. qt/modaloverlay.h \
  212. qt/networkstyle.h \
  213. qt/notificator.h \
  214. qt/openuridialog.h \
  215. qt/optionsdialog.h \
  216. qt/optionsmodel.h \
  217. qt/overviewpage.h \
  218. qt/paymentrequestplus.h \
  219. qt/paymentserver.h \
  220. qt/peertablemodel.h \
  221. qt/platformstyle.h \
  222. qt/qvalidatedlineedit.h \
  223. qt/qvaluecombobox.h \
  224. qt/receivecoinsdialog.h \
  225. qt/receiverequestdialog.h \
  226. qt/recentrequeststablemodel.h \
  227. qt/rpcconsole.h \
  228. qt/sendcoinsdialog.h \
  229. qt/sendcoinsentry.h \
  230. qt/signverifymessagedialog.h \
  231. qt/splashscreen.h \
  232. qt/trafficgraphwidget.h \
  233. qt/transactiondesc.h \
  234. qt/transactiondescdialog.h \
  235. qt/transactionfilterproxy.h \
  236. qt/transactionrecord.h \
  237. qt/transactiontablemodel.h \
  238. qt/transactionview.h \
  239. qt/utilitydialog.h \
  240. qt/walletframe.h \
  241. qt/walletmodel.h \
  242. qt/walletmodeltransaction.h \
  243. qt/walletview.h \
  244. qt/winshutdownmonitor.h
  245. RES_ICONS = \
  246. qt/res/icons/add.png \
  247. qt/res/icons/address-book.png \
  248. qt/res/icons/about.png \
  249. qt/res/icons/about_qt.png \
  250. qt/res/icons/starwels.ico \
  251. qt/res/icons/starwels_ai.ico \
  252. qt/res/icons/starwels.png \
  253. qt/res/icons/chevron.png \
  254. qt/res/icons/clock1.png \
  255. qt/res/icons/clock2.png \
  256. qt/res/icons/clock3.png \
  257. qt/res/icons/clock4.png \
  258. qt/res/icons/clock5.png \
  259. qt/res/icons/configure.png \
  260. qt/res/icons/connect0.png \
  261. qt/res/icons/connect1.png \
  262. qt/res/icons/connect2.png \
  263. qt/res/icons/connect3.png \
  264. qt/res/icons/connect4.png \
  265. qt/res/icons/debugwindow.png \
  266. qt/res/icons/edit.png \
  267. qt/res/icons/editcopy.png \
  268. qt/res/icons/editpaste.png \
  269. qt/res/icons/export.png \
  270. qt/res/icons/eye.png \
  271. qt/res/icons/eye_minus.png \
  272. qt/res/icons/eye_plus.png \
  273. qt/res/icons/filesave.png \
  274. qt/res/icons/fontbigger.png \
  275. qt/res/icons/fontsmaller.png \
  276. qt/res/icons/hd_disabled.png \
  277. qt/res/icons/hd_enabled.png \
  278. qt/res/icons/history.png \
  279. qt/res/icons/info.png \
  280. qt/res/icons/key.png \
  281. qt/res/icons/lock_closed.png \
  282. qt/res/icons/lock_open.png \
  283. qt/res/icons/network_disabled.png \
  284. qt/res/icons/open.png \
  285. qt/res/icons/overview.png \
  286. qt/res/icons/quit.png \
  287. qt/res/icons/receive.png \
  288. qt/res/icons/remove.png \
  289. qt/res/icons/send.png \
  290. qt/res/icons/synced.png \
  291. qt/res/icons/transaction0.png \
  292. qt/res/icons/transaction2.png \
  293. qt/res/icons/transaction_abandoned.png \
  294. qt/res/icons/transaction_conflicted.png \
  295. qt/res/icons/tx_inout.png \
  296. qt/res/icons/tx_input.png \
  297. qt/res/icons/tx_output.png \
  298. qt/res/icons/tx_mined.png \
  299. qt/res/icons/warning.png \
  300. qt/res/icons/verify.png
  301. STARWELS_QT_BASE_CPP = \
  302. qt/bantablemodel.cpp \
  303. qt/starwelsaddressvalidator.cpp \
  304. qt/starwelsamountfield.cpp \
  305. qt/starwelsgui.cpp \
  306. qt/starwelsunits.cpp \
  307. qt/clientmodel.cpp \
  308. qt/csvmodelwriter.cpp \
  309. qt/guiutil.cpp \
  310. qt/intro.cpp \
  311. qt/modaloverlay.cpp \
  312. qt/networkstyle.cpp \
  313. qt/notificator.cpp \
  314. qt/optionsdialog.cpp \
  315. qt/optionsmodel.cpp \
  316. qt/peertablemodel.cpp \
  317. qt/platformstyle.cpp \
  318. qt/qvalidatedlineedit.cpp \
  319. qt/qvaluecombobox.cpp \
  320. qt/rpcconsole.cpp \
  321. qt/splashscreen.cpp \
  322. qt/trafficgraphwidget.cpp \
  323. qt/utilitydialog.cpp
  324. STARWELS_QT_WINDOWS_CPP = qt/winshutdownmonitor.cpp
  325. STARWELS_QT_WALLET_CPP = \
  326. qt/addressbookpage.cpp \
  327. qt/addresstablemodel.cpp \
  328. qt/askpassphrasedialog.cpp \
  329. qt/coincontroldialog.cpp \
  330. qt/coincontroltreewidget.cpp \
  331. qt/editaddressdialog.cpp \
  332. qt/openuridialog.cpp \
  333. qt/overviewpage.cpp \
  334. qt/paymentrequestplus.cpp \
  335. qt/paymentserver.cpp \
  336. qt/receivecoinsdialog.cpp \
  337. qt/receiverequestdialog.cpp \
  338. qt/recentrequeststablemodel.cpp \
  339. qt/sendcoinsdialog.cpp \
  340. qt/sendcoinsentry.cpp \
  341. qt/signverifymessagedialog.cpp \
  342. qt/transactiondesc.cpp \
  343. qt/transactiondescdialog.cpp \
  344. qt/transactionfilterproxy.cpp \
  345. qt/transactionrecord.cpp \
  346. qt/transactiontablemodel.cpp \
  347. qt/transactionview.cpp \
  348. qt/walletframe.cpp \
  349. qt/walletmodel.cpp \
  350. qt/walletmodeltransaction.cpp \
  351. qt/walletview.cpp
  352. STARWELS_QT_CPP = $(STARWELS_QT_BASE_CPP)
  353. if TARGET_WINDOWS
  354. STARWELS_QT_CPP += $(STARWELS_QT_WINDOWS_CPP)
  355. endif
  356. if ENABLE_WALLET
  357. STARWELS_QT_CPP += $(STARWELS_QT_WALLET_CPP)
  358. endif
  359. RES_IMAGES =
  360. RES_MOVIES = $(wildcard $(srcdir)/qt/res/movies/spinner-*.png)
  361. STARWELS_RC = qt/res/starwels-qt-res.rc
  362. STARWELS_QT_INCLUDES = -I$(builddir)/qt -I$(srcdir)/qt -I$(srcdir)/qt/forms \
  363. -I$(builddir)/qt/forms -DQT_NO_KEYWORDS
  364. qt_libstarwelsqt_a_CPPFLAGS = $(AM_CPPFLAGS) $(STARWELS_INCLUDES) $(STARWELS_QT_INCLUDES) \
  365. $(QT_INCLUDES) $(QT_DBUS_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
  366. qt_libstarwelsqt_a_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
  367. qt_libstarwelsqt_a_SOURCES = $(STARWELS_QT_CPP) $(STARWELS_QT_H) $(QT_FORMS_UI) \
  368. $(QT_QRC) $(QT_QRC_LOCALE) $(QT_TS) $(PROTOBUF_PROTO) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES)
  369. nodist_qt_libstarwelsqt_a_SOURCES = $(QT_MOC_CPP) $(QT_MOC) $(PROTOBUF_CC) \
  370. $(PROTOBUF_H) $(QT_QRC_CPP) $(QT_QRC_LOCALE_CPP)
  371. # forms/foo.h -> forms/ui_foo.h
  372. QT_FORMS_H=$(join $(dir $(QT_FORMS_UI)),$(addprefix ui_, $(notdir $(QT_FORMS_UI:.ui=.h))))
  373. # Most files will depend on the forms and moc files as includes. Generate them
  374. # before anything else.
  375. $(QT_MOC): $(QT_FORMS_H)
  376. $(qt_libstarwelsqt_a_OBJECTS) $(qt_starwels_qt_OBJECTS) : | $(QT_MOC)
  377. #Generating these with a half-written protobuf header leads to wacky results.
  378. #This makes sure it's done.
  379. $(QT_MOC): $(PROTOBUF_H)
  380. $(QT_MOC_CPP): $(PROTOBUF_H)
  381. # starwels-qt binary #
  382. qt_starwels_qt_CPPFLAGS = $(AM_CPPFLAGS) $(STARWELS_INCLUDES) $(STARWELS_QT_INCLUDES) \
  383. $(QT_INCLUDES) $(PROTOBUF_CFLAGS) $(QR_CFLAGS)
  384. qt_starwels_qt_CXXFLAGS = $(AM_CXXFLAGS) $(QT_PIE_FLAGS)
  385. qt_starwels_qt_SOURCES = qt/starwels.cpp
  386. if TARGET_DARWIN
  387. qt_starwels_qt_SOURCES += $(STARWELS_MM)
  388. endif
  389. if TARGET_WINDOWS
  390. qt_starwels_qt_SOURCES += $(STARWELS_RC)
  391. endif
  392. qt_starwels_qt_LDADD = qt/libstarwelsqt.a $(LIBSTARWELS_SERVER)
  393. if ENABLE_WALLET
  394. qt_starwels_qt_LDADD += $(LIBSTARWELS_WALLET)
  395. endif
  396. if ENABLE_ZMQ
  397. qt_starwels_qt_LDADD += $(LIBSTARWELS_ZMQ) $(ZMQ_LIBS)
  398. endif
  399. qt_starwels_qt_LDADD += $(LIBSTARWELS_CLI) $(LIBSTARWELS_COMMON) $(LIBSTARWELS_UTIL) $(LIBSTARWELS_CONSENSUS) $(LIBSTARWELS_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) $(LIBLEVELDB_SSE42) $(LIBMEMENV) \
  400. $(BOOST_LIBS) $(QT_LIBS) $(QT_DBUS_LIBS) $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS) $(LIBSECP256K1) \
  401. $(EVENT_PTHREADS_LIBS) $(EVENT_LIBS)
  402. qt_starwels_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
  403. qt_starwels_qt_LIBTOOLFLAGS = --tag CXX
  404. #locale/foo.ts -> locale/foo.qm
  405. QT_QM=$(QT_TS:.ts=.qm)
  406. SECONDARY: $(QT_QM)
  407. $(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)
  408. @test -n $(XGETTEXT) || echo "xgettext is required for updating translations"
  409. $(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 $^
  410. 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)
  411. @test -n $(LUPDATE) || echo "lupdate is required for updating translations"
  412. $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LUPDATE) $^ -locations relative -no-obsolete -ts $(srcdir)/qt/locale/starwels_en.ts
  413. $(QT_QRC_LOCALE_CPP): $(QT_QRC_LOCALE) $(QT_QM)
  414. @test -f $(RCC)
  415. @cp -f $< $(@D)/temp_$(<F)
  416. $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name starwels_locale $(@D)/temp_$(<F) | \
  417. $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
  418. @rm $(@D)/temp_$(<F)
  419. $(QT_QRC_CPP): $(QT_QRC) $(QT_FORMS_H) $(RES_ICONS) $(RES_IMAGES) $(RES_MOVIES) $(PROTOBUF_H)
  420. @test -f $(RCC)
  421. $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(RCC) -name starwels $< | \
  422. $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
  423. CLEAN_QT = $(nodist_qt_libstarwelsqt_a_SOURCES) $(QT_QM) $(QT_FORMS_H) qt/*.gcda qt/*.gcno
  424. CLEANFILES += $(CLEAN_QT)
  425. starwels_qt_clean: FORCE
  426. rm -f $(CLEAN_QT) $(qt_libstarwelsqt_a_OBJECTS) $(qt_starwels_qt_OBJECTS) qt/starwels-qt$(EXEEXT) $(LIBSTARWELSQT)
  427. starwels_qt : qt/starwels-qt$(EXEEXT)
  428. ui_%.h: %.ui
  429. @test -f $(UIC)
  430. @$(MKDIR_P) $(@D)
  431. $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(UIC) -o $@ $< || (echo "Error creating $@"; false)
  432. %.moc: %.cpp
  433. $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(DEFAULT_INCLUDES) $(QT_INCLUDES) $(MOC_DEFS) $< | \
  434. $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
  435. moc_%.cpp: %.h
  436. $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(MOC) $(DEFAULT_INCLUDES) $(QT_INCLUDES) $(MOC_DEFS) $< | \
  437. $(SED) -e '/^\*\*.*Created:/d' -e '/^\*\*.*by:/d' > $@
  438. %.qm: %.ts
  439. @test -f $(LRELEASE)
  440. @$(MKDIR_P) $(@D)
  441. $(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LRELEASE) -silent $< -qm $@