diff options
| author | vvvv <[email protected]> | 2022-08-08 14:43:22 +0300 |
|---|---|---|
| committer | vvvv <[email protected]> | 2022-08-08 14:43:22 +0300 |
| commit | f5e8e19af3bc909fdb2e42501b3befcb9940f445 (patch) | |
| tree | a25aeef3a430071fcf64442925423cabace52548 /contrib/restricted/boost | |
| parent | cd5f1d506209511017e977c7a7b53c4779d5adb1 (diff) | |
fix darwin build
Diffstat (limited to 'contrib/restricted/boost')
6 files changed, 112 insertions, 24 deletions
diff --git a/contrib/restricted/boost/crc/CMakeLists.linux.txt b/contrib/restricted/boost/crc/CMakeLists.linux.txt deleted file mode 100644 index 3629d2b911d..00000000000 --- a/contrib/restricted/boost/crc/CMakeLists.linux.txt +++ /dev/null @@ -1,19 +0,0 @@ - -# This file was gererated by the build system used internally in the Yandex monorepo. -# Only simple modifications are allowed (adding source-files to targets, adding simple properties -# like target_include_directories). These modifications will be ported to original -# ya.make files by maintainers. Any complex modifications which can't be ported back to the -# original buildsystem will not be accepted. - - - -add_library(restricted-boost-crc INTERFACE) -target_include_directories(restricted-boost-crc INTERFACE - ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/crc/include -) -target_link_libraries(restricted-boost-crc INTERFACE - contrib-libs-cxxsupp - yutil - restricted-boost-config - restricted-boost-integer -) diff --git a/contrib/restricted/boost/crc/CMakeLists.txt b/contrib/restricted/boost/crc/CMakeLists.txt index e8c98bfd99f..3629d2b911d 100644 --- a/contrib/restricted/boost/crc/CMakeLists.txt +++ b/contrib/restricted/boost/crc/CMakeLists.txt @@ -6,6 +6,14 @@ # original buildsystem will not be accepted. -if (UNIX AND NOT APPLE) - include(CMakeLists.linux.txt) -endif() + +add_library(restricted-boost-crc INTERFACE) +target_include_directories(restricted-boost-crc INTERFACE + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/crc/include +) +target_link_libraries(restricted-boost-crc INTERFACE + contrib-libs-cxxsupp + yutil + restricted-boost-config + restricted-boost-integer +) diff --git a/contrib/restricted/boost/libs/iostreams/CMakeLists.darwin.txt b/contrib/restricted/boost/libs/iostreams/CMakeLists.darwin.txt new file mode 100644 index 00000000000..6859c94e497 --- /dev/null +++ b/contrib/restricted/boost/libs/iostreams/CMakeLists.darwin.txt @@ -0,0 +1,46 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +find_package(ZLIB REQUIRED) + +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 + -D_DARWIN_C_SOURCE=1 + -DBOOST_IOSTREAMS_USE_DEPRECATED + -Wno-everything +) +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/iostreams/CMakeLists.txt b/contrib/restricted/boost/libs/iostreams/CMakeLists.txt index e8c98bfd99f..fc7b1ee73ce 100644 --- a/contrib/restricted/boost/libs/iostreams/CMakeLists.txt +++ b/contrib/restricted/boost/libs/iostreams/CMakeLists.txt @@ -6,6 +6,8 @@ # original buildsystem will not be accepted. -if (UNIX AND NOT APPLE) +if (APPLE) + include(CMakeLists.darwin.txt) +elseif (UNIX AND NOT APPLE) include(CMakeLists.linux.txt) endif() diff --git a/contrib/restricted/boost/libs/program_options/CMakeLists.darwin.txt b/contrib/restricted/boost/libs/program_options/CMakeLists.darwin.txt new file mode 100644 index 00000000000..e9319cbb1e9 --- /dev/null +++ b/contrib/restricted/boost/libs/program_options/CMakeLists.darwin.txt @@ -0,0 +1,49 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +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 + -D_DARWIN_C_SOURCE=1 + -Wno-everything +) +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/program_options/CMakeLists.txt b/contrib/restricted/boost/libs/program_options/CMakeLists.txt index e8c98bfd99f..fc7b1ee73ce 100644 --- a/contrib/restricted/boost/libs/program_options/CMakeLists.txt +++ b/contrib/restricted/boost/libs/program_options/CMakeLists.txt @@ -6,6 +6,8 @@ # original buildsystem will not be accepted. -if (UNIX AND NOT APPLE) +if (APPLE) + include(CMakeLists.darwin.txt) +elseif (UNIX AND NOT APPLE) include(CMakeLists.linux.txt) endif() |
