1 include $(top_srcdir)/config/common.am
3 BUILT_SOURCES = $(UIFILES:%.ui=ui_%.h)
4 BUILT_SOURCES += $(MOCEDFILES)
5 BUILT_SOURCES += Resources.cpp Resources.qrc
7 CLEANFILES = $(BUILT_SOURCES)
9 ######################### Qt stuff #############################
10 # Use _() for localization instead of tr() or trUtf8()
13 # The ui_%.h pattern must match the filter in ../../../po/Rules-lyx
15 $(AM_V_GEN)$(QT_UIC) $(UICFLAGS) $< -o $@
17 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
19 QT_VERSION = $(shell IFS=.; set -- `echo $(QTLIB_VERSION)`; \
20 echo 0x0`echo "obase=16; $$1*65536+$$2*256+$$3" | bc`)
22 # The moc_%.cpp pattern must match the filter in ../../../po/Rules-lyx
24 $(AM_V_GEN)$(QT_MOC) -DQT_VERSION=$(QT_VERSION) -o $@ $<
26 Resources.qrc: Makefile
27 $(AM_V_GEN)echo "<!DOCTYPE RCC><RCC version='1.0'><qresource>" > $@ ; \
28 find $(top_srcdir)/lib/images -name '*.svgz' -o -name '*.png' -o -name '*.gif' \
30 | sed -e 's:$(top_srcdir)/lib/\(.*\):<file alias="\1">&</file>:' \
32 echo "</qresource></RCC>" >> $@
34 Resources.cpp: Resources.qrc
35 $(AM_V_GEN)$(QT_RCC) $< -name Resources -o $@
38 ######################### LIBRARIES #############################
40 noinst_LIBRARIES = liblyxqt.a
42 liblyxqt_a_DEPENDENCIES = $(MOCEDFILES)
46 -DQT_NO_CAST_TO_ASCII \
49 -I$(top_srcdir)/src/frontends \
50 -I$(top_srcdir)/images \
52 $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES)
61 ButtonController.cpp \
62 CategorizedCombo.cpp \
64 CustomizedWidgets.cpp \
83 GuiClickableLabel.cpp \
85 GuiCommandBuffer.cpp \
88 GuiCompareHistory.cpp \
115 GuiNomenclature.cpp \
122 GuiPrintNomencl.cpp \
124 GuiProgressView.cpp \
128 GuiSelectionManager.cpp \
132 GuiSpellchecker.cpp \
135 GuiTabularCreate.cpp \
147 InsertTableWidget.cpp \
148 InsetParamsDialog.cpp \
149 InsetParamsWidget.cpp \
152 LaTeXHighlighter.cpp \
160 ToolTipFormatter.cpp \
174 GuiWorkArea_Private.h \
184 CustomizedWidgets.h \
201 GuiClickableLabel.h \
206 GuiCompareHistory.h \
239 GuiSelectionManager.h \
258 InsertTableWidget.h \
259 InsetParamsDialog.h \
260 InsetParamsWidget.h \
278 BranchesUnknownUi.ui \
282 ChangeTrackingUi.ui \
287 CompareHistoryUi.ui \
293 FindAndReplaceUi.ui \
294 FloatPlacementUi.ui \
309 ListingsSettingsUi.ui \
328 PrefCompletionUi.ui \
329 PrefConvertersUi.ui \
330 PrefDocHandlingUi.ui \
334 PrefFileformatsUi.ui \
340 PrefScreenFontsUi.ui \
342 PrefSpellcheckerUi.ui \
367 nodist_liblyxqt_a_SOURCES = Resources.cpp
369 liblyxqt_a_SOURCES = \
374 EXTRA_DIST = CMakeLists.txt $(UIFILES:%=ui/%)