compile boost/*.cpp in one go and do not use precompiled headers there. speeds up compilation in boost by more than a factor of three

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19521 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2007-08-13 19:48:30 +00:00
parent 4e7e580f54
commit 4cc87ae9a9

View 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