aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/libs
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
commitb4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch)
tree6a64ab25a145265287789bceed3f59e953561206 /contrib/restricted/boost/libs
parent5e837a820d5be0671fa4096a1cc1e378453e5132 (diff)
downloadydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'contrib/restricted/boost/libs')
-rw-r--r--contrib/restricted/boost/libs/chrono/CMakeLists.txt33
-rw-r--r--contrib/restricted/boost/libs/iostreams/CMakeLists.txt39
-rw-r--r--contrib/restricted/boost/libs/program_options/CMakeLists.txt41
-rw-r--r--contrib/restricted/boost/libs/system/CMakeLists.txt31
-rw-r--r--contrib/restricted/boost/libs/thread/CMakeLists.txt35
5 files changed, 179 insertions, 0 deletions
diff --git a/contrib/restricted/boost/libs/chrono/CMakeLists.txt b/contrib/restricted/boost/libs/chrono/CMakeLists.txt
new file mode 100644
index 0000000000..830939adc8
--- /dev/null
+++ b/contrib/restricted/boost/libs/chrono/CMakeLists.txt
@@ -0,0 +1,33 @@
+add_library(boost-libs-chrono)
+target_compile_options(boost-libs-chrono PRIVATE
+ -DBOOST_ATOMIC_STATIC_LINK=1
+ -DBOOST_All_STATIC_LINK=1
+ -DBOOST_CHRONO_STATIC_LINK=1
+ -DBOOST_SYSTEM_STATIC_LINK=1
+ -DBOOST_TIMER_STATIC_LINK=1
+ -DBOOST_ALL_NO_LIB=1
+ -DBOOST_ATOMIC_SOURCE
+ -DBOOST_COROUTINES_SOURCE
+ -DBOOST_DISABLE_ASSERTS
+ -DBOOST_SPIRIT_USE_PHOENIX_V3=1
+ -DBOOST_SYSTEM_NO_DEPRECATED
+ -DBOOST_THREAD_BUILD_LIB=1
+ -DBOOST_THREAD_DONT_USE_CHRONO=1
+ -DBOOST_THREAD_NO_LIB=1
+ -DBOOST_THREAD_USE_LIB=1
+ -DDATE_TIME_INLINE
+ -DBOOST_THREAD_DONT_USE_CHRONO
+ -DBOOST_THREAD_POSIX
+)
+target_include_directories(boost-libs-chrono PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/boost/predef
+)
+target_link_libraries(boost-libs-chrono PUBLIC
+ contrib-libs-cxxsupp
+ contrib-restricted-boost
+)
+target_sources(boost-libs-chrono PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/chrono/src/chrono.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/chrono/src/process_cpu_clocks.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/chrono/src/thread_clock.cpp
+)
diff --git a/contrib/restricted/boost/libs/iostreams/CMakeLists.txt b/contrib/restricted/boost/libs/iostreams/CMakeLists.txt
new file mode 100644
index 0000000000..05485b9396
--- /dev/null
+++ b/contrib/restricted/boost/libs/iostreams/CMakeLists.txt
@@ -0,0 +1,39 @@
+find_package(ZLIB)
+
+add_library(boost-libs-iostreams)
+target_compile_options(boost-libs-iostreams PRIVATE
+ -DBOOST_ATOMIC_STATIC_LINK=1
+ -DBOOST_All_STATIC_LINK=1
+ -DBOOST_CHRONO_STATIC_LINK=1
+ -DBOOST_SYSTEM_STATIC_LINK=1
+ -DBOOST_TIMER_STATIC_LINK=1
+ -DBOOST_ALL_NO_LIB=1
+ -DBOOST_ATOMIC_SOURCE
+ -DBOOST_COROUTINES_SOURCE
+ -DBOOST_DISABLE_ASSERTS
+ -DBOOST_SPIRIT_USE_PHOENIX_V3=1
+ -DBOOST_SYSTEM_NO_DEPRECATED
+ -DBOOST_THREAD_BUILD_LIB=1
+ -DBOOST_THREAD_DONT_USE_CHRONO=1
+ -DBOOST_THREAD_NO_LIB=1
+ -DBOOST_THREAD_USE_LIB=1
+ -DDATE_TIME_INLINE
+ -DBOOST_THREAD_DONT_USE_CHRONO
+ -DBOOST_THREAD_POSIX
+ -DBOOST_IOSTREAMS_USE_DEPRECATED
+)
+target_include_directories(boost-libs-iostreams PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/boost/predef
+)
+target_link_libraries(boost-libs-iostreams PUBLIC
+ contrib-libs-cxxsupp
+ contrib-restricted-boost
+ ZLIB::ZLIB
+ contrib-libs-libbz2
+)
+target_sources(boost-libs-iostreams PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/iostreams/src/file_descriptor.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/iostreams/src/gzip.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/iostreams/src/mapped_file.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/iostreams/src/zlib.cpp
+)
diff --git a/contrib/restricted/boost/libs/program_options/CMakeLists.txt b/contrib/restricted/boost/libs/program_options/CMakeLists.txt
new file mode 100644
index 0000000000..d5f525e509
--- /dev/null
+++ b/contrib/restricted/boost/libs/program_options/CMakeLists.txt
@@ -0,0 +1,41 @@
+add_library(boost-libs-program_options)
+target_compile_options(boost-libs-program_options PRIVATE
+ -DBOOST_ATOMIC_STATIC_LINK=1
+ -DBOOST_All_STATIC_LINK=1
+ -DBOOST_CHRONO_STATIC_LINK=1
+ -DBOOST_SYSTEM_STATIC_LINK=1
+ -DBOOST_TIMER_STATIC_LINK=1
+ -DBOOST_ALL_NO_LIB=1
+ -DBOOST_ATOMIC_SOURCE
+ -DBOOST_COROUTINES_SOURCE
+ -DBOOST_DISABLE_ASSERTS
+ -DBOOST_SPIRIT_USE_PHOENIX_V3=1
+ -DBOOST_SYSTEM_NO_DEPRECATED
+ -DBOOST_THREAD_BUILD_LIB=1
+ -DBOOST_THREAD_DONT_USE_CHRONO=1
+ -DBOOST_THREAD_NO_LIB=1
+ -DBOOST_THREAD_USE_LIB=1
+ -DDATE_TIME_INLINE
+ -DBOOST_THREAD_DONT_USE_CHRONO
+ -DBOOST_THREAD_POSIX
+)
+target_include_directories(boost-libs-program_options PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/boost/predef
+)
+target_link_libraries(boost-libs-program_options PUBLIC
+ contrib-libs-cxxsupp
+ contrib-restricted-boost
+)
+target_sources(boost-libs-program_options PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/program_options/src/cmdline.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/program_options/src/config_file.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/program_options/src/convert.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/program_options/src/options_description.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/program_options/src/parsers.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/program_options/src/positional_options.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/program_options/src/split.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/program_options/src/utf8_codecvt_facet.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/program_options/src/value_semantic.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/program_options/src/variables_map.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/program_options/src/winmain.cpp
+)
diff --git a/contrib/restricted/boost/libs/system/CMakeLists.txt b/contrib/restricted/boost/libs/system/CMakeLists.txt
new file mode 100644
index 0000000000..d05be76296
--- /dev/null
+++ b/contrib/restricted/boost/libs/system/CMakeLists.txt
@@ -0,0 +1,31 @@
+add_library(boost-libs-system)
+target_compile_options(boost-libs-system PRIVATE
+ -DBOOST_ATOMIC_STATIC_LINK=1
+ -DBOOST_All_STATIC_LINK=1
+ -DBOOST_CHRONO_STATIC_LINK=1
+ -DBOOST_SYSTEM_STATIC_LINK=1
+ -DBOOST_TIMER_STATIC_LINK=1
+ -DBOOST_ALL_NO_LIB=1
+ -DBOOST_ATOMIC_SOURCE
+ -DBOOST_COROUTINES_SOURCE
+ -DBOOST_DISABLE_ASSERTS
+ -DBOOST_SPIRIT_USE_PHOENIX_V3=1
+ -DBOOST_SYSTEM_NO_DEPRECATED
+ -DBOOST_THREAD_BUILD_LIB=1
+ -DBOOST_THREAD_DONT_USE_CHRONO=1
+ -DBOOST_THREAD_NO_LIB=1
+ -DBOOST_THREAD_USE_LIB=1
+ -DDATE_TIME_INLINE
+ -DBOOST_THREAD_DONT_USE_CHRONO
+ -DBOOST_THREAD_POSIX
+)
+target_include_directories(boost-libs-system PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/boost/predef
+)
+target_link_libraries(boost-libs-system PUBLIC
+ contrib-libs-cxxsupp
+ contrib-restricted-boost
+)
+target_sources(boost-libs-system PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/system/src/error_code.cpp
+)
diff --git a/contrib/restricted/boost/libs/thread/CMakeLists.txt b/contrib/restricted/boost/libs/thread/CMakeLists.txt
new file mode 100644
index 0000000000..bdcbf03224
--- /dev/null
+++ b/contrib/restricted/boost/libs/thread/CMakeLists.txt
@@ -0,0 +1,35 @@
+add_library(boost-libs-thread)
+target_compile_options(boost-libs-thread PRIVATE
+ -DBOOST_ATOMIC_STATIC_LINK=1
+ -DBOOST_All_STATIC_LINK=1
+ -DBOOST_CHRONO_STATIC_LINK=1
+ -DBOOST_SYSTEM_STATIC_LINK=1
+ -DBOOST_TIMER_STATIC_LINK=1
+ -DBOOST_ALL_NO_LIB=1
+ -DBOOST_ATOMIC_SOURCE
+ -DBOOST_COROUTINES_SOURCE
+ -DBOOST_DISABLE_ASSERTS
+ -DBOOST_SPIRIT_USE_PHOENIX_V3=1
+ -DBOOST_SYSTEM_NO_DEPRECATED
+ -DBOOST_THREAD_BUILD_LIB=1
+ -DBOOST_THREAD_DONT_USE_CHRONO=1
+ -DBOOST_THREAD_NO_LIB=1
+ -DBOOST_THREAD_USE_LIB=1
+ -DDATE_TIME_INLINE
+ -DBOOST_THREAD_DONT_USE_CHRONO
+ -DBOOST_THREAD_POSIX
+)
+target_include_directories(boost-libs-thread PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/boost/predef
+)
+target_link_libraries(boost-libs-thread PUBLIC
+ contrib-libs-cxxsupp
+ contrib-restricted-boost
+ boost-libs-chrono
+ boost-libs-system
+)
+target_sources(boost-libs-thread PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/thread/src/pthread/once.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/thread/src/pthread/thread.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/thread/src/future.cpp
+)