]> git.lyx.org Git - features.git/commitdiff
More pch work.
authorLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 18 Aug 2004 14:20:18 +0000 (14:20 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 18 Aug 2004 14:20:18 +0000 (14:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8956 a592a061-630c-0410-9148-cb99ea01b6c8

35 files changed:
ChangeLog
boost/libs/filesystem/src/.cvsignore
boost/libs/filesystem/src/Makefile.am
boost/libs/filesystem/src/pch.h [new file with mode: 0644]
boost/libs/regex/src/.cvsignore
boost/libs/regex/src/Makefile.am
boost/libs/regex/src/pch.h [new file with mode: 0644]
boost/libs/signals/src/.cvsignore
boost/libs/signals/src/Makefile.am
boost/libs/signals/src/pch.h [new file with mode: 0644]
config/common.am
src/.cvsignore
src/Makefile.am
src/frontends/.cvsignore
src/frontends/Makefile.am
src/frontends/controllers/.cvsignore
src/frontends/controllers/Makefile.am
src/frontends/qt2/Makefile.am
src/frontends/xforms/.cvsignore
src/frontends/xforms/Makefile.am
src/frontends/xforms/forms/.cvsignore
src/frontends/xforms/forms/Makefile.am
src/frontends/xforms/forms/pch.h [new file with mode: 0644]
src/graphics/.cvsignore
src/graphics/Makefile.am
src/insets/.cvsignore
src/insets/Makefile.am
src/insets/pch.h
src/mathed/.cvsignore
src/mathed/Makefile.am
src/support/.cvsignore
src/support/Makefile.am
src/tex2lyx/.cvsignore
src/tex2lyx/Makefile.am
src/tex2lyx/pch.h [new file with mode: 0644]

index 94969c2bde1da31ccff14d4c1e60823848cf86ef..4ef00d28c00a42cbd0cc8504ea41d67ac437d0c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-08-18  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * More pch work.
+
 2004-08-03  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * configure.ac: instead of the previous code (which does not
@@ -6,7 +10,7 @@
 2004-07-26  Lars Gullik Bjonnes  <larsbj@gullik.net>
 
        * configure.ac: add code that some xforms tests are run only once
-       even if both xforms and gtk are configured. 
+       even if both xforms and gtk are configured.
 
 2004-06-09  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
index 79974082a77e069adfc04f3c4a0e7e1d5812374f..a136b96fad89222d5490c97807563a7e96f1b2ae 100644 (file)
@@ -4,3 +4,5 @@ libboostfilesystem.la
 *.lo
 .libs
 .deps
+pch.h.gch
+pch.h.gch.dep
index 816dbf3f268f7cad02f107f3a92de8ecceaf8adf..9dec9cd3150f3e6f7eaba847c5cef0f8a8cf7094 100644 (file)
@@ -4,7 +4,8 @@ noinst_LTLIBRARIES = libboostfilesystem.la
 
 INCLUDES = $(BOOST_INCLUDES)
 
-AM_CXXFLAGS = -DBOOST_USER_CONFIG="<config.h>"
+AM_CPPFLAGS = -DBOOST_USER_CONFIG="<config.h>"
+AM_CXXFLAGS = $(PCH_FLAGS)
 
 libboostfilesystem_la_SOURCES = \
        convenience.cpp \
diff --git a/boost/libs/filesystem/src/pch.h b/boost/libs/filesystem/src/pch.h
new file mode 100644 (file)
index 0000000..cea42f8
--- /dev/null
@@ -0,0 +1,19 @@
+#include <boost/config.hpp>
+#include <boost/detail/workaround.hpp>
+#include <boost/filesystem/config.hpp>
+#include <boost/filesystem/convenience.hpp>
+#include <boost/filesystem/exception.hpp>
+#include <boost/filesystem/operations.hpp>
+#include <boost/filesystem/path.hpp>
+#include <boost/scoped_array.hpp>
+#include <boost/throw_exception.hpp>
+
+#include <cassert>
+#include <cerrno>
+#include <cstdio>      // for remove, rename
+#include <cstring>
+#include <cstring>  // SGI MIPSpro compilers need this
+#include <cstring> // SGI MIPSpro compilers need this
+#include <string>
+#include <sys/stat.h>  // last_write_time() uses stat()
+#include <vector>
index eefa291c0d4b6e0b9c59514ef9aa6f24b0ac4b09..dfe394aaaba25d0513c6c27c0c0b0ac605f5be76 100644 (file)
@@ -4,3 +4,5 @@ libboostregex.la
 *.lo
 .deps
 .libs
+pch.h.gch
+pch.h.gch.dep
index 6cf9cfe7232303cebe72b2bf638eb5362c770f19..f3c874bd10f051fbfcd4730d5e01d665bccd4955 100644 (file)
@@ -4,7 +4,8 @@ noinst_LTLIBRARIES = libboostregex.la
 
 INCLUDES = $(BOOST_INCLUDES)
 
-AM_CXXFLAGS = -DBOOST_USER_CONFIG="<config.h>"
+AM_CPPFLAGS = -DBOOST_USER_CONFIG="<config.h>"
+AM_CXXFLAGS = $(PCH_FLAGS)
 
 libboostregex_la_SOURCES = \
        cpp_regex_traits.cpp \
diff --git a/boost/libs/regex/src/pch.h b/boost/libs/regex/src/pch.h
new file mode 100644 (file)
index 0000000..eee63a3
--- /dev/null
@@ -0,0 +1,14 @@
+#include <cctype>
+#include <climits>
+#include <clocale>
+#include <cstdio>
+#include <cstring>
+#include <cwchar>
+#include <iostream>
+#include <list>
+#include <locale>
+#include <map>
+#include <new>
+#include <ostream>
+#include <set>
+#include <stdexcept>
index df67e8ff7bf7f3c11b81300909accfa8dff16d19..9056e6188bf3a39e20ab0f57e6c153ced28c2d1d 100644 (file)
@@ -4,3 +4,5 @@ libboostsignals.la
 *.lo
 .deps
 .libs
+pch.h.gch
+pch.h.gch.dep
index 0bbec6fd502c048831f8a35bc8361ca7e8f4d60f..3f49813ccd184bdd3865eddd150fda88fbc587d9 100644 (file)
@@ -4,7 +4,8 @@ noinst_LTLIBRARIES = libboostsignals.la
 
 INCLUDES = $(BOOST_INCLUDES)
 
-AM_CXXFLAGS = -DBOOST_USER_CONFIG="<config.h>"
+AM_CPPFLAGS = -DBOOST_USER_CONFIG="<config.h>"
+AM_CXXFLAGS = $(PCH_FLAGS)
 
 libboostsignals_la_SOURCES = \
        connection.cpp \
diff --git a/boost/libs/signals/src/pch.h b/boost/libs/signals/src/pch.h
new file mode 100644 (file)
index 0000000..1e94537
--- /dev/null
@@ -0,0 +1,7 @@
+#include <boost/signals/connection.hpp>
+#include <boost/signals/detail/signal_base.hpp>
+#include <boost/signals/slot.hpp>
+#include <boost/signals/trackable.hpp>
+
+#include <algorithm>
+#include <cassert>
index 510b4dd05e92a7b3203a8e38e7452de4e8ddd4c9..69ebe4bef1c7f8beee81d18fb8b3308f53d5d891 100644 (file)
@@ -1,5 +1,7 @@
 AUTOMAKE_OPTIONS = foreign
 
+CLEANFILES = pch.h.gch
+
 DISTCLEANFILES= *.orig *.rej *~ *.bak core
 
 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
@@ -10,12 +12,21 @@ AM_ETAGSFLAGS = --lang=c++
 
 if LYX_BUILD_PCH
 PCH_FLAGS = -Winvalid-pch --include=pch.h
-PCH_FILE = pch.h.gch
-endif
+PCH_FILE = ./pch.h.gch
+PCH_SOURCE = ./pch.h
+sinclude pch.h.gch.dep
+
+*.C *.cpp: $(PCH_FILE)
 
-pch.h.gch:
+pch.h.gch: $(PCH_SOURCE)
        $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
-        $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -x c++-header pch.h
+        $(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) \
+       -x c++-header $(PCH_SOURCE) -MT $@ -MD -MP -MF "./$@.Tdep" \
+       && mv "./$@.Tdep" "./$@.dep" || rm "./$@.Tdep"
+
+endif
+
+SUFFIXES = .gch
 
 if USE_INCLUDED_BOOST
 BOOST_INCLUDES = -I$(top_srcdir)/boost
index 07d3a9b97b3c846ae1193d69e9ce43fb92b56367..65688af95e791127c1be5b3a6e1bd71197b459d7 100644 (file)
@@ -14,3 +14,4 @@ stamp-version
 *.deps
 .libs
 pch.h.gch
+pch.h.gch.dep
index 49da38346e6a06a61c17d03044b6b1f37ba09165..3222ac92cf126089e9cbe6b7a24630f152580d94 100644 (file)
@@ -58,8 +58,6 @@ BUILT_SOURCES = version.C
 
 AM_CXXFLAGS = $(PCH_FLAGS)
 
-lyx_DEPENDENCIES = $(PCH_FILE)
-
 lyx_SOURCES = \
        Bidi.C \
        Bidi.h \
index 2fbb6cda31d71a7ee6fd8b68534e2bf399603c61..0a2a26697be893b35ea3a36d3cee5423e58acbb2 100644 (file)
@@ -5,3 +5,4 @@ Makefile.in
 .libs
 libfrontends.la
 pch.h.gch
+pch.h.gch.dep
index 3e9b14ac00c864784f536bd568c3cbbaf6c287aa..c62d53e27dd7d9642d50d3d17beb9ea5fcd20976 100644 (file)
@@ -10,8 +10,6 @@ INCLUDES = -I$(srcdir)/..  $(BOOST_INCLUDES)
 
 AM_CXXFLAGS = $(PCH_FLAGS)
 
-libfrontends_la_DEPENDENCIES = $(PCH_FILE)
-
 libfrontends_la_SOURCES = \
        Alert.C \
        Alert.h \
index 56ab29baa66470e78d99c059e6aa311f3ca25436..34270ad118e55ac57a4e1ee79fd36a9d74f0c2ea 100644 (file)
@@ -5,3 +5,4 @@ Makefile
 .libs
 libcontrollers.la
 pch.h.gch
+pch.h.gch.dep
index 08627768676ac6151461aafe5ee56b3144a38853..7aa31a9b68221c1ed4cdb3000d08ed089497635d 100644 (file)
@@ -9,7 +9,7 @@ noinst_LTLIBRARIES = libcontrollers.la
 AM_CXXFLAGS = $(PCH_FLAGS)
 
 libcontrollers_la_SOURCES= \
-       $(PCH_FILE) Dialog.C \
+       Dialog.C \
        Dialog.h \
        Kernel.C \
        Kernel.h \
index 5e07e7063459c786366f285e3951c85549707f09..dcfac58b8f0b1742dcd7d4131157c75dfbdb9d2c 100644 (file)
@@ -15,9 +15,8 @@ noinst_LTLIBRARIES = libqt2.la
 libqt2_la_LDFLAGS = $(QT_LDFLAGS)
 libqt2_la_LIBADD = $(QT_LIB) ui/*.lo moc/*.lo ui/moc/*.lo
 
-AM_CXXFLAGS = $(PCH_FLAGS) -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR
-
-libqt2_la_DEPENDENCIES = $(PCH_FILE)
+AM_CPPFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR
+AM_CXXFLAGS = $(PCH_FLAGS)
 
 libqt2_la_SOURCES = \
        QDialogView.C \
index f71c63c9a0c2c11e2655099226960d184b6bebf0..8aa0b4927dde672a4826dc2da4136446eb3f419d 100644 (file)
@@ -11,3 +11,4 @@ lyx_xpm.h
 lyx_xpm.h-tmp
 stamp-xpm
 pch.h.gch
+pch.h.gch.dep
index cd337a0cfc30f775f74c3c4cd5f725f9c84d137c..2c926809ced0e8acde32b195a34e52ad37ebbf0b 100644 (file)
@@ -1,7 +1,7 @@
 include $(top_srcdir)/config/common.am
 
 SUBDIRS = forms
-CLEANFILES = stamp-xpm stamp-forms
+CLEANFILES += stamp-xpm stamp-forms
 DISTCLEANFILES += lyx_forms.h lyx_forms.h-tmp lyx_xpm.h lyx_xpm.h-tmp
 BUILT_SOURCES = lyx_forms.h lyx_xpm.h
 
@@ -18,8 +18,6 @@ noinst_LTLIBRARIES = libxforms.la
 
 libxforms_la_LIBADD = @XFORMS_LIBS@ forms/*.lo
 
-libxforms_la_DEPENDENCIES = $(PCH_FILE)
-
 # Alphabetical order please.  It makes it easier to figure out what's missing.
 libxforms_la_SOURCES = \
        forms_fwd.h \
index 9de34ffd9e793b6de3440ec458ad41ca88cf9ce4..3e53c25a34a1a1a24825d131e336ac13ab51e0f2 100644 (file)
@@ -7,3 +7,5 @@ Makefile
 *.lo
 .deps
 libfdesign.la
+pch.h.gch
+pch.h.gch.dep
index 45a0151d591ddc75453202888be82dc3a68a8339..f9ce1217610117cc21488195a21a240a38302796 100644 (file)
@@ -7,6 +7,8 @@ EXTRA_DIST = fdfixc.sed fdfixh.sed fdfix.sh tmp_str.sed README $(SRCS)
 # For (forms_fwd.h, forms_gettext.h) and support/std_string.h, respectively.
 INCLUDES = -I$(srcdir)/..  -I$(top_srcdir)/src -I..
 
+AM_CXXFLAGS = $(PCH_FLAGS)
+
 noinst_LTLIBRARIES = libfdesign.la
 
 SRCS =  form_aboutlyx.fd \
diff --git a/src/frontends/xforms/forms/pch.h b/src/frontends/xforms/forms/pch.h
new file mode 100644 (file)
index 0000000..38b64a2
--- /dev/null
@@ -0,0 +1,10 @@
+#include <config.h>
+
+#include "bmtable.h"
+#include "combox.h"
+#include "fdesign_base.h"
+#include "gettext.h"
+
+#include "../lyx_forms.h"
+
+#include <stdlib.h>
index 6788a223abe3031773d6ec1fa7d0e0b9924808c2..fcc1f79a3a65b9aca78f9806f1dbbbbea6162cea 100644 (file)
@@ -5,3 +5,4 @@ Makefile
 .libs
 libgraphics.la
 pch.h.gch
+pch.h.gch.dep
index b63cb89b1fa2bbf6fad00331882eb36de5de575f..0b3bc1d2e2c4afc5eaccbbe866bea11453b11553 100644 (file)
@@ -7,7 +7,7 @@ INCLUDES = -I$(srcdir)/.. $(BOOST_INCLUDES)
 AM_CXXFLAGS = $(PCH_FLAGS)
 
 libgraphics_la_SOURCES = \
-       $(PCH_FILE) GraphicsCache.h \
+       GraphicsCache.h \
        GraphicsCache.C \
        GraphicsCacheItem.h \
        GraphicsCacheItem.C \
index 0a41dd9d58342b344eb93879a8c4e70132b3f516..aa9511a867079a78eda907d2b9e56709165de70b 100644 (file)
@@ -5,3 +5,4 @@ Makefile
 .libs
 libinsets.la
 pch.h.gch
+pch.h.gch.dep
index 3e3ada65db663a925163ce3cec64b15492332362..fb5583c8533e59a520504e3e2de0f8b713de64b1 100644 (file)
@@ -10,10 +10,8 @@ EXTRA_DIST = \
 
 AM_CXXFLAGS = $(PCH_FLAGS)
 
-libinsets_la_DEPENDENCIES = $(PCH_FILE)
-
 libinsets_la_SOURCES = \
-       $(PCH_FILE) mailinset.C \
+       mailinset.C \
        mailinset.h \
        ExternalSupport.C \
        ExternalSupport.h \
index 8615476a03a50928152c57ae1f9ab48888a140f3..f572633358d65e8d2ec76288a95e01bbdd7fad80 100644 (file)
@@ -1,5 +1,7 @@
 #include <config.h>
 
+#include "insetbase.h"
+
 #include <boost/any.hpp>
 #include <boost/assert.hpp>
 #include <boost/function.hpp>
index f7300548f5089e41e99584ee6dbd21060bb427c1..dd758bbc3ce92eb950df42683eb57d8613eb55ba 100644 (file)
@@ -5,3 +5,4 @@ Makefile
 .libs
 libmathed.la
 pch.h.gch
+pch.h.gch.dep
index bf6e03eb0eda71bc986b4b51e3d507f01af1713f..425b47b976e45abdc438fdcf67bfa0893c929c96 100644 (file)
@@ -8,10 +8,8 @@ INCLUDES = -I$(srcdir)/../ $(BOOST_INCLUDES)
 
 AM_CXXFLAGS = $(PCH_FLAGS)
 
-libmathed_la_DEPENDENCIES = $(PCH_FILE)
-
 libmathed_la_SOURCES = \
-       $(PCH_FILE) textpainter.C \
+       textpainter.C \
        textpainter.h \
        math_amsarrayinset.C \
        math_amsarrayinset.h \
index 0ab8753521624b2d42a6e548e254b8a1de5373a8..0134992e7b77bf14972d577bd86b8d4abe1e463a 100644 (file)
@@ -6,3 +6,4 @@ libsupport.la
 .libs
 path_defines.C
 pch.h.gch
+pch.h.gch.dep
index cb6c5b9ec24ef8cb922d1cfdf7080c051fbf5a47..3cec025d68fd89f08714fe1c1c288d3bc55adbfd 100644 (file)
@@ -2,7 +2,7 @@ include $(top_srcdir)/config/common.am
 
 noinst_LTLIBRARIES = libsupport.la
 
-CLEANFILES = path_defines.C
+CLEANFILES += path_defines.C
 
 INCLUDES = -I$(srcdir)/../ $(BOOST_INCLUDES)
 
@@ -17,7 +17,7 @@ BUILT_SOURCES = path_defines.C
 AM_CXXFLAGS = $(PCH_FLAGS)
 
 libsupport_la_SOURCES = \
-       $(PCH_FILE) FileInfo.C \
+       FileInfo.C \
        FileInfo.h \
        FileMonitor.h \
        FileMonitor.C \
index 2a658c1dbb18c5389fe2ddd4f277726b74abe854..fbaa967c39dab51ead5c13e547e27c5ab930e8a4 100644 (file)
@@ -13,3 +13,5 @@ lyxlayout.[Ch]
 lyxtextclass.[Ch]
 lyxlex.C
 lyxlex_pimpl.C
+pch.h.gch
+pch.h.gch.dep
index e3bdabfcf3a4e85bc5c44bd7fe81643afd21d4ec..517413c2d9209580c7d45e946ec9acba69222d14 100644 (file)
@@ -14,6 +14,8 @@ DISTCLEANFILES += $(BUILT_SOURCES)
 
 bin_PROGRAMS = tex2lyx
 
+AM_CXXFLAGS = $(PCH_FLAGS)
+
 BUILT_SOURCES = \
        FloatList.C \
        Floating.C \
diff --git a/src/tex2lyx/pch.h b/src/tex2lyx/pch.h
new file mode 100644 (file)
index 0000000..0634980
--- /dev/null
@@ -0,0 +1,18 @@
+#include <config.h>
+
+#include <boost/assert.hpp>
+#include <boost/function.hpp>
+#include <boost/shared_ptr.hpp>
+#include <boost/tuple/tuple.hpp>
+
+#include <algorithm>
+#include <cctype>
+#include <cstdlib>
+#include <exception>
+#include <fstream>
+#include <iosfwd>
+#include <iostream>
+#include <map>
+#include <sstream>
+#include <string>
+#include <vector>