]> git.lyx.org Git - features.git/commitdiff
compile boost/*.cpp in one go and do not use precompiled headers there. speeds up...
authorAndré Pönitz <poenitz@gmx.net>
Mon, 13 Aug 2007 19:48:30 +0000 (19:48 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 13 Aug 2007 19:48:30 +0000 (19:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19521 a592a061-630c-0410-9148-cb99ea01b6c8

boost/Makefile.am

index 810347d144d1bcef2495d2e87121eb9efa8a8b12..4fbbf3d02b53ac40da592535e2ab3b8be59e37b4 100644 (file)
@@ -2,42 +2,46 @@ include $(top_srcdir)/config/common.am
 
 pkglib_LTLIBRARIES = liblyxboost.la
 
-EXTRA_DIST = pch.h
+# Using precompiled headers makes compilation >10% slower
+#EXTRA_DIST = pch.h
+#BUILT_SOURCES = $(PCH_FILE)
+#AM_CPPFLAGS += $(PCH_FLAGS)
 
-BUILT_SOURCES = $(PCH_FILE)
-
-AM_CPPFLAGS += $(PCH_FLAGS)
 AM_CPPFLAGS += -DBOOST_USER_CONFIG="<config.h>" 
 AM_CPPFLAGS +=  $(BOOST_INCLUDES)
 
-liblyxboost_la_SOURCES = \
-       \
-       libs/iostreams/src/file_descriptor.cpp \
-       libs/iostreams/src/mapped_file.cpp \
-       libs/iostreams/src/zlib.cpp \
-       \
-       libs/filesystem/src/exception.cpp \
-       libs/filesystem/src/operations.cpp \
-       libs/filesystem/src/path.cpp \
-       libs/filesystem/src/portability.cpp \
-       \
-       libs/regex/src/cpp_regex_traits.cpp \
-       libs/regex/src/c_regex_traits.cpp \
-       libs/regex/src/cregex.cpp \
-       libs/regex/src/fileiter.cpp \
-       libs/regex/src/instances.cpp \
-       libs/regex/src/regex.cpp \
-       libs/regex/src/regex_raw_buffer.cpp \
-       libs/regex/src/regex_traits_defaults.cpp \
-       libs/regex/src/w32_regex_traits.cpp \
-       libs/regex/src/posix_api.cpp \
-       libs/regex/src/wide_posix_api.cpp \
-       libs/regex/src/regex_debug.cpp \
-       libs/regex/src/winstances.cpp \
-       \
-       libs/signals/src/connection.cpp \
-       libs/signals/src/named_slot_map.cpp \
-       libs/signals/src/signal_base.cpp \
-       libs/signals/src/slot.cpp \
-       libs/signals/src/trackable.cpp
+# This version is more than three times faster than the one below
+
+liblyxboost_la_SOURCES = lyxboost.cpp
+
+#liblyxboost_la_SOURCES = \
+#      \
+#      libs/iostreams/src/file_descriptor.cpp \
+#      libs/iostreams/src/mapped_file.cpp \
+#      libs/iostreams/src/zlib.cpp \
+#      \
+#      libs/filesystem/src/exception.cpp \
+#      libs/filesystem/src/operations.cpp \
+#      libs/filesystem/src/path.cpp \
+#      libs/filesystem/src/portability.cpp \
+#      \
+#      libs/regex/src/cpp_regex_traits.cpp \
+#      libs/regex/src/c_regex_traits.cpp \
+#      libs/regex/src/cregex.cpp \
+#      libs/regex/src/fileiter.cpp \
+#      libs/regex/src/instances.cpp \
+#      libs/regex/src/regex.cpp \
+#      libs/regex/src/regex_raw_buffer.cpp \
+#      libs/regex/src/regex_traits_defaults.cpp \
+#      libs/regex/src/w32_regex_traits.cpp \
+#      libs/regex/src/posix_api.cpp \
+#      libs/regex/src/wide_posix_api.cpp \
+#      libs/regex/src/regex_debug.cpp \
+#      libs/regex/src/winstances.cpp \
+#      \
+#      libs/signals/src/connection.cpp \
+#      libs/signals/src/named_slot_map.cpp \
+#      libs/signals/src/signal_base.cpp \
+#      libs/signals/src/slot.cpp \
+#      libs/signals/src/trackable.cpp