mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
some more small changes to speed up the compilation time by merged files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17498 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5b2d7ec76d
commit
a016215367
@ -38,7 +38,7 @@ if(merge OR MERGE_FILES)
|
||||
set(MERGE_FILES TRUE CACHE TYPE STRING FORCE)
|
||||
endif(NOT MERGE_FILES)
|
||||
message(STATUS "")
|
||||
message(STATUS "will merge all *.C files of a project into one file (exception: qt4 and boost files)")
|
||||
message(STATUS "will merge all *.C files of a project into one file (exception: qt4 and boost_regex files )")
|
||||
message(STATUS "")
|
||||
endif(merge OR MERGE_FILES)
|
||||
|
||||
|
@ -5,3 +5,4 @@
|
||||
#
|
||||
|
||||
add_subdirectory(libs)
|
||||
|
||||
|
@ -10,3 +10,4 @@ add_subdirectory(filesystem)
|
||||
add_subdirectory(iostreams)
|
||||
add_subdirectory(regex)
|
||||
add_subdirectory(signals)
|
||||
|
||||
|
@ -15,4 +15,11 @@ set(boost_filesystem_sources
|
||||
|
||||
lyx_add_path(boost_filesystem_sources ${TOP_SRC_DIR}/boost/libs/filesystem/src)
|
||||
|
||||
if(NOT MERGE_FILES)
|
||||
add_library(boost_filesystem STATIC ${boost_filesystem_sources})
|
||||
else(NOT MERGE_FILES)
|
||||
add_definitions(-D_WIN32_WINNT=0x500)
|
||||
lyx_merge_files(${CMAKE_CURRENT_BINARY_DIR}/boost_filesystem_allinone.C boost_filesystem_sources)
|
||||
add_library(boost_filesystem STATIC ${CMAKE_CURRENT_BINARY_DIR}/boost_filesystem_allinone.C)
|
||||
endif(NOT MERGE_FILES)
|
||||
|
||||
|
@ -16,7 +16,12 @@ lyx_add_path(boost_iostreams_sources ${TOP_SRC_DIR}/boost/libs/iostreams/src)
|
||||
|
||||
include_directories(${ZLIB_INCLUDE_DIR})
|
||||
|
||||
if(NOT MERGE_FILES)
|
||||
add_library(boost_iostreams STATIC ${boost_iostreams_sources})
|
||||
else(NOT MERGE_FILES)
|
||||
lyx_merge_files(${CMAKE_CURRENT_BINARY_DIR}/boost_iostreams_allinone.C boost_iostreams_sources)
|
||||
add_library(boost_iostreams STATIC ${CMAKE_CURRENT_BINARY_DIR}/boost_iostreams_allinone.C)
|
||||
endif(NOT MERGE_FILES)
|
||||
|
||||
target_link_libraries(boost_iostreams ${ZLIB_LIBRARY})
|
||||
|
||||
|
@ -22,4 +22,3 @@ lyx_add_path(boost_regex_sources ${TOP_SRC_DIR}/boost/libs/regex/src)
|
||||
|
||||
add_library(boost_regex STATIC ${boost_regex_sources})
|
||||
|
||||
|
||||
|
@ -16,5 +16,10 @@ set(boost_signals_sources
|
||||
|
||||
lyx_add_path(boost_signals_sources ${TOP_SRC_DIR}/boost/libs/signals/src)
|
||||
|
||||
if(NOT MERGE_FILES)
|
||||
add_library(boost_signals STATIC ${boost_signals_sources})
|
||||
else(NOT MERGE_FILES)
|
||||
lyx_merge_files(${CMAKE_CURRENT_BINARY_DIR}/boost_signals_allinone.C boost_signals_sources)
|
||||
add_library(boost_signals STATIC ${CMAKE_CURRENT_BINARY_DIR}/boost_signals_allinone.C)
|
||||
endif(NOT MERGE_FILES)
|
||||
|
||||
|
@ -74,4 +74,3 @@ endif(APPLE)
|
||||
|
||||
project_source_group("${GROUP_CODE}" lyx_sources lyx_headers)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user