diff options
author | thegeorg <thegeorg@yandex-team.com> | 2022-12-15 19:25:15 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2022-12-15 19:25:15 +0300 |
commit | 0c31d97afd7858af5f8f858c8addf91655ca9ccc (patch) | |
tree | 4d8a246db168f7beaafcd06d486c034115c2123d /library/cpp/yt | |
parent | d1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff) | |
download | ydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz |
Sync linux-headers instead of using system ones
Diffstat (limited to 'library/cpp/yt')
40 files changed, 669 insertions, 113 deletions
diff --git a/library/cpp/yt/assert/CMakeLists.darwin.txt b/library/cpp/yt/assert/CMakeLists.darwin.txt new file mode 100644 index 0000000000..8ca8806a6b --- /dev/null +++ b/library/cpp/yt/assert/CMakeLists.darwin.txt @@ -0,0 +1,17 @@ + +# 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(cpp-yt-assert) +target_link_libraries(cpp-yt-assert PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-yt-assert PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/assert/assert.cpp +) diff --git a/library/cpp/yt/assert/CMakeLists.linux-aarch64.txt b/library/cpp/yt/assert/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..0b8a65aa51 --- /dev/null +++ b/library/cpp/yt/assert/CMakeLists.linux-aarch64.txt @@ -0,0 +1,18 @@ + +# 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(cpp-yt-assert) +target_link_libraries(cpp-yt-assert PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-yt-assert PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/assert/assert.cpp +) diff --git a/library/cpp/yt/assert/CMakeLists.linux.txt b/library/cpp/yt/assert/CMakeLists.linux.txt new file mode 100644 index 0000000000..0b8a65aa51 --- /dev/null +++ b/library/cpp/yt/assert/CMakeLists.linux.txt @@ -0,0 +1,18 @@ + +# 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(cpp-yt-assert) +target_link_libraries(cpp-yt-assert PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-yt-assert PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/assert/assert.cpp +) diff --git a/library/cpp/yt/assert/CMakeLists.txt b/library/cpp/yt/assert/CMakeLists.txt index 8ca8806a6b..3e0811fb22 100644 --- a/library/cpp/yt/assert/CMakeLists.txt +++ b/library/cpp/yt/assert/CMakeLists.txt @@ -6,12 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-yt-assert) -target_link_libraries(cpp-yt-assert PUBLIC - contrib-libs-cxxsupp - yutil -) -target_sources(cpp-yt-assert PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/yt/assert/assert.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/library/cpp/yt/coding/CMakeLists.darwin.txt b/library/cpp/yt/coding/CMakeLists.darwin.txt new file mode 100644 index 0000000000..0bd06ca740 --- /dev/null +++ b/library/cpp/yt/coding/CMakeLists.darwin.txt @@ -0,0 +1,15 @@ + +# 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(cpp-yt-coding INTERFACE) +target_link_libraries(cpp-yt-coding INTERFACE + contrib-libs-cxxsupp + yutil + cpp-yt-exception +) diff --git a/library/cpp/yt/coding/CMakeLists.linux-aarch64.txt b/library/cpp/yt/coding/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..a59dc2d3f5 --- /dev/null +++ b/library/cpp/yt/coding/CMakeLists.linux-aarch64.txt @@ -0,0 +1,16 @@ + +# 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(cpp-yt-coding INTERFACE) +target_link_libraries(cpp-yt-coding INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-exception +) diff --git a/library/cpp/yt/coding/CMakeLists.linux.txt b/library/cpp/yt/coding/CMakeLists.linux.txt new file mode 100644 index 0000000000..a59dc2d3f5 --- /dev/null +++ b/library/cpp/yt/coding/CMakeLists.linux.txt @@ -0,0 +1,16 @@ + +# 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(cpp-yt-coding INTERFACE) +target_link_libraries(cpp-yt-coding INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-exception +) diff --git a/library/cpp/yt/coding/CMakeLists.txt b/library/cpp/yt/coding/CMakeLists.txt index 0bd06ca740..3e0811fb22 100644 --- a/library/cpp/yt/coding/CMakeLists.txt +++ b/library/cpp/yt/coding/CMakeLists.txt @@ -6,10 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-yt-coding INTERFACE) -target_link_libraries(cpp-yt-coding INTERFACE - contrib-libs-cxxsupp - yutil - cpp-yt-exception -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/library/cpp/yt/exception/CMakeLists.darwin.txt b/library/cpp/yt/exception/CMakeLists.darwin.txt new file mode 100644 index 0000000000..591a7a21d1 --- /dev/null +++ b/library/cpp/yt/exception/CMakeLists.darwin.txt @@ -0,0 +1,17 @@ + +# 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(cpp-yt-exception) +target_link_libraries(cpp-yt-exception PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-yt-exception PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/exception/exception.cpp +) diff --git a/library/cpp/yt/exception/CMakeLists.linux-aarch64.txt b/library/cpp/yt/exception/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..cb0d36b8c7 --- /dev/null +++ b/library/cpp/yt/exception/CMakeLists.linux-aarch64.txt @@ -0,0 +1,18 @@ + +# 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(cpp-yt-exception) +target_link_libraries(cpp-yt-exception PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-yt-exception PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/exception/exception.cpp +) diff --git a/library/cpp/yt/exception/CMakeLists.linux.txt b/library/cpp/yt/exception/CMakeLists.linux.txt new file mode 100644 index 0000000000..cb0d36b8c7 --- /dev/null +++ b/library/cpp/yt/exception/CMakeLists.linux.txt @@ -0,0 +1,18 @@ + +# 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(cpp-yt-exception) +target_link_libraries(cpp-yt-exception PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-yt-exception PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/exception/exception.cpp +) diff --git a/library/cpp/yt/exception/CMakeLists.txt b/library/cpp/yt/exception/CMakeLists.txt index 591a7a21d1..3e0811fb22 100644 --- a/library/cpp/yt/exception/CMakeLists.txt +++ b/library/cpp/yt/exception/CMakeLists.txt @@ -6,12 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-yt-exception) -target_link_libraries(cpp-yt-exception PUBLIC - contrib-libs-cxxsupp - yutil -) -target_sources(cpp-yt-exception PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/yt/exception/exception.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/library/cpp/yt/malloc/CMakeLists.darwin.txt b/library/cpp/yt/malloc/CMakeLists.darwin.txt new file mode 100644 index 0000000000..60ae2a46b3 --- /dev/null +++ b/library/cpp/yt/malloc/CMakeLists.darwin.txt @@ -0,0 +1,18 @@ + +# 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(cpp-yt-malloc) +target_link_libraries(cpp-yt-malloc PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-yt-malloc PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/malloc/malloc.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/malloc/dummy_malloc.cpp +) diff --git a/library/cpp/yt/malloc/CMakeLists.linux-aarch64.txt b/library/cpp/yt/malloc/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..172e050130 --- /dev/null +++ b/library/cpp/yt/malloc/CMakeLists.linux-aarch64.txt @@ -0,0 +1,19 @@ + +# 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(cpp-yt-malloc) +target_link_libraries(cpp-yt-malloc PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-yt-malloc PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/malloc/malloc.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/malloc/dummy_malloc.cpp +) diff --git a/library/cpp/yt/malloc/CMakeLists.linux.txt b/library/cpp/yt/malloc/CMakeLists.linux.txt new file mode 100644 index 0000000000..172e050130 --- /dev/null +++ b/library/cpp/yt/malloc/CMakeLists.linux.txt @@ -0,0 +1,19 @@ + +# 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(cpp-yt-malloc) +target_link_libraries(cpp-yt-malloc PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-yt-malloc PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/malloc/malloc.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/malloc/dummy_malloc.cpp +) diff --git a/library/cpp/yt/malloc/CMakeLists.txt b/library/cpp/yt/malloc/CMakeLists.txt index 60ae2a46b3..3e0811fb22 100644 --- a/library/cpp/yt/malloc/CMakeLists.txt +++ b/library/cpp/yt/malloc/CMakeLists.txt @@ -6,13 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-yt-malloc) -target_link_libraries(cpp-yt-malloc PUBLIC - contrib-libs-cxxsupp - yutil -) -target_sources(cpp-yt-malloc PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/yt/malloc/malloc.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/yt/malloc/dummy_malloc.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/library/cpp/yt/memory/CMakeLists.darwin.txt b/library/cpp/yt/memory/CMakeLists.darwin.txt new file mode 100644 index 0000000000..5bcfddec02 --- /dev/null +++ b/library/cpp/yt/memory/CMakeLists.darwin.txt @@ -0,0 +1,24 @@ + +# 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(cpp-yt-memory) +target_link_libraries(cpp-yt-memory PUBLIC + contrib-libs-cxxsupp + yutil + cpp-yt-assert + cpp-yt-misc + cpp-yt-malloc +) +target_sources(cpp-yt-memory PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/blob.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/chunked_output_stream.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/ref.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/ref_tracked.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/shared_range.cpp +) diff --git a/library/cpp/yt/memory/CMakeLists.linux-aarch64.txt b/library/cpp/yt/memory/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..0e7c58d94f --- /dev/null +++ b/library/cpp/yt/memory/CMakeLists.linux-aarch64.txt @@ -0,0 +1,25 @@ + +# 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(cpp-yt-memory) +target_link_libraries(cpp-yt-memory PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-assert + cpp-yt-misc + cpp-yt-malloc +) +target_sources(cpp-yt-memory PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/blob.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/chunked_output_stream.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/ref.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/ref_tracked.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/shared_range.cpp +) diff --git a/library/cpp/yt/memory/CMakeLists.linux.txt b/library/cpp/yt/memory/CMakeLists.linux.txt new file mode 100644 index 0000000000..0e7c58d94f --- /dev/null +++ b/library/cpp/yt/memory/CMakeLists.linux.txt @@ -0,0 +1,25 @@ + +# 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(cpp-yt-memory) +target_link_libraries(cpp-yt-memory PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-assert + cpp-yt-misc + cpp-yt-malloc +) +target_sources(cpp-yt-memory PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/blob.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/chunked_output_stream.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/ref.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/ref_tracked.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/shared_range.cpp +) diff --git a/library/cpp/yt/memory/CMakeLists.txt b/library/cpp/yt/memory/CMakeLists.txt index 5bcfddec02..3e0811fb22 100644 --- a/library/cpp/yt/memory/CMakeLists.txt +++ b/library/cpp/yt/memory/CMakeLists.txt @@ -6,19 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-yt-memory) -target_link_libraries(cpp-yt-memory PUBLIC - contrib-libs-cxxsupp - yutil - cpp-yt-assert - cpp-yt-misc - cpp-yt-malloc -) -target_sources(cpp-yt-memory PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/blob.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/chunked_output_stream.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/ref.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/ref_tracked.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/yt/memory/shared_range.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/library/cpp/yt/misc/CMakeLists.darwin.txt b/library/cpp/yt/misc/CMakeLists.darwin.txt new file mode 100644 index 0000000000..696f0f2bed --- /dev/null +++ b/library/cpp/yt/misc/CMakeLists.darwin.txt @@ -0,0 +1,20 @@ + +# 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(cpp-yt-misc) +target_link_libraries(cpp-yt-misc PUBLIC + contrib-libs-cxxsupp + yutil + cpp-yt-exception +) +target_sources(cpp-yt-misc PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/misc/guid.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/misc/source_location.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/misc/variant.cpp +) diff --git a/library/cpp/yt/misc/CMakeLists.linux-aarch64.txt b/library/cpp/yt/misc/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..833cb57f78 --- /dev/null +++ b/library/cpp/yt/misc/CMakeLists.linux-aarch64.txt @@ -0,0 +1,21 @@ + +# 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(cpp-yt-misc) +target_link_libraries(cpp-yt-misc PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-exception +) +target_sources(cpp-yt-misc PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/misc/guid.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/misc/source_location.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/misc/variant.cpp +) diff --git a/library/cpp/yt/misc/CMakeLists.linux.txt b/library/cpp/yt/misc/CMakeLists.linux.txt new file mode 100644 index 0000000000..833cb57f78 --- /dev/null +++ b/library/cpp/yt/misc/CMakeLists.linux.txt @@ -0,0 +1,21 @@ + +# 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(cpp-yt-misc) +target_link_libraries(cpp-yt-misc PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-exception +) +target_sources(cpp-yt-misc PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/misc/guid.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/misc/source_location.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/misc/variant.cpp +) diff --git a/library/cpp/yt/misc/CMakeLists.txt b/library/cpp/yt/misc/CMakeLists.txt index 696f0f2bed..3e0811fb22 100644 --- a/library/cpp/yt/misc/CMakeLists.txt +++ b/library/cpp/yt/misc/CMakeLists.txt @@ -6,15 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-yt-misc) -target_link_libraries(cpp-yt-misc PUBLIC - contrib-libs-cxxsupp - yutil - cpp-yt-exception -) -target_sources(cpp-yt-misc PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/yt/misc/guid.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/yt/misc/source_location.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/yt/misc/variant.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/library/cpp/yt/small_containers/CMakeLists.darwin.txt b/library/cpp/yt/small_containers/CMakeLists.darwin.txt new file mode 100644 index 0000000000..241d46e2b9 --- /dev/null +++ b/library/cpp/yt/small_containers/CMakeLists.darwin.txt @@ -0,0 +1,16 @@ + +# 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(cpp-yt-small_containers INTERFACE) +target_link_libraries(cpp-yt-small_containers INTERFACE + contrib-libs-cxxsupp + yutil + cpp-yt-assert + cpp-yt-malloc +) diff --git a/library/cpp/yt/small_containers/CMakeLists.linux-aarch64.txt b/library/cpp/yt/small_containers/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..2fcce2b44c --- /dev/null +++ b/library/cpp/yt/small_containers/CMakeLists.linux-aarch64.txt @@ -0,0 +1,17 @@ + +# 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(cpp-yt-small_containers INTERFACE) +target_link_libraries(cpp-yt-small_containers INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-assert + cpp-yt-malloc +) diff --git a/library/cpp/yt/small_containers/CMakeLists.linux.txt b/library/cpp/yt/small_containers/CMakeLists.linux.txt new file mode 100644 index 0000000000..2fcce2b44c --- /dev/null +++ b/library/cpp/yt/small_containers/CMakeLists.linux.txt @@ -0,0 +1,17 @@ + +# 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(cpp-yt-small_containers INTERFACE) +target_link_libraries(cpp-yt-small_containers INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-assert + cpp-yt-malloc +) diff --git a/library/cpp/yt/small_containers/CMakeLists.txt b/library/cpp/yt/small_containers/CMakeLists.txt index 241d46e2b9..3e0811fb22 100644 --- a/library/cpp/yt/small_containers/CMakeLists.txt +++ b/library/cpp/yt/small_containers/CMakeLists.txt @@ -6,11 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-yt-small_containers INTERFACE) -target_link_libraries(cpp-yt-small_containers INTERFACE - contrib-libs-cxxsupp - yutil - cpp-yt-assert - cpp-yt-malloc -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/library/cpp/yt/string/CMakeLists.darwin.txt b/library/cpp/yt/string/CMakeLists.darwin.txt new file mode 100644 index 0000000000..4ee8e8324a --- /dev/null +++ b/library/cpp/yt/string/CMakeLists.darwin.txt @@ -0,0 +1,24 @@ + +# 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(cpp-yt-string) +target_link_libraries(cpp-yt-string PUBLIC + contrib-libs-cxxsupp + yutil + cpp-yt-assert + cpp-yt-exception + cpp-yt-misc + cpp-yt-small_containers +) +target_sources(cpp-yt-string PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/enum.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/guid.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/string.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/format.cpp +) diff --git a/library/cpp/yt/string/CMakeLists.linux-aarch64.txt b/library/cpp/yt/string/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..1fb0fe8b80 --- /dev/null +++ b/library/cpp/yt/string/CMakeLists.linux-aarch64.txt @@ -0,0 +1,25 @@ + +# 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(cpp-yt-string) +target_link_libraries(cpp-yt-string PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-assert + cpp-yt-exception + cpp-yt-misc + cpp-yt-small_containers +) +target_sources(cpp-yt-string PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/enum.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/guid.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/string.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/format.cpp +) diff --git a/library/cpp/yt/string/CMakeLists.linux.txt b/library/cpp/yt/string/CMakeLists.linux.txt new file mode 100644 index 0000000000..1fb0fe8b80 --- /dev/null +++ b/library/cpp/yt/string/CMakeLists.linux.txt @@ -0,0 +1,25 @@ + +# 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(cpp-yt-string) +target_link_libraries(cpp-yt-string PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-assert + cpp-yt-exception + cpp-yt-misc + cpp-yt-small_containers +) +target_sources(cpp-yt-string PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/enum.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/guid.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/string.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/format.cpp +) diff --git a/library/cpp/yt/string/CMakeLists.txt b/library/cpp/yt/string/CMakeLists.txt index 4ee8e8324a..3e0811fb22 100644 --- a/library/cpp/yt/string/CMakeLists.txt +++ b/library/cpp/yt/string/CMakeLists.txt @@ -6,19 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-yt-string) -target_link_libraries(cpp-yt-string PUBLIC - contrib-libs-cxxsupp - yutil - cpp-yt-assert - cpp-yt-exception - cpp-yt-misc - cpp-yt-small_containers -) -target_sources(cpp-yt-string PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/enum.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/guid.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/string.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/yt/string/format.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/library/cpp/yt/yson/CMakeLists.darwin.txt b/library/cpp/yt/yson/CMakeLists.darwin.txt new file mode 100644 index 0000000000..b4d5d72a0b --- /dev/null +++ b/library/cpp/yt/yson/CMakeLists.darwin.txt @@ -0,0 +1,18 @@ + +# 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(cpp-yt-yson) +target_link_libraries(cpp-yt-yson PUBLIC + contrib-libs-cxxsupp + yutil + cpp-yt-yson_string +) +target_sources(cpp-yt-yson PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/yson/consumer.cpp +) diff --git a/library/cpp/yt/yson/CMakeLists.linux-aarch64.txt b/library/cpp/yt/yson/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..97c2e3d83b --- /dev/null +++ b/library/cpp/yt/yson/CMakeLists.linux-aarch64.txt @@ -0,0 +1,19 @@ + +# 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(cpp-yt-yson) +target_link_libraries(cpp-yt-yson PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-yson_string +) +target_sources(cpp-yt-yson PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/yson/consumer.cpp +) diff --git a/library/cpp/yt/yson/CMakeLists.linux.txt b/library/cpp/yt/yson/CMakeLists.linux.txt new file mode 100644 index 0000000000..97c2e3d83b --- /dev/null +++ b/library/cpp/yt/yson/CMakeLists.linux.txt @@ -0,0 +1,19 @@ + +# 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(cpp-yt-yson) +target_link_libraries(cpp-yt-yson PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-yson_string +) +target_sources(cpp-yt-yson PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/yson/consumer.cpp +) diff --git a/library/cpp/yt/yson/CMakeLists.txt b/library/cpp/yt/yson/CMakeLists.txt index b4d5d72a0b..3e0811fb22 100644 --- a/library/cpp/yt/yson/CMakeLists.txt +++ b/library/cpp/yt/yson/CMakeLists.txt @@ -6,13 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-yt-yson) -target_link_libraries(cpp-yt-yson PUBLIC - contrib-libs-cxxsupp - yutil - cpp-yt-yson_string -) -target_sources(cpp-yt-yson PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/yt/yson/consumer.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() diff --git a/library/cpp/yt/yson_string/CMakeLists.darwin.txt b/library/cpp/yt/yson_string/CMakeLists.darwin.txt new file mode 100644 index 0000000000..d2938dc9a3 --- /dev/null +++ b/library/cpp/yt/yson_string/CMakeLists.darwin.txt @@ -0,0 +1,24 @@ + +# 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(cpp-yt-yson_string) +target_link_libraries(cpp-yt-yson_string PUBLIC + contrib-libs-cxxsupp + yutil + cpp-yt-assert + cpp-yt-coding + cpp-yt-exception + cpp-yt-string + cpp-yt-memory + cpp-yt-misc +) +target_sources(cpp-yt-yson_string PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/yson_string/convert.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/yson_string/string.cpp +) diff --git a/library/cpp/yt/yson_string/CMakeLists.linux-aarch64.txt b/library/cpp/yt/yson_string/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..85300a3794 --- /dev/null +++ b/library/cpp/yt/yson_string/CMakeLists.linux-aarch64.txt @@ -0,0 +1,25 @@ + +# 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(cpp-yt-yson_string) +target_link_libraries(cpp-yt-yson_string PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-assert + cpp-yt-coding + cpp-yt-exception + cpp-yt-string + cpp-yt-memory + cpp-yt-misc +) +target_sources(cpp-yt-yson_string PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/yson_string/convert.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/yson_string/string.cpp +) diff --git a/library/cpp/yt/yson_string/CMakeLists.linux.txt b/library/cpp/yt/yson_string/CMakeLists.linux.txt new file mode 100644 index 0000000000..85300a3794 --- /dev/null +++ b/library/cpp/yt/yson_string/CMakeLists.linux.txt @@ -0,0 +1,25 @@ + +# 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(cpp-yt-yson_string) +target_link_libraries(cpp-yt-yson_string PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-yt-assert + cpp-yt-coding + cpp-yt-exception + cpp-yt-string + cpp-yt-memory + cpp-yt-misc +) +target_sources(cpp-yt-yson_string PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/yt/yson_string/convert.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/yt/yson_string/string.cpp +) diff --git a/library/cpp/yt/yson_string/CMakeLists.txt b/library/cpp/yt/yson_string/CMakeLists.txt index d2938dc9a3..3e0811fb22 100644 --- a/library/cpp/yt/yson_string/CMakeLists.txt +++ b/library/cpp/yt/yson_string/CMakeLists.txt @@ -6,19 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-yt-yson_string) -target_link_libraries(cpp-yt-yson_string PUBLIC - contrib-libs-cxxsupp - yutil - cpp-yt-assert - cpp-yt-coding - cpp-yt-exception - cpp-yt-string - cpp-yt-memory - cpp-yt-misc -) -target_sources(cpp-yt-yson_string PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/yt/yson_string/convert.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/yt/yson_string/string.cpp -) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() |