mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
41405babc5
Do not link against system boost regex lib or build included boost regex when not needed.
81 lines
1.8 KiB
Makefile
81 lines
1.8 KiB
Makefile
include $(top_srcdir)/config/common.am
|
|
|
|
noinst_LIBRARIES = liblyxboost.a
|
|
|
|
# Using precompiled headers makes compilation >10% slower
|
|
#EXTRA_DIST = pch.h
|
|
#BUILT_SOURCES = $(PCH_FILE)
|
|
#AM_CPPFLAGS += $(PCH_FLAGS)
|
|
|
|
EXTRA_DIST = boost \
|
|
CMakeLists.txt \
|
|
libs/CMakeLists.txt \
|
|
libs/regex/CMakeLists.txt \
|
|
libs/regex/regex.vcproj \
|
|
libs/regex/src/CMakeLists.txt \
|
|
libs/signals/CMakeLists.txt \
|
|
libs/signals/signals.vcproj \
|
|
libs/signals/src/CMakeLists.txt
|
|
|
|
AM_CPPFLAGS += -DBOOST_USER_CONFIG="<config.h>"
|
|
AM_CPPFLAGS += $(BOOST_INCLUDES)
|
|
|
|
# This version is more than three times faster than the one below
|
|
|
|
if MONOLITHIC_BOOST
|
|
|
|
if LYX_USE_STD_REGEX
|
|
|
|
liblyxboost_a_SOURCES = \
|
|
lyxboostsignals.cpp
|
|
|
|
else
|
|
|
|
liblyxboost_a_SOURCES = \
|
|
lyxboost.cpp \
|
|
libs/regex/src/instances.cpp \
|
|
libs/regex/src/cpp_regex_traits.cpp \
|
|
libs/regex/src/c_regex_traits.cpp
|
|
|
|
endif #LYX_USE_STD_REGEX
|
|
|
|
else
|
|
|
|
if LYX_USE_STD_REGEX
|
|
|
|
liblyxboost_a_SOURCES = \
|
|
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
|
|
|
|
else
|
|
|
|
liblyxboost_a_SOURCES = \
|
|
libs/regex/src/internals.hpp \
|
|
libs/regex/src/c_regex_traits.cpp \
|
|
libs/regex/src/cpp_regex_traits.cpp \
|
|
libs/regex/src/cregex.cpp \
|
|
libs/regex/src/fileiter.cpp \
|
|
libs/regex/src/instances.cpp \
|
|
libs/regex/src/posix_api.cpp \
|
|
libs/regex/src/regex.cpp \
|
|
libs/regex/src/regex_debug.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/wide_posix_api.cpp \
|
|
libs/regex/src/winstances.cpp \
|
|
libs/regex/src/static_mutex.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
|
|
|
|
endif #LYX_USE_STD_REGEX
|
|
|
|
|
|
endif #MONOLITHIC_BOOST
|