include $(top_srcdir)/config/common.am
-CLEANFILES += $(UIFILES:%.ui=ui_%.h)
-CLEANFILES += $(MOCEDFILES)
-
BUILT_SOURCES = $(UIFILES:%.ui=ui_%.h)
BUILT_SOURCES += $(MOCEDFILES)
BUILT_SOURCES += Resources.cpp Resources.qrc
+CLEANFILES += $(BUILT_SOURCES)
+
######################### Qt stuff #############################
# Use _() for localization instead of tr() or trUtf8()
UIC4FLAGS=-tr lyx::qt_
+# The ui_%.h pattern must match the filter in ../../../po/Rules-lyx
ui_%.h: ui/%.ui
- $(UIC4) $(UIC4FLAGS) $< -o $@
+ $(AM_V_GEN)$(UIC4) $(UIC4FLAGS) $< -o $@
+
+MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
-MOCEDFILES = $(MOCHEADER:%.h=%_moc.cpp)
+QT_VERSION = $(shell IFS=.; set -- `echo $(QT4_VERSION)`; \
+ echo 0x0`echo "obase=16; $$1*65536+$$2*256+$$3" | bc`)
-%_moc.cpp: %.h
- $(MOC4) -o $@ $<
+# The moc_%.cpp pattern must match the filter in ../../../po/Rules-lyx
+moc_%.cpp: %.h
+ $(AM_V_GEN)$(MOC4) -DQT_VERSION=$(QT_VERSION) -o $@ $<
Resources.qrc: Makefile
- echo "<!DOCTYPE RCC><RCC version='1.0'><qresource>" > $@
- find $(top_srcdir)/lib/images -name '*.png' \
+ $(AM_V_GEN)echo "<!DOCTYPE RCC><RCC version='1.0'><qresource>" > $@ ; \
+ find $(top_srcdir)/lib/images -name '*.png' -o -name '*.gif' \
| sed -e 's:$(top_srcdir)/lib/\(.*\):<file alias="\1">&</file>:' \
- >> $@
+ >> $@ ;\
echo "</qresource></RCC>" >> $@
Resources.cpp: Resources.qrc
- $(RCC4) $< -name Resources -o $@
+ $(AM_V_GEN)$(RCC4) $< -name Resources -o $@
######################### LIBRARIES #############################
-noinst_LTLIBRARIES = liblyxqt4.la
+noinst_LIBRARIES = liblyxqt4.a
-liblyxqt4_la_DEPENDENCIES = $(MOCEDFILES)
-liblyxqt4_la_LDFLAGS = $(QT4_LDFLAGS)
-liblyxqt4_la_LIBADD = $(QT4_LIB)
+liblyxqt4_a_DEPENDENCIES = $(MOCEDFILES)
AM_CPPFLAGS += \
$(QT4_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)
SOURCEFILES = \
- ../ButtonPolicy.cpp \
- ../ButtonPolicy.h \
- ../Dialog.cpp \
- ../Dialog.h \
+ ButtonPolicy.cpp \
+ ButtonPolicy.h \
+ Dialog.cpp \
+ Dialog.h \
Resources.cpp \
Action.cpp \
BulletsModule.cpp \
ButtonController.cpp \
ColorCache.cpp \
CustomizedWidgets.cpp \
- Dialogs.cpp \
EmptyTable.cpp \
+ FancyLineEdit.cpp \
FileDialog.cpp \
+ FindAndReplace.cpp \
FloatPlacement.cpp \
GuiAbout.cpp \
GuiAlert.cpp \
GuiClipboard.cpp \
GuiCommandBuffer.cpp \
GuiCommandEdit.cpp \
+ GuiCompare.cpp \
+ GuiCompareHistory.cpp \
+ GuiCompleter.cpp \
GuiDelimiter.cpp \
GuiDialog.cpp \
GuiDocument.cpp \
GuiErrorList.cpp \
GuiERT.cpp \
GuiExternal.cpp \
- GuiFloat.cpp \
GuiFontExample.cpp \
GuiFontLoader.cpp \
GuiFontMetrics.cpp \
GuiGraphics.cpp \
+ GuiHSpace.cpp \
GuiHyperlink.cpp \
+ GuiIdListModel.cpp \
GuiImage.cpp \
- GuiImplementation.cpp \
GuiInclude.cpp \
GuiIndex.cpp \
+ GuiIndices.cpp \
+ GuiInfo.cpp \
GuiKeySymbol.cpp \
+ GuiLabel.cpp \
+ GuiLine.cpp \
GuiListings.cpp \
GuiLog.cpp \
- GuiMath.cpp \
GuiMathMatrix.cpp \
- GuiMenubar.cpp \
- GuiNomencl.cpp \
+ GuiNomenclature.cpp \
GuiNote.cpp \
GuiPainter.cpp \
GuiParagraph.cpp \
- GuiPopupMenu.cpp \
+ GuiPhantom.cpp \
GuiPrefs.cpp \
GuiPrint.cpp \
+ GuiPrintindex.cpp \
+ GuiPrintNomencl.cpp \
+ GuiProgress.cpp \
+ GuiProgressView.cpp \
GuiRef.cpp \
GuiSearch.cpp \
GuiSelection.cpp \
GuiSetBorder.cpp \
GuiShowFile.cpp \
GuiSpellchecker.cpp \
+ GuiSymbols.cpp \
GuiTabular.cpp \
GuiTabularCreate.cpp \
GuiTexinfo.cpp \
GuiThesaurus.cpp \
GuiToc.cpp \
GuiToolbar.cpp \
- GuiToolbars.cpp \
GuiView.cpp \
GuiViewSource.cpp \
GuiVSpace.cpp \
GuiWorkArea.cpp \
GuiWrap.cpp \
IconPalette.cpp \
+ InGuiThread.cpp \
InsertTableWidget.cpp \
+ InsetParamsDialog.cpp \
+ InsetParamsWidget.cpp \
LengthCombo.cpp \
LyXFileDialog.cpp \
LaTeXHighlighter.cpp \
+ LayoutBox.cpp \
+ Menus.cpp \
PanelStack.cpp \
qt_helpers.cpp \
TocModel.cpp \
TocWidget.cpp \
+ Toolbars.cpp \
Validator.cpp
NOMOCHEADER = \
ButtonController.h \
+ ColorCache.h \
DialogView.h \
+ DockView.h \
+ FileDialog.h \
+ GuiFontExample.h \
GuiFontLoader.h \
GuiFontMetrics.h \
+ GuiIdListModel.h \
GuiImage.h \
- GuiMath.h \
+ GuiKeySymbol.h \
GuiPainter.h \
- GuiToolbars.h \
- qt_helpers.h
+ LaTeXHighlighter.h \
+ qt_i18n.h \
+ qt_helpers.h \
+ Toolbars.h
MOCHEADER = \
Action.h \
BulletsModule.h \
- ColorCache.h \
CustomizedWidgets.h \
- DockView.h \
EmptyTable.h \
+ FancyLineEdit.h \
+ FindAndReplace.h \
FloatPlacement.h \
GuiAbout.h \
GuiApplication.h \
GuiClipboard.h \
GuiCommandBuffer.h \
GuiCommandEdit.h \
+ GuiCompare.h \
+ GuiCompareHistory.h \
+ GuiCompleter.h \
GuiDelimiter.h \
GuiDialog.h \
GuiDocument.h \
GuiErrorList.h \
GuiERT.h \
GuiExternal.h \
- GuiFloat.h \
- GuiFontExample.h \
GuiGraphics.h \
+ GuiHSpace.h \
GuiHyperlink.h \
- GuiImplementation.h \
GuiInclude.h \
GuiIndex.h \
- GuiKeySymbol.h \
+ GuiIndices.h \
+ GuiInfo.h \
+ GuiLabel.h \
+ GuiLine.h \
GuiListings.h \
GuiLog.h \
GuiMathMatrix.h \
- GuiMenubar.h \
- GuiNomencl.h \
+ GuiNomenclature.h \
GuiNote.h \
GuiParagraph.h \
- GuiPopupMenu.h \
+ GuiPhantom.h \
GuiPrefs.h \
GuiPrint.h \
+ GuiPrintindex.h \
+ GuiPrintNomencl.h \
+ GuiProgress.h \
+ GuiProgressView.h \
GuiRef.h \
GuiSearch.h \
GuiSelection.h \
GuiSetBorder.h \
GuiShowFile.h \
GuiSpellchecker.h \
+ GuiSymbols.h \
GuiTabularCreate.h \
GuiTabular.h \
GuiTexinfo.h \
GuiWorkArea.h \
GuiWrap.h \
IconPalette.h \
+ InGuiThread.h \
InsertTableWidget.h \
+ InsetParamsDialog.h \
+ InsetParamsWidget.h \
+ LayoutBox.h \
LengthCombo.h \
LyXFileDialog.h \
- LaTeXHighlighter.h \
+ Menus.h \
PanelStack.h \
- qlkey.h \
TocModel.h \
TocWidget.h \
Validator.h
UIFILES = \
AboutUi.ui \
- AskForTextUi.ui \
BibitemUi.ui \
BiblioUi.ui \
BibtexAddUi.ui \
BibtexUi.ui \
BoxUi.ui \
BranchesUi.ui \
+ BranchesUnknownUi.ui \
BranchUi.ui \
BulletsUi.ui \
ChangesUi.ui \
CharacterUi.ui \
CitationUi.ui \
+ ColorUi.ui \
+ CompareUi.ui \
+ CompareHistoryUi.ui \
DelimiterUi.ui \
DocumentUi.ui \
ErrorListUi.ui \
ERTUi.ui \
ExternalUi.ui \
- EmbeddedFilesUi.ui \
+ FindAndReplaceUi.ui \
FloatPlacementUi.ui \
- FloatUi.ui \
FontUi.ui \
GraphicsUi.ui \
+ HSpaceUi.ui \
HyperlinkUi.ui \
IncludeUi.ui \
IndexUi.ui \
+ IndicesUi.ui \
+ InfoUi.ui \
+ InsetParamsUi.ui \
+ LabelUi.ui \
LanguageUi.ui \
LaTeXUi.ui \
+ LineUi.ui \
ListingsUi.ui \
+ ListingsSettingsUi.ui \
+ LocalLayoutUi.ui \
LogUi.ui \
MarginsUi.ui \
+ MasterChildUi.ui \
MathMatrixUi.ui \
MathsUi.ui \
+ ModulesUi.ui \
NomenclUi.ui \
NoteUi.ui \
NumberingUi.ui \
+ OutputUi.ui \
PageLayoutUi.ui \
ParagraphUi.ui \
PDFSupportUi.ui \
+ PhantomUi.ui \
PreambleUi.ui \
PrefColorsUi.ui \
+ PrefCompletionUi.ui \
PrefConvertersUi.ui \
- PrefDateUi.ui \
+ PrefOutputUi.ui \
PrefDisplayUi.ui \
+ PrefEditUi.ui \
PrefFileformatsUi.ui \
PrefIdentityUi.ui \
- PrefKeyboardUi.ui \
+ PrefInputUi.ui \
PrefLanguageUi.ui \
PrefLatexUi.ui \
PrefPathsUi.ui \
- PrefPlaintextUi.ui \
PrefPrinterUi.ui \
PrefScreenFontsUi.ui \
PrefShortcutsUi.ui \
PrefsUi.ui \
PrefUi.ui \
PrintUi.ui \
+ PrintindexUi.ui \
+ PrintNomenclUi.ui \
+ ProgressViewUi.ui \
RefUi.ui \
SearchUi.ui \
SendtoUi.ui \
ShortcutUi.ui \
ShowFileUi.ui \
SpellcheckerUi.ui \
+ SymbolsUi.ui \
TabularCreateUi.ui \
TabularUi.ui \
TexinfoUi.ui \
TextLayoutUi.ui \
ThesaurusUi.ui \
TocUi.ui \
+ ToggleWarningUi.ui \
ViewSourceUi.ui \
VSpaceUi.ui \
WrapUi.ui
-if MONOLITHIC_FRONTEND_QT4
-
-
liblyxqt4.cpp:
@echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@
-liblyxqt4_la_SOURCES = \
+if MONOLITHIC_FRONTEND_QT4
+
+liblyxqt4_a_SOURCES = \
liblyxqt4.cpp \
$(MOCHEADER) \
$(NOMOCHEADER)
BUILT_SOURCES += liblyxqt4.cpp
+CLEANFILES += liblyxqt4.cpp
else
-liblyxqt4.cpp:
- touch $@
-
-liblyxqt4_la_SOURCES = \
+liblyxqt4_a_SOURCES = \
$(SOURCEFILES) \
$(MOCHEADER) \
$(NOMOCHEADER)
-EXTRA_DIST = pch.h
+EXTRA_DIST = pch.h $(UIFILES:%=ui/%)
BUILT_SOURCES += $(PCH_FILE)
AM_CPPFLAGS += $(PCH_FLAGS)