2006-03-05 17:24:44 +00:00
|
|
|
include $(top_srcdir)/config/common.am
|
|
|
|
|
2007-08-11 15:48:15 +00:00
|
|
|
CLEANFILES += $(UIFILES:%.ui=ui_%.h)
|
2007-08-19 09:44:34 +00:00
|
|
|
CLEANFILES += $(MOCEDFILES)
|
2006-05-18 09:37:35 +00:00
|
|
|
|
2007-08-11 15:48:15 +00:00
|
|
|
BUILT_SOURCES = $(UIFILES:%.ui=ui_%.h)
|
2007-08-10 23:19:07 +00:00
|
|
|
BUILT_SOURCES += $(MOCEDFILES)
|
2006-05-18 09:37:35 +00:00
|
|
|
|
2007-10-03 21:56:32 +00:00
|
|
|
######################### Qt stuff #############################
|
2007-08-10 23:19:07 +00:00
|
|
|
# Use _() for localization instead of tr() or trUtf8()
|
|
|
|
UIC4FLAGS=-tr lyx::qt_
|
|
|
|
|
2007-08-11 15:48:15 +00:00
|
|
|
ui_%.h: ui/%.ui
|
2007-08-10 23:19:07 +00:00
|
|
|
$(UIC4) $(UIC4FLAGS) $< -o $@
|
2006-05-18 08:51:12 +00:00
|
|
|
|
2007-08-19 09:44:34 +00:00
|
|
|
MOCEDFILES = $(MOCHEADER:%.h=%_moc.cpp)
|
2006-05-18 08:51:12 +00:00
|
|
|
|
|
|
|
%_moc.cpp: %.h
|
|
|
|
$(MOC4) -o $@ $<
|
|
|
|
|
2007-10-03 21:56:32 +00:00
|
|
|
Resources.qrc: Makefile
|
|
|
|
echo "<!DOCTYPE RCC><RCC version='1.0'><qresource>" > $@
|
|
|
|
find $(top_srcdir)/lib/images -name '*.png' \
|
|
|
|
| sed -e 's:$(top_srcdir)/lib/\(.*\):<file alias="\1">&</file>:' \
|
|
|
|
>> $@
|
|
|
|
echo "</qresource></RCC>" >> $@
|
|
|
|
|
|
|
|
Resources.cpp: Resources.qrc
|
2007-10-04 16:57:16 +00:00
|
|
|
$(RCC4) $< -o $@
|
2007-10-03 21:56:32 +00:00
|
|
|
|
|
|
|
|
2007-08-10 23:19:07 +00:00
|
|
|
######################### LIBRARIES #############################
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-10-02 20:34:55 +00:00
|
|
|
noinst_LTLIBRARIES = liblyxqt4.la
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-08-10 23:19:07 +00:00
|
|
|
liblyxqt4_la_DEPENDENCIES = $(MOCEDFILES)
|
2007-08-10 22:33:54 +00:00
|
|
|
liblyxqt4_la_LDFLAGS = $(QT4_LDFLAGS)
|
|
|
|
liblyxqt4_la_LIBADD = $(QT4_LIB)
|
2007-08-10 23:19:07 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
AM_CPPFLAGS += \
|
|
|
|
$(QT4_CPPFLAGS) \
|
|
|
|
-I$(top_srcdir)/src \
|
|
|
|
-I$(top_srcdir)/src/frontends \
|
|
|
|
-I$(top_srcdir)/images \
|
|
|
|
$(QT4_INCLUDES) $(BOOST_INCLUDES) \
|
|
|
|
-I$(top_srcdir)/src/frontends/controllers
|
|
|
|
|
2007-08-19 09:44:34 +00:00
|
|
|
SOURCEFILES = \
|
2007-10-07 21:38:06 +00:00
|
|
|
../ButtonPolicy.cpp \
|
|
|
|
../ButtonPolicy.h \
|
|
|
|
../Dialog.cpp \
|
|
|
|
../Dialog.h \
|
|
|
|
../frontend_helpers.cpp \
|
|
|
|
../frontend_helpers.h \
|
2007-10-03 21:56:32 +00:00
|
|
|
Resources.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
Action.cpp \
|
2007-04-28 20:44:46 +00:00
|
|
|
alert_pimpl.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
BulletsModule.cpp \
|
2007-09-03 05:59:32 +00:00
|
|
|
ButtonController.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
ColorCache.cpp \
|
2007-08-11 23:36:42 +00:00
|
|
|
Dialogs.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
EmptyTable.cpp \
|
2007-08-11 23:36:42 +00:00
|
|
|
FileDialog.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
FloatPlacement.cpp \
|
|
|
|
GuiAbout.cpp \
|
|
|
|
GuiApplication.cpp \
|
|
|
|
GuiBibitem.cpp \
|
|
|
|
GuiBibtex.cpp \
|
|
|
|
GuiBox.cpp \
|
|
|
|
GuiBranch.cpp \
|
|
|
|
GuiBranches.cpp \
|
|
|
|
GuiChanges.cpp \
|
|
|
|
GuiCharacter.cpp \
|
|
|
|
GuiCitation.cpp \
|
2007-08-11 23:36:42 +00:00
|
|
|
GuiClipboard.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiCommandBuffer.cpp \
|
|
|
|
GuiCommandEdit.cpp \
|
2007-08-31 22:37:05 +00:00
|
|
|
GuiDelimiter.cpp \
|
2007-09-03 05:59:32 +00:00
|
|
|
GuiDialog.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiDocument.cpp \
|
2007-08-31 15:42:35 +00:00
|
|
|
GuiEmbeddedFiles.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiErrorList.cpp \
|
|
|
|
GuiERT.cpp \
|
|
|
|
GuiExternal.cpp \
|
|
|
|
GuiFloat.cpp \
|
|
|
|
GuiFontExample.cpp \
|
2007-08-11 23:36:42 +00:00
|
|
|
GuiFontLoader.cpp \
|
|
|
|
GuiFontMetrics.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiGraphics.cpp \
|
2007-10-13 19:06:09 +00:00
|
|
|
GuiHyperlink.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiImage.cpp \
|
2007-08-11 20:55:10 +00:00
|
|
|
GuiImplementation.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiInclude.cpp \
|
|
|
|
GuiIndex.cpp \
|
|
|
|
GuiKeySymbol.cpp \
|
|
|
|
GuiListings.cpp \
|
|
|
|
GuiLog.cpp \
|
2007-10-07 20:34:09 +00:00
|
|
|
GuiMath.cpp \
|
2007-08-31 22:37:05 +00:00
|
|
|
GuiMathMatrix.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiMenubar.cpp \
|
|
|
|
GuiNomencl.cpp \
|
|
|
|
GuiNote.cpp \
|
|
|
|
GuiPainter.cpp \
|
|
|
|
GuiParagraph.cpp \
|
|
|
|
GuiPopupMenu.cpp \
|
|
|
|
GuiPrefs.cpp \
|
|
|
|
GuiPrint.cpp \
|
|
|
|
GuiRef.cpp \
|
|
|
|
GuiSearch.cpp \
|
|
|
|
GuiSelection.cpp \
|
|
|
|
GuiSelectionManager.cpp \
|
|
|
|
GuiSendto.cpp \
|
|
|
|
GuiSetBorder.cpp \
|
|
|
|
GuiShowFile.cpp \
|
|
|
|
GuiSpellchecker.cpp \
|
|
|
|
GuiTabular.cpp \
|
|
|
|
GuiTabularCreate.cpp \
|
|
|
|
GuiTexinfo.cpp \
|
|
|
|
GuiThesaurus.cpp \
|
|
|
|
GuiToc.cpp \
|
|
|
|
GuiToolbar.cpp \
|
2007-10-01 20:45:50 +00:00
|
|
|
GuiToolbars.cpp \
|
2007-08-11 20:55:10 +00:00
|
|
|
GuiView.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiViewSource.cpp \
|
|
|
|
GuiVSpace.cpp \
|
2007-08-11 20:55:10 +00:00
|
|
|
GuiWorkArea.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiWrap.cpp \
|
2007-08-11 20:55:10 +00:00
|
|
|
IconPalette.cpp \
|
|
|
|
InsertTableWidget.cpp \
|
|
|
|
LengthCombo.cpp \
|
|
|
|
LyXFileDialog.cpp \
|
2007-10-06 19:03:41 +00:00
|
|
|
LaTeXHighlighter.cpp \
|
2007-08-11 20:55:10 +00:00
|
|
|
PanelStack.cpp \
|
2007-08-31 05:53:55 +00:00
|
|
|
qt_helpers.cpp \
|
2007-08-19 09:44:34 +00:00
|
|
|
TocModel.cpp \
|
|
|
|
TocWidget.cpp \
|
|
|
|
Validator.cpp
|
|
|
|
|
|
|
|
NOMOCHEADER = \
|
2007-09-03 05:59:32 +00:00
|
|
|
ButtonController.h \
|
2007-10-09 19:52:34 +00:00
|
|
|
DialogView.h \
|
2007-08-19 09:44:34 +00:00
|
|
|
GuiFontLoader.h \
|
|
|
|
GuiFontMetrics.h \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiImage.h \
|
2007-10-09 19:34:27 +00:00
|
|
|
GuiMath.h \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiPainter.h \
|
2007-10-01 20:45:50 +00:00
|
|
|
GuiToolbars.h \
|
2007-08-19 09:44:34 +00:00
|
|
|
qt_helpers.h
|
|
|
|
|
|
|
|
MOCHEADER = \
|
|
|
|
Action.h \
|
|
|
|
BulletsModule.h \
|
|
|
|
ColorCache.h \
|
|
|
|
DockView.h \
|
|
|
|
EmptyTable.h \
|
|
|
|
FloatPlacement.h \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiAbout.h \
|
2007-08-19 09:44:34 +00:00
|
|
|
GuiApplication.h \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiBibitem.h \
|
|
|
|
GuiBibtex.h \
|
|
|
|
GuiBox.h \
|
|
|
|
GuiBranches.h \
|
|
|
|
GuiBranch.h \
|
|
|
|
GuiChanges.h \
|
|
|
|
GuiCharacter.h \
|
|
|
|
GuiCitation.h \
|
2007-09-30 20:28:15 +00:00
|
|
|
GuiClipboard.h \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiCommandBuffer.h \
|
|
|
|
GuiCommandEdit.h \
|
2007-08-31 22:37:05 +00:00
|
|
|
GuiDelimiter.h \
|
2007-09-03 05:59:32 +00:00
|
|
|
GuiDialog.h \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiDocument.h \
|
2007-08-31 15:42:35 +00:00
|
|
|
GuiEmbeddedFiles.h \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiErrorList.h \
|
|
|
|
GuiERT.h \
|
|
|
|
GuiExternal.h \
|
|
|
|
GuiFloat.h \
|
|
|
|
GuiFontExample.h \
|
2007-08-31 22:16:11 +00:00
|
|
|
GuiGraphics.h \
|
2007-10-13 19:06:09 +00:00
|
|
|
GuiHyperlink.h \
|
2007-08-19 09:44:34 +00:00
|
|
|
GuiImplementation.h \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiInclude.h \
|
|
|
|
GuiIndex.h \
|
|
|
|
GuiKeySymbol.h \
|
|
|
|
GuiListings.h \
|
|
|
|
GuiLog.h \
|
2007-08-31 22:37:05 +00:00
|
|
|
GuiMathMatrix.h \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiMenubar.h \
|
|
|
|
GuiNomencl.h \
|
|
|
|
GuiNote.h \
|
|
|
|
GuiParagraph.h \
|
|
|
|
GuiPopupMenu.h \
|
|
|
|
GuiPrefs.h \
|
2007-08-31 22:16:11 +00:00
|
|
|
GuiPrint.h \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiRef.h \
|
|
|
|
GuiSearch.h \
|
2007-10-01 08:18:14 +00:00
|
|
|
GuiSelection.h \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiSelectionManager.h \
|
|
|
|
GuiSendto.h \
|
|
|
|
GuiSetBorder.h \
|
|
|
|
GuiShowFile.h \
|
|
|
|
GuiSpellchecker.h \
|
|
|
|
GuiTabularCreate.h \
|
|
|
|
GuiTabular.h \
|
|
|
|
GuiTexinfo.h \
|
|
|
|
GuiThesaurus.h \
|
|
|
|
GuiToc.h \
|
|
|
|
GuiToolbar.h \
|
2007-08-19 09:44:34 +00:00
|
|
|
GuiView.h \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiViewSource.h \
|
|
|
|
GuiVSpace.h \
|
2007-08-19 09:44:34 +00:00
|
|
|
GuiWorkArea.h \
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiWrap.h \
|
2007-08-19 09:44:34 +00:00
|
|
|
IconPalette.h \
|
|
|
|
InsertTableWidget.h \
|
|
|
|
LengthCombo.h \
|
|
|
|
LyXFileDialog.h \
|
2007-10-06 19:03:41 +00:00
|
|
|
LaTeXHighlighter.h \
|
2007-08-19 09:44:34 +00:00
|
|
|
PanelStack.h \
|
2006-03-05 17:24:44 +00:00
|
|
|
qlkey.h \
|
2007-08-11 20:55:10 +00:00
|
|
|
TocModel.h \
|
|
|
|
TocWidget.h \
|
|
|
|
Validator.h
|
|
|
|
|
|
|
|
UIFILES = \
|
|
|
|
AboutUi.ui \
|
|
|
|
AskForTextUi.ui \
|
|
|
|
BibitemUi.ui \
|
|
|
|
BiblioUi.ui \
|
|
|
|
BibtexAddUi.ui \
|
|
|
|
BibtexUi.ui \
|
|
|
|
BoxUi.ui \
|
|
|
|
BranchesUi.ui \
|
|
|
|
BranchUi.ui \
|
|
|
|
BulletsUi.ui \
|
|
|
|
ChangesUi.ui \
|
|
|
|
CharacterUi.ui \
|
|
|
|
CitationUi.ui \
|
|
|
|
DelimiterUi.ui \
|
|
|
|
DocumentUi.ui \
|
2007-08-31 15:42:35 +00:00
|
|
|
EmbeddedFilesUi.ui \
|
2007-08-11 20:55:10 +00:00
|
|
|
ErrorListUi.ui \
|
|
|
|
ERTUi.ui \
|
|
|
|
ExternalUi.ui \
|
|
|
|
FloatPlacementUi.ui \
|
|
|
|
FloatUi.ui \
|
|
|
|
FontUi.ui \
|
|
|
|
GraphicsUi.ui \
|
2007-10-13 19:06:09 +00:00
|
|
|
HyperlinkUi.ui \
|
2007-08-11 20:55:10 +00:00
|
|
|
IncludeUi.ui \
|
|
|
|
IndexUi.ui \
|
|
|
|
LanguageUi.ui \
|
|
|
|
LaTeXUi.ui \
|
|
|
|
ListingsUi.ui \
|
|
|
|
LogUi.ui \
|
|
|
|
MarginsUi.ui \
|
|
|
|
MathMatrixUi.ui \
|
|
|
|
MathsUi.ui \
|
|
|
|
NomenclUi.ui \
|
|
|
|
NoteUi.ui \
|
|
|
|
NumberingUi.ui \
|
|
|
|
PageLayoutUi.ui \
|
|
|
|
ParagraphUi.ui \
|
2007-09-20 22:31:18 +00:00
|
|
|
PDFSupportUi.ui \
|
2007-08-11 20:55:10 +00:00
|
|
|
PreambleUi.ui \
|
|
|
|
PrefColorsUi.ui \
|
|
|
|
PrefConvertersUi.ui \
|
|
|
|
PrefDateUi.ui \
|
|
|
|
PrefDisplayUi.ui \
|
|
|
|
PrefFileformatsUi.ui \
|
|
|
|
PrefIdentityUi.ui \
|
|
|
|
PrefKeyboardUi.ui \
|
|
|
|
PrefLanguageUi.ui \
|
|
|
|
PrefLatexUi.ui \
|
|
|
|
PrefPathsUi.ui \
|
|
|
|
PrefPlaintextUi.ui \
|
|
|
|
PrefPrinterUi.ui \
|
|
|
|
PrefScreenFontsUi.ui \
|
|
|
|
PrefSpellcheckerUi.ui \
|
|
|
|
PrefsUi.ui \
|
|
|
|
PrefUi.ui \
|
|
|
|
PrintUi.ui \
|
|
|
|
RefUi.ui \
|
|
|
|
SearchUi.ui \
|
|
|
|
SendtoUi.ui \
|
|
|
|
ShowFileUi.ui \
|
|
|
|
SpellcheckerUi.ui \
|
|
|
|
TabularCreateUi.ui \
|
|
|
|
TabularUi.ui \
|
|
|
|
TexinfoUi.ui \
|
|
|
|
TextLayoutUi.ui \
|
|
|
|
ThesaurusUi.ui \
|
|
|
|
TocUi.ui \
|
|
|
|
ViewSourceUi.ui \
|
|
|
|
VSpaceUi.ui \
|
|
|
|
WrapUi.ui
|
2007-08-19 09:44:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
if MONOLITHIC_FRONTEND_QT4
|
|
|
|
|
|
|
|
|
|
|
|
liblyxqt4.cpp:
|
|
|
|
@echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@
|
|
|
|
|
|
|
|
liblyxqt4_la_SOURCES = \
|
|
|
|
liblyxqt4.cpp \
|
|
|
|
$(MOCHEADER) \
|
|
|
|
$(NOMOCHEADER)
|
|
|
|
|
|
|
|
BUILT_SOURCES += liblyxqt4.cpp
|
|
|
|
|
|
|
|
else
|
|
|
|
|
2007-08-31 18:30:23 +00:00
|
|
|
liblyxqt4.cpp:
|
|
|
|
touch $@
|
2007-08-19 09:44:34 +00:00
|
|
|
|
|
|
|
liblyxqt4_la_SOURCES = \
|
|
|
|
$(SOURCEFILES) \
|
|
|
|
$(MOCHEADER) \
|
|
|
|
$(NOMOCHEADER)
|
|
|
|
|
|
|
|
EXTRA_DIST = pch.h
|
|
|
|
BUILT_SOURCES += $(PCH_FILE)
|
|
|
|
AM_CPPFLAGS += $(PCH_FLAGS)
|
|
|
|
|
|
|
|
|
|
|
|
endif
|