1include $(top_srcdir)/config/common.am 2 3BUILT_SOURCES = $(UIFILES:%.ui=ui_%.h) 4BUILT_SOURCES += $(MOCEDFILES) 5BUILT_SOURCES += Resources.cpp Resources.qrc 6 7CLEANFILES = $(BUILT_SOURCES) 8 9######################### Qt stuff ############################# 10# Use _() for localization instead of tr() or trUtf8() 11UICFLAGS=-tr lyx::qt_ 12 13# The ui_%.h pattern must match the filter in ../../../po/Rules-lyx 14ui_%.h: ui/%.ui 15 $(AM_V_GEN)$(QT_UIC) $(UICFLAGS) $< -o $@ 16 17MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp) 18 19QT_VERSION = $(shell IFS=.; set -- `echo $(QTLIB_VERSION)`; \ 20 echo 0x0`echo "obase=16; $$1*65536+$$2*256+$$3" | bc`) 21 22# The moc_%.cpp pattern must match the filter in ../../../po/Rules-lyx 23moc_%.cpp: %.h 24 $(AM_V_GEN)$(QT_MOC) -DQT_VERSION=$(QT_VERSION) -o $@ $< 25 26Resources.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' \ 29 | LC_ALL=C sort \ 30 | sed -e 's:$(top_srcdir)/lib/\(.*\):<file alias="\1">&</file>:' \ 31 >> $@ ;\ 32 echo "</qresource></RCC>" >> $@ 33 34Resources.cpp: Resources.qrc 35 $(AM_V_GEN)$(QT_RCC) $< -name Resources -o $@ 36 37 38######################### LIBRARIES ############################# 39 40noinst_LIBRARIES = liblyxqt4.a 41 42liblyxqt4_a_DEPENDENCIES = $(MOCEDFILES) 43 44AM_CPPFLAGS += \ 45 $(QT_CPPFLAGS) \ 46 -DQT_NO_CAST_TO_ASCII \ 47 -DQT_NO_STL \ 48 -I$(top_srcdir)/src \ 49 -I$(top_srcdir)/src/frontends \ 50 -I$(top_srcdir)/images \ 51 $(QT_INCLUDES) \ 52 $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES) 53 54SOURCEFILES = \ 55 ButtonPolicy.cpp \ 56 ButtonPolicy.h \ 57 Dialog.cpp \ 58 Dialog.h \ 59 Action.cpp \ 60 BulletsModule.cpp \ 61 ButtonController.cpp \ 62 CategorizedCombo.cpp \ 63 ColorCache.cpp \ 64 CustomizedWidgets.cpp \ 65 DialogView.cpp \ 66 DockView.cpp \ 67 EmptyTable.cpp \ 68 FancyLineEdit.cpp \ 69 FileDialog.cpp \ 70 FindAndReplace.cpp \ 71 FloatPlacement.cpp \ 72 GuiAbout.cpp \ 73 GuiAlert.cpp \ 74 GuiApplication.cpp \ 75 GuiBibitem.cpp \ 76 GuiBibtex.cpp \ 77 GuiBox.cpp \ 78 GuiBranch.cpp \ 79 GuiBranches.cpp \ 80 GuiChanges.cpp \ 81 GuiCharacter.cpp \ 82 GuiCitation.cpp \ 83 GuiClipboard.cpp \ 84 GuiCommandBuffer.cpp \ 85 GuiCommandEdit.cpp \ 86 GuiCompare.cpp \ 87 GuiCompareHistory.cpp \ 88 GuiCompleter.cpp \ 89 GuiDelimiter.cpp \ 90 GuiDialog.cpp \ 91 GuiDocument.cpp \ 92 GuiErrorList.cpp \ 93 GuiERT.cpp \ 94 GuiExternal.cpp \ 95 GuiFontExample.cpp \ 96 GuiFontLoader.cpp \ 97 GuiFontMetrics.cpp \ 98 GuiGraphics.cpp \ 99 GuiHSpace.cpp \ 100 GuiHyperlink.cpp \ 101 GuiIdListModel.cpp \ 102 GuiImage.cpp \ 103 GuiInclude.cpp \ 104 GuiIndex.cpp \ 105 GuiIndices.cpp \ 106 GuiInfo.cpp \ 107 GuiKeySymbol.cpp \ 108 GuiLabel.cpp \ 109 GuiLine.cpp \ 110 GuiListings.cpp \ 111 GuiLog.cpp \ 112 GuiMathMatrix.cpp \ 113 GuiNomenclature.cpp \ 114 GuiNote.cpp \ 115 GuiPainter.cpp \ 116 GuiParagraph.cpp \ 117 GuiPhantom.cpp \ 118 GuiPrefs.cpp \ 119 GuiPrintindex.cpp \ 120 GuiPrintNomencl.cpp \ 121 GuiProgress.cpp \ 122 GuiProgressView.cpp \ 123 GuiRef.cpp \ 124 GuiSearch.cpp \ 125 GuiSelection.cpp \ 126 GuiSelectionManager.cpp \ 127 GuiSendto.cpp \ 128 GuiSetBorder.cpp \ 129 GuiShowFile.cpp \ 130 GuiSpellchecker.cpp \ 131 GuiSymbols.cpp \ 132 GuiTabular.cpp \ 133 GuiTabularCreate.cpp \ 134 GuiTexinfo.cpp \ 135 GuiThesaurus.cpp \ 136 GuiToc.cpp \ 137 GuiToolbar.cpp \ 138 GuiView.cpp \ 139 GuiViewSource.cpp \ 140 GuiVSpace.cpp \ 141 GuiWorkArea.cpp \ 142 GuiWrap.cpp \ 143 IconPalette.cpp \ 144 InGuiThread.cpp \ 145 InsertTableWidget.cpp \ 146 InsetParamsDialog.cpp \ 147 InsetParamsWidget.cpp \ 148 LengthCombo.cpp \ 149 LyXFileDialog.cpp \ 150 LaTeXHighlighter.cpp \ 151 LayoutBox.cpp \ 152 Menus.cpp \ 153 PanelStack.cpp \ 154 qt_helpers.cpp \ 155 TocModel.cpp \ 156 TocWidget.cpp \ 157 Toolbars.cpp \ 158 ToolTipFormatter.cpp \ 159 Validator.cpp 160 161NOMOCHEADER = \ 162 ButtonController.h \ 163 ColorCache.h \ 164 FileDialog.h \ 165 GuiFontExample.h \ 166 GuiFontLoader.h \ 167 GuiFontMetrics.h \ 168 GuiIdListModel.h \ 169 GuiImage.h \ 170 GuiKeySymbol.h \ 171 GuiPainter.h \ 172 GuiWorkArea_Private.h \ 173 LaTeXHighlighter.h \ 174 qt_i18n.h \ 175 qt_helpers.h \ 176 Toolbars.h 177 178MOCHEADER = \ 179 Action.h \ 180 BulletsModule.h \ 181 CategorizedCombo.h \ 182 CustomizedWidgets.h \ 183 DialogView.h \ 184 DockView.h \ 185 EmptyTable.h \ 186 FancyLineEdit.h \ 187 FindAndReplace.h \ 188 FloatPlacement.h \ 189 GuiAbout.h \ 190 GuiApplication.h \ 191 GuiBibitem.h \ 192 GuiBibtex.h \ 193 GuiBox.h \ 194 GuiBranches.h \ 195 GuiBranch.h \ 196 GuiChanges.h \ 197 GuiCharacter.h \ 198 GuiCitation.h \ 199 GuiClipboard.h \ 200 GuiCommandBuffer.h \ 201 GuiCommandEdit.h \ 202 GuiCompare.h \ 203 GuiCompareHistory.h \ 204 GuiCompleter.h \ 205 GuiDelimiter.h \ 206 GuiDialog.h \ 207 GuiDocument.h \ 208 GuiErrorList.h \ 209 GuiERT.h \ 210 GuiExternal.h \ 211 GuiGraphics.h \ 212 GuiHSpace.h \ 213 GuiHyperlink.h \ 214 GuiInclude.h \ 215 GuiIndex.h \ 216 GuiIndices.h \ 217 GuiInfo.h \ 218 GuiLabel.h \ 219 GuiLine.h \ 220 GuiListings.h \ 221 GuiLog.h \ 222 GuiMathMatrix.h \ 223 GuiNomenclature.h \ 224 GuiNote.h \ 225 GuiParagraph.h \ 226 GuiPhantom.h \ 227 GuiPrefs.h \ 228 GuiPrintindex.h \ 229 GuiPrintNomencl.h \ 230 GuiProgress.h \ 231 GuiProgressView.h \ 232 GuiRef.h \ 233 GuiSearch.h \ 234 GuiSelection.h \ 235 GuiSelectionManager.h \ 236 GuiSendto.h \ 237 GuiSetBorder.h \ 238 GuiShowFile.h \ 239 GuiSpellchecker.h \ 240 GuiSymbols.h \ 241 GuiTabularCreate.h \ 242 GuiTabular.h \ 243 GuiTexinfo.h \ 244 GuiThesaurus.h \ 245 GuiToc.h \ 246 GuiToolbar.h \ 247 GuiView.h \ 248 GuiViewSource.h \ 249 GuiVSpace.h \ 250 GuiWorkArea.h \ 251 GuiWrap.h \ 252 IconPalette.h \ 253 InGuiThread.h \ 254 InsertTableWidget.h \ 255 InsetParamsDialog.h \ 256 InsetParamsWidget.h \ 257 LayoutBox.h \ 258 LengthCombo.h \ 259 LyXFileDialog.h \ 260 Menus.h \ 261 PanelStack.h \ 262 TocModel.h \ 263 TocWidget.h \ 264 ToolTipFormatter.h \ 265 Validator.h 266 267UIFILES = \ 268 AboutUi.ui \ 269 BibitemUi.ui \ 270 BiblioUi.ui \ 271 BibtexAddUi.ui \ 272 BibtexUi.ui \ 273 BoxUi.ui \ 274 BranchesUi.ui \ 275 BranchesUnknownUi.ui \ 276 BranchUi.ui \ 277 BulletsUi.ui \ 278 ChangesUi.ui \ 279 CharacterUi.ui \ 280 CitationUi.ui \ 281 ColorUi.ui \ 282 CompareUi.ui \ 283 CompareHistoryUi.ui \ 284 DelimiterUi.ui \ 285 DocumentUi.ui \ 286 ErrorListUi.ui \ 287 ERTUi.ui \ 288 ExternalUi.ui \ 289 FindAndReplaceUi.ui \ 290 FloatPlacementUi.ui \ 291 FontUi.ui \ 292 GraphicsUi.ui \ 293 HSpaceUi.ui \ 294 HyperlinkUi.ui \ 295 IncludeUi.ui \ 296 IndexUi.ui \ 297 IndicesUi.ui \ 298 InfoUi.ui \ 299 InsetParamsUi.ui \ 300 LabelUi.ui \ 301 LanguageUi.ui \ 302 LaTeXUi.ui \ 303 LineUi.ui \ 304 ListingsUi.ui \ 305 ListingsSettingsUi.ui \ 306 LocalLayoutUi.ui \ 307 LogUi.ui \ 308 MarginsUi.ui \ 309 MasterChildUi.ui \ 310 MathMatrixUi.ui \ 311 MathsUi.ui \ 312 ModulesUi.ui \ 313 NomenclUi.ui \ 314 NoteUi.ui \ 315 NumberingUi.ui \ 316 OutputUi.ui \ 317 PageLayoutUi.ui \ 318 ParagraphUi.ui \ 319 PDFSupportUi.ui \ 320 PhantomUi.ui \ 321 PreambleUi.ui \ 322 PrefColorsUi.ui \ 323 PrefCompletionUi.ui \ 324 PrefConvertersUi.ui \ 325 PrefDocHandlingUi.ui \ 326 PrefOutputUi.ui \ 327 PrefDisplayUi.ui \ 328 PrefEditUi.ui \ 329 PrefFileformatsUi.ui \ 330 PrefIdentityUi.ui \ 331 PrefInputUi.ui \ 332 PrefLanguageUi.ui \ 333 PrefLatexUi.ui \ 334 PrefPathsUi.ui \ 335 PrefScreenFontsUi.ui \ 336 PrefShortcutsUi.ui \ 337 PrefSpellcheckerUi.ui \ 338 PrefsUi.ui \ 339 PrefUi.ui \ 340 PrintindexUi.ui \ 341 PrintNomenclUi.ui \ 342 ProgressViewUi.ui \ 343 RefUi.ui \ 344 SearchUi.ui \ 345 SendtoUi.ui \ 346 ShortcutUi.ui \ 347 ShowFileUi.ui \ 348 SpellcheckerUi.ui \ 349 SymbolsUi.ui \ 350 TabularCreateUi.ui \ 351 TabularUi.ui \ 352 TexinfoUi.ui \ 353 TextLayoutUi.ui \ 354 ThesaurusUi.ui \ 355 TocUi.ui \ 356 ToggleWarningUi.ui \ 357 ViewSourceUi.ui \ 358 VSpaceUi.ui \ 359 WorkAreaUi.ui \ 360 WrapUi.ui 361 362nodist_liblyxqt4_a_SOURCES = Resources.cpp 363 364liblyxqt4.cpp: 365 $(AM_V_GEN)for file in $(SOURCEFILES) ; do echo '#include "'$${file}'"' ; done >$@ 366 367if MONOLITHIC_FRONTEND_QT 368 369nodist_liblyxqt4_a_SOURCES += liblyxqt4.cpp 370liblyxqt4_a_SOURCES = \ 371 $(MOCHEADER) \ 372 $(NOMOCHEADER) 373 374BUILT_SOURCES += liblyxqt4.cpp 375CLEANFILES += liblyxqt4.cpp 376 377else 378 379liblyxqt4_a_SOURCES = \ 380 $(SOURCEFILES) \ 381 $(MOCHEADER) \ 382 $(NOMOCHEADER) 383 384endif 385 386EXTRA_DIST = CMakeLists.txt $(UIFILES:%=ui/%) 387