BUILT_SOURCES += $(MOCEDFILES)
BUILT_SOURCES += Resources.cpp Resources.qrc
-CLEANFILES += $(BUILT_SOURCES)
+CLEANFILES = $(BUILT_SOURCES)
######################### Qt stuff #############################
# Use _() for localization instead of tr() or trUtf8()
-UIC4FLAGS=-tr lyx::qt_
+UICFLAGS=-tr lyx::qt_
# The ui_%.h pattern must match the filter in ../../../po/Rules-lyx
ui_%.h: ui/%.ui
- $(AM_V_GEN)$(UIC4) $(UIC4FLAGS) $< -o $@
+ $(AM_V_GEN)$(QT_UIC) $(UICFLAGS) $< -o $@
MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
-QT_VERSION = $(shell IFS=.; set -- `echo $(QT4_VERSION)`; \
+QT_VERSION = $(shell IFS=.; set -- `echo $(QTLIB_VERSION)`; \
echo 0x0`echo "obase=16; $$1*65536+$$2*256+$$3" | bc`)
# The moc_%.cpp pattern must match the filter in ../../../po/Rules-lyx
moc_%.cpp: %.h
- $(AM_V_GEN)$(MOC4) -DQT_VERSION=$(QT_VERSION) -o $@ $<
+ $(AM_V_GEN)$(QT_MOC) -DQT_VERSION=$(QT_VERSION) -o $@ $<
Resources.qrc: Makefile
$(AM_V_GEN)echo "<!DOCTYPE RCC><RCC version='1.0'><qresource>" > $@ ; \
- find $(top_srcdir)/lib/images -name '*.png' -o -name '*.gif' \
+ find $(top_srcdir)/lib/images -name '*.svgz' -o -name '*.png' -o -name '*.gif' \
| sed -e 's:$(top_srcdir)/lib/\(.*\):<file alias="\1">&</file>:' \
>> $@ ;\
echo "</qresource></RCC>" >> $@
Resources.cpp: Resources.qrc
- $(AM_V_GEN)$(RCC4) $< -name Resources -o $@
+ $(AM_V_GEN)$(QT_RCC) $< -name Resources -o $@
######################### LIBRARIES #############################
liblyxqt4_a_DEPENDENCIES = $(MOCEDFILES)
AM_CPPFLAGS += \
- $(QT4_CPPFLAGS) \
+ $(QT_CPPFLAGS) \
-DQT_NO_CAST_TO_ASCII \
-DQT_NO_STL \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/frontends \
-I$(top_srcdir)/images \
- $(QT4_INCLUDES) $(BOOST_INCLUDES)
+ $(QT_INCLUDES) $(BOOST_INCLUDES)
SOURCEFILES = \
ButtonPolicy.cpp \
Action.cpp \
BulletsModule.cpp \
ButtonController.cpp \
+ CategorizedCombo.cpp \
ColorCache.cpp \
CustomizedWidgets.cpp \
EmptyTable.cpp \
GuiParagraph.cpp \
GuiPhantom.cpp \
GuiPrefs.cpp \
- GuiPrint.cpp \
GuiPrintindex.cpp \
GuiPrintNomencl.cpp \
GuiProgress.cpp \
GuiImage.h \
GuiKeySymbol.h \
GuiPainter.h \
+ GuiWorkArea_Private.h \
LaTeXHighlighter.h \
qt_i18n.h \
qt_helpers.h \
MOCHEADER = \
Action.h \
BulletsModule.h \
+ CategorizedCombo.h \
CustomizedWidgets.h \
EmptyTable.h \
FancyLineEdit.h \
GuiParagraph.h \
GuiPhantom.h \
GuiPrefs.h \
- GuiPrint.h \
GuiPrintindex.h \
GuiPrintNomencl.h \
GuiProgress.h \
PrefColorsUi.ui \
PrefCompletionUi.ui \
PrefConvertersUi.ui \
+ PrefDocHandlingUi.ui \
PrefOutputUi.ui \
PrefDisplayUi.ui \
PrefEditUi.ui \
PrefLanguageUi.ui \
PrefLatexUi.ui \
PrefPathsUi.ui \
- PrefPrinterUi.ui \
PrefScreenFontsUi.ui \
PrefShortcutsUi.ui \
PrefSpellcheckerUi.ui \
PrefsUi.ui \
PrefUi.ui \
- PrintUi.ui \
PrintindexUi.ui \
PrintNomenclUi.ui \
ProgressViewUi.ui \
liblyxqt4.cpp:
@echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@
-if MONOLITHIC_FRONTEND_QT4
+if MONOLITHIC_FRONTEND_QT
liblyxqt4_a_SOURCES = \
liblyxqt4.cpp \
$(MOCHEADER) \
$(NOMOCHEADER)
-EXTRA_DIST = pch.h $(UIFILES:%=ui/%)
-BUILT_SOURCES += $(PCH_FILE)
-AM_CPPFLAGS += $(PCH_FLAGS)
-
+EXTRA_DIST = CMakeLists.txt $(UIFILES:%=ui/%)
endif