]> git.lyx.org Git - lyx.git/commitdiff
Get rid of monolithic build support for autoconf
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 29 Aug 2018 16:07:52 +0000 (18:07 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 30 Aug 2018 09:35:37 +0000 (11:35 +0200)
It is not useful anymore on modern machines with several cores.

3rdparty/boost/Makefile.am
3rdparty/boost/lyxboost.cpp [deleted file]
INSTALL
configure.ac
src/Makefile.am
src/client/Makefile.am
src/frontends/qt4/Makefile.am

index 36b1699736a3196b68086d077ccdbc1ce03d31a6..c177cd28d987b31995386ba234e175e423d9dab6 100644 (file)
@@ -14,19 +14,6 @@ EXTRA_DIST = boost \
 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
-
-liblyxboost_a_SOURCES = \
-       lyxboost.cpp \
-       libs/regex/src/instances.cpp \
-       libs/regex/src/cpp_regex_traits.cpp \
-       libs/regex/src/c_regex_traits.cpp \
-       libs/regex/src/wc_regex_traits.cpp
-
-else
-
 liblyxboost_a_SOURCES = \
        libs/regex/src/internals.hpp \
        libs/regex/src/c_regex_traits.cpp \
@@ -45,5 +32,4 @@ liblyxboost_a_SOURCES = \
        libs/regex/src/winstances.cpp \
        libs/regex/src/static_mutex.cpp
 
-endif #MONOLITHIC_BOOST
 
diff --git a/3rdparty/boost/lyxboost.cpp b/3rdparty/boost/lyxboost.cpp
deleted file mode 100644 (file)
index cfb27a9..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-//#include "libs/regex/src/cpp_regex_traits.cpp"
-//#include "libs/regex/src/c_regex_traits.cpp"
-#include "libs/regex/src/cregex.cpp"
-#include "libs/regex/src/fileiter.cpp"
-//#include "libs/regex/src/instances.cpp"
-#include "libs/regex/src/regex.cpp"
-#include "libs/regex/src/regex_raw_buffer.cpp"
-#include "libs/regex/src/regex_traits_defaults.cpp"
-#include "libs/regex/src/w32_regex_traits.cpp"
-#include "libs/regex/src/posix_api.cpp"
-#include "libs/regex/src/wide_posix_api.cpp"
-#include "libs/regex/src/regex_debug.cpp"
-#include "libs/regex/src/winstances.cpp"
diff --git a/INSTALL b/INSTALL
index 8e2127c4728ffc7ce9825b4b9bda769b35db37d6..d19159fb6e332431cf2478af04c0faf0d5d136e6 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -234,10 +234,6 @@ The following options allow you to tweak the generated code more precisely (see
     compile --with-included-hunspell or --disable-stdlib-debug when
     linking development versions against your system's hunspell library.
 
-  o --enable-monolithic-build[=boost,client,insets,mathed,core,tex2lyx,frontend-qt4]
-    that enables monolithic build of the given parts of the source
-    code. This should reduce the compilation time provided you have
-    enough memory (>500MB).
 
 
 Compiling and installing LyX
index 4e0476569246d725f28ba295f40953290ebd39da..703d267836d86ef5645054f36390707b089b5362 100644 (file)
@@ -34,28 +34,6 @@ save_PACKAGE=$PACKAGE
 AM_INIT_AUTOMAKE([foreign dist-bzip2 no-define 1.8 tar-ustar subdir-objects])
 PACKAGE=$save_PACKAGE
 
-# Allow to build some parts of the code as one big chunk
-m4_define([ALLPARTS],[boost,client,insets,mathed,core,tex2lyx,frontend_qt])
-AC_ARG_ENABLE(monolithic-build,
-  AC_HELP_STRING([--enable-monolithic-build@<:@=LIST@:>@],
-               [Use monolithic build for modules in LIST (default: ALLPARTS)]),
-  [test "$enable_monolithic_build" = yes && enable_monolithic_build="ALLPARTS"
-   test "$enable_monolithic_build" = no && enable_monolithic_build=
-   IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=" ,"
-   for i in $enable_monolithic_build ; do
-       eval "enable_monolithic_$i=yes"
-   done
-   IFS="$ac_save_ifs"],
-  [enable_monolithic_build=])
-
-AM_CONDITIONAL(MONOLITHIC_BOOST, test "x$enable_monolithic_boost" = "xyes")
-AM_CONDITIONAL(MONOLITHIC_CLIENT, test "x$enable_monolithic_client" = "xyes")
-AM_CONDITIONAL(MONOLITHIC_INSETS, test "x$enable_monolithic_insets" = "xyes")
-AM_CONDITIONAL(MONOLITHIC_MATHED, test "x$enable_monolithic_mathed" = "xyes")
-AM_CONDITIONAL(MONOLITHIC_CORE, test "x$enable_monolithic_core" = "xyes")
-AM_CONDITIONAL(MONOLITHIC_TEX2LYX, test "x$enable_monolithic_tex2lyx" = "xyes")
-AM_CONDITIONAL(MONOLITHIC_FRONTEND_QT, test "x$enable_monolithic_frontend_qt" = "xyes")
-
 ### Set the execute permissions of the various scripts correctly
 for file in config/install-sh ; do
   chmod 755 ${srcdir}/${file}
index 28592fb0a2651057745c3d78dc5f13de2c3b20d4..e338f9951c53f4942790d310efdce0da6897e69a 100644 (file)
@@ -322,22 +322,8 @@ lyx_commit_hash.h: update_commit_hash
 BUILT_SOURCES = lyx_commit_hash.h
 CLEANFILES = lyx_commit_hash.h
 
-lyxcore.cpp:
-       $(AM_V_GEN)for file in $(SOURCEFILESCORE) ; do echo '#include "'$${file}'"' ; done >$@
-
-if MONOLITHIC_CORE
-
-BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
-CLEANFILES += lyxcore.cpp
-
-nodist_liblyxcore_a_SOURCES = lyxcore.cpp
-liblyxcore_a_SOURCES = $(STANDALONEFILES) $(HEADERFILESCORE)
-
-else
-
 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
 
-endif
 
 #########################  Qt stuff  ##############################
 
@@ -541,22 +527,8 @@ HEADERFILESMATHED = \
        mathed/MathSupport.h \
        mathed/TextPainter.h
 
-lyxmathed.cpp:
-       $(AM_V_GEN)for file in $(SOURCEFILESMATHED) ; do echo '#include "'$${file}'"' ; done >$@
-
-if MONOLITHIC_MATHED
-
-BUILT_SOURCES += lyxmathed.cpp
-CLEANFILES += lyxmathed.cpp
-
-nodist_liblyxmathed_a_SOURCES = lyxmathed.cpp
-liblyxmathed_a_SOURCES = $(HEADERFILESMATHED)
-
-else
-
 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
 
-endif
 
 ############################### Insets  ##############################
 
@@ -680,23 +652,8 @@ HEADERFILESINSETS = \
        insets/InsetVSpace.h \
        insets/InsetWrap.h
 
-lyxinsets.cpp:
-       $(AM_V_GEN)for file in $(SOURCEFILESINSETS) ; do echo '#include "'$${file}'"' ; done >$@
-
-if MONOLITHIC_INSETS
-
-BUILT_SOURCES += lyxinsets.cpp
-CLEANFILES += lyxinsets.cpp
-
-nodist_liblyxinsets_a_SOURCES = lyxinsets.cpp
-liblyxinsets_a_SOURCES = $(HEADERFILESINSETS)
-
-else
-
 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
 
-endif
-
 
 ############################## Tests ##################################
 
index f1d766bd26c30b10d4622acdf3a9f0c68565ca90..b6b132e93f927bf2ec0e49c813577cd1e176d7bf 100644 (file)
@@ -26,21 +26,5 @@ SOURCEFILES = \
 
 HEADERFILES =
 
-
-lyxclient.cpp:
-       $(AM_V_GEN)for file in $(SOURCEFILES) ; do echo '#include "'$${file}'"' ; done >$@
-
-if MONOLITHIC_CLIENT
-
-AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES) $(ZLIB_INCLUDES)
-BUILT_SOURCES = lyxclient.cpp
-CLEANFILES += lyxclient.cpp
-
-nodist_lyxclient_SOURCES = lyxclient.cpp
-lyxclient_SOURCES = $(HEADERFILES)
-
-else
-
 lyxclient_SOURCES = $(SOURCEFILES) $(HEADERFILES)
 
-endif
index a53e46afd761ceccd43d156306c5e5268adc96cf..4ffb3516076e44f6e3c8b449e98b61abd579b0a1 100644 (file)
@@ -360,26 +360,9 @@ UIFILES = \
 
 nodist_liblyxqt4_a_SOURCES = Resources.cpp
 
-liblyxqt4.cpp:
-       $(AM_V_GEN)for file in $(SOURCEFILES) ; do echo '#include "'$${file}'"' ; done >$@
-
-if MONOLITHIC_FRONTEND_QT
-
-nodist_liblyxqt4_a_SOURCES += liblyxqt4.cpp
-liblyxqt4_a_SOURCES = \
-       $(MOCHEADER) \
-       $(NOMOCHEADER)
-
-BUILT_SOURCES += liblyxqt4.cpp
-CLEANFILES += liblyxqt4.cpp
-
-else
-
 liblyxqt4_a_SOURCES = \
        $(SOURCEFILES) \
        $(MOCHEADER) \
        $(NOMOCHEADER)
 
-endif
-
 EXTRA_DIST = CMakeLists.txt $(UIFILES:%=ui/%)