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/digest | |
parent | d1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff) | |
download | ydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz |
Sync linux-headers instead of using system ones
Diffstat (limited to 'library/cpp/digest')
56 files changed, 755 insertions, 117 deletions
diff --git a/library/cpp/digest/argonish/CMakeLists.linux-aarch64.txt b/library/cpp/digest/argonish/CMakeLists.linux-aarch64.txt index 8e26c0e02b..66ab4d61ce 100644 --- a/library/cpp/digest/argonish/CMakeLists.linux-aarch64.txt +++ b/library/cpp/digest/argonish/CMakeLists.linux-aarch64.txt @@ -10,6 +10,7 @@ add_subdirectory(internal) add_library(cpp-digest-argonish) target_link_libraries(cpp-digest-argonish PUBLIC + contrib-libs-linux-headers contrib-libs-cxxsupp yutil cpp-threading-poor_man_openmp diff --git a/library/cpp/digest/argonish/CMakeLists.linux.txt b/library/cpp/digest/argonish/CMakeLists.linux.txt index 617cc9aa13..5da6d6e49c 100644 --- a/library/cpp/digest/argonish/CMakeLists.linux.txt +++ b/library/cpp/digest/argonish/CMakeLists.linux.txt @@ -10,6 +10,7 @@ add_subdirectory(internal) add_library(cpp-digest-argonish) target_link_libraries(cpp-digest-argonish PUBLIC + contrib-libs-linux-headers contrib-libs-cxxsupp yutil cpp-threading-poor_man_openmp diff --git a/library/cpp/digest/argonish/internal/argon2/CMakeLists.darwin.txt b/library/cpp/digest/argonish/internal/argon2/CMakeLists.darwin.txt new file mode 100644 index 0000000000..cded958216 --- /dev/null +++ b/library/cpp/digest/argonish/internal/argon2/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(argonish-internal-argon2 INTERFACE) +target_link_libraries(argonish-internal-argon2 INTERFACE + contrib-libs-cxxsupp + yutil + argonish-internal-blamka + argonish-internal-blake2b + cpp-threading-poor_man_openmp +) diff --git a/library/cpp/digest/argonish/internal/argon2/CMakeLists.linux-aarch64.txt b/library/cpp/digest/argonish/internal/argon2/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..ffa2bb1146 --- /dev/null +++ b/library/cpp/digest/argonish/internal/argon2/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(argonish-internal-argon2 INTERFACE) +target_link_libraries(argonish-internal-argon2 INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + argonish-internal-blamka + argonish-internal-blake2b + cpp-threading-poor_man_openmp +) diff --git a/library/cpp/digest/argonish/internal/argon2/CMakeLists.linux.txt b/library/cpp/digest/argonish/internal/argon2/CMakeLists.linux.txt new file mode 100644 index 0000000000..ffa2bb1146 --- /dev/null +++ b/library/cpp/digest/argonish/internal/argon2/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(argonish-internal-argon2 INTERFACE) +target_link_libraries(argonish-internal-argon2 INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + argonish-internal-blamka + argonish-internal-blake2b + cpp-threading-poor_man_openmp +) diff --git a/library/cpp/digest/argonish/internal/argon2/CMakeLists.txt b/library/cpp/digest/argonish/internal/argon2/CMakeLists.txt index cded958216..3e0811fb22 100644 --- a/library/cpp/digest/argonish/internal/argon2/CMakeLists.txt +++ b/library/cpp/digest/argonish/internal/argon2/CMakeLists.txt @@ -6,12 +6,10 @@ # original buildsystem will not be accepted. - -add_library(argonish-internal-argon2 INTERFACE) -target_link_libraries(argonish-internal-argon2 INTERFACE - contrib-libs-cxxsupp - yutil - argonish-internal-blamka - argonish-internal-blake2b - cpp-threading-poor_man_openmp -) +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/digest/argonish/internal/blake2b/CMakeLists.darwin.txt b/library/cpp/digest/argonish/internal/blake2b/CMakeLists.darwin.txt new file mode 100644 index 0000000000..3b3ff75316 --- /dev/null +++ b/library/cpp/digest/argonish/internal/blake2b/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(argonish-internal-blake2b INTERFACE) +target_link_libraries(argonish-internal-blake2b INTERFACE + contrib-libs-cxxsupp + yutil + argonish-internal-rotations +) diff --git a/library/cpp/digest/argonish/internal/blake2b/CMakeLists.linux-aarch64.txt b/library/cpp/digest/argonish/internal/blake2b/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..b33e219cd5 --- /dev/null +++ b/library/cpp/digest/argonish/internal/blake2b/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(argonish-internal-blake2b INTERFACE) +target_link_libraries(argonish-internal-blake2b INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + argonish-internal-rotations +) diff --git a/library/cpp/digest/argonish/internal/blake2b/CMakeLists.linux.txt b/library/cpp/digest/argonish/internal/blake2b/CMakeLists.linux.txt new file mode 100644 index 0000000000..b33e219cd5 --- /dev/null +++ b/library/cpp/digest/argonish/internal/blake2b/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(argonish-internal-blake2b INTERFACE) +target_link_libraries(argonish-internal-blake2b INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + argonish-internal-rotations +) diff --git a/library/cpp/digest/argonish/internal/blake2b/CMakeLists.txt b/library/cpp/digest/argonish/internal/blake2b/CMakeLists.txt index 3b3ff75316..3e0811fb22 100644 --- a/library/cpp/digest/argonish/internal/blake2b/CMakeLists.txt +++ b/library/cpp/digest/argonish/internal/blake2b/CMakeLists.txt @@ -6,10 +6,10 @@ # original buildsystem will not be accepted. - -add_library(argonish-internal-blake2b INTERFACE) -target_link_libraries(argonish-internal-blake2b INTERFACE - contrib-libs-cxxsupp - yutil - argonish-internal-rotations -) +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/digest/argonish/internal/blamka/CMakeLists.darwin.txt b/library/cpp/digest/argonish/internal/blamka/CMakeLists.darwin.txt new file mode 100644 index 0000000000..61d5ee7284 --- /dev/null +++ b/library/cpp/digest/argonish/internal/blamka/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(argonish-internal-blamka INTERFACE) +target_link_libraries(argonish-internal-blamka INTERFACE + contrib-libs-cxxsupp + yutil + argonish-internal-rotations +) diff --git a/library/cpp/digest/argonish/internal/blamka/CMakeLists.linux-aarch64.txt b/library/cpp/digest/argonish/internal/blamka/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..9faf79895e --- /dev/null +++ b/library/cpp/digest/argonish/internal/blamka/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(argonish-internal-blamka INTERFACE) +target_link_libraries(argonish-internal-blamka INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + argonish-internal-rotations +) diff --git a/library/cpp/digest/argonish/internal/blamka/CMakeLists.linux.txt b/library/cpp/digest/argonish/internal/blamka/CMakeLists.linux.txt new file mode 100644 index 0000000000..9faf79895e --- /dev/null +++ b/library/cpp/digest/argonish/internal/blamka/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(argonish-internal-blamka INTERFACE) +target_link_libraries(argonish-internal-blamka INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + argonish-internal-rotations +) diff --git a/library/cpp/digest/argonish/internal/blamka/CMakeLists.txt b/library/cpp/digest/argonish/internal/blamka/CMakeLists.txt index 61d5ee7284..3e0811fb22 100644 --- a/library/cpp/digest/argonish/internal/blamka/CMakeLists.txt +++ b/library/cpp/digest/argonish/internal/blamka/CMakeLists.txt @@ -6,10 +6,10 @@ # original buildsystem will not be accepted. - -add_library(argonish-internal-blamka INTERFACE) -target_link_libraries(argonish-internal-blamka INTERFACE - contrib-libs-cxxsupp - yutil - argonish-internal-rotations -) +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/digest/argonish/internal/proxies/avx2/CMakeLists.linux.txt b/library/cpp/digest/argonish/internal/proxies/avx2/CMakeLists.linux.txt index 4b8bb68b72..1abe77ffed 100644 --- a/library/cpp/digest/argonish/internal/proxies/avx2/CMakeLists.linux.txt +++ b/library/cpp/digest/argonish/internal/proxies/avx2/CMakeLists.linux.txt @@ -9,6 +9,7 @@ add_library(internal-proxies-avx2) target_link_libraries(internal-proxies-avx2 PUBLIC + contrib-libs-linux-headers contrib-libs-cxxsupp internal-proxies-macro argonish-internal-argon2 diff --git a/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.darwin.txt b/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.darwin.txt new file mode 100644 index 0000000000..804d6035e6 --- /dev/null +++ b/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.darwin.txt @@ -0,0 +1,14 @@ + +# 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(internal-proxies-macro INTERFACE) +target_link_libraries(internal-proxies-macro INTERFACE + contrib-libs-cxxsupp + yutil +) diff --git a/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.linux-aarch64.txt b/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..c20224ddd6 --- /dev/null +++ b/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.linux-aarch64.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(internal-proxies-macro INTERFACE) +target_link_libraries(internal-proxies-macro INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) diff --git a/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.linux.txt b/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.linux.txt new file mode 100644 index 0000000000..c20224ddd6 --- /dev/null +++ b/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.linux.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(internal-proxies-macro INTERFACE) +target_link_libraries(internal-proxies-macro INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) diff --git a/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.txt b/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.txt index 804d6035e6..3e0811fb22 100644 --- a/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.txt +++ b/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.txt @@ -6,9 +6,10 @@ # original buildsystem will not be accepted. - -add_library(internal-proxies-macro INTERFACE) -target_link_libraries(internal-proxies-macro INTERFACE - contrib-libs-cxxsupp - yutil -) +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/digest/argonish/internal/proxies/ref/CMakeLists.darwin.txt b/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.darwin.txt new file mode 100644 index 0000000000..86f8c18d61 --- /dev/null +++ b/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.darwin.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(internal-proxies-ref) +target_link_libraries(internal-proxies-ref PUBLIC + contrib-libs-cxxsupp + internal-proxies-macro + argonish-internal-argon2 + argonish-internal-blake2b +) +target_sources(internal-proxies-ref PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/ref/proxy_ref.cpp +) diff --git a/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.linux-aarch64.txt b/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..a19f8b6157 --- /dev/null +++ b/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.linux-aarch64.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(internal-proxies-ref) +target_link_libraries(internal-proxies-ref PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + internal-proxies-macro + argonish-internal-argon2 + argonish-internal-blake2b +) +target_sources(internal-proxies-ref PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/ref/proxy_ref.cpp +) diff --git a/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.linux.txt b/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.linux.txt new file mode 100644 index 0000000000..a19f8b6157 --- /dev/null +++ b/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.linux.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(internal-proxies-ref) +target_link_libraries(internal-proxies-ref PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + internal-proxies-macro + argonish-internal-argon2 + argonish-internal-blake2b +) +target_sources(internal-proxies-ref PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/ref/proxy_ref.cpp +) diff --git a/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.txt b/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.txt index 86f8c18d61..3e0811fb22 100644 --- a/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.txt +++ b/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.txt @@ -6,14 +6,10 @@ # original buildsystem will not be accepted. - -add_library(internal-proxies-ref) -target_link_libraries(internal-proxies-ref PUBLIC - contrib-libs-cxxsupp - internal-proxies-macro - argonish-internal-argon2 - argonish-internal-blake2b -) -target_sources(internal-proxies-ref PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/ref/proxy_ref.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/digest/argonish/internal/proxies/sse2/CMakeLists.linux.txt b/library/cpp/digest/argonish/internal/proxies/sse2/CMakeLists.linux.txt index 353f9e487e..23f190dfb3 100644 --- a/library/cpp/digest/argonish/internal/proxies/sse2/CMakeLists.linux.txt +++ b/library/cpp/digest/argonish/internal/proxies/sse2/CMakeLists.linux.txt @@ -9,6 +9,7 @@ add_library(internal-proxies-sse2) target_link_libraries(internal-proxies-sse2 PUBLIC + contrib-libs-linux-headers contrib-libs-cxxsupp internal-proxies-macro argonish-internal-argon2 diff --git a/library/cpp/digest/argonish/internal/proxies/sse41/CMakeLists.linux.txt b/library/cpp/digest/argonish/internal/proxies/sse41/CMakeLists.linux.txt index 004aaa1e52..b96cac18a2 100644 --- a/library/cpp/digest/argonish/internal/proxies/sse41/CMakeLists.linux.txt +++ b/library/cpp/digest/argonish/internal/proxies/sse41/CMakeLists.linux.txt @@ -9,6 +9,7 @@ add_library(internal-proxies-sse41) target_link_libraries(internal-proxies-sse41 PUBLIC + contrib-libs-linux-headers contrib-libs-cxxsupp internal-proxies-macro argonish-internal-argon2 diff --git a/library/cpp/digest/argonish/internal/proxies/ssse3/CMakeLists.linux.txt b/library/cpp/digest/argonish/internal/proxies/ssse3/CMakeLists.linux.txt index 1a30e0e974..e3320f059b 100644 --- a/library/cpp/digest/argonish/internal/proxies/ssse3/CMakeLists.linux.txt +++ b/library/cpp/digest/argonish/internal/proxies/ssse3/CMakeLists.linux.txt @@ -9,6 +9,7 @@ add_library(internal-proxies-ssse3) target_link_libraries(internal-proxies-ssse3 PUBLIC + contrib-libs-linux-headers contrib-libs-cxxsupp internal-proxies-macro argonish-internal-argon2 diff --git a/library/cpp/digest/argonish/internal/rotations/CMakeLists.darwin.txt b/library/cpp/digest/argonish/internal/rotations/CMakeLists.darwin.txt new file mode 100644 index 0000000000..ebaa6579db --- /dev/null +++ b/library/cpp/digest/argonish/internal/rotations/CMakeLists.darwin.txt @@ -0,0 +1,14 @@ + +# 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(argonish-internal-rotations INTERFACE) +target_link_libraries(argonish-internal-rotations INTERFACE + contrib-libs-cxxsupp + yutil +) diff --git a/library/cpp/digest/argonish/internal/rotations/CMakeLists.linux-aarch64.txt b/library/cpp/digest/argonish/internal/rotations/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..55cea73177 --- /dev/null +++ b/library/cpp/digest/argonish/internal/rotations/CMakeLists.linux-aarch64.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(argonish-internal-rotations INTERFACE) +target_link_libraries(argonish-internal-rotations INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) diff --git a/library/cpp/digest/argonish/internal/rotations/CMakeLists.linux.txt b/library/cpp/digest/argonish/internal/rotations/CMakeLists.linux.txt new file mode 100644 index 0000000000..55cea73177 --- /dev/null +++ b/library/cpp/digest/argonish/internal/rotations/CMakeLists.linux.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(argonish-internal-rotations INTERFACE) +target_link_libraries(argonish-internal-rotations INTERFACE + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) diff --git a/library/cpp/digest/argonish/internal/rotations/CMakeLists.txt b/library/cpp/digest/argonish/internal/rotations/CMakeLists.txt index ebaa6579db..3e0811fb22 100644 --- a/library/cpp/digest/argonish/internal/rotations/CMakeLists.txt +++ b/library/cpp/digest/argonish/internal/rotations/CMakeLists.txt @@ -6,9 +6,10 @@ # original buildsystem will not be accepted. - -add_library(argonish-internal-rotations INTERFACE) -target_link_libraries(argonish-internal-rotations INTERFACE - contrib-libs-cxxsupp - yutil -) +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/digest/crc32c/CMakeLists.darwin.txt b/library/cpp/digest/crc32c/CMakeLists.darwin.txt new file mode 100644 index 0000000000..cfdceca99c --- /dev/null +++ b/library/cpp/digest/crc32c/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-digest-crc32c) +target_link_libraries(cpp-digest-crc32c PUBLIC + contrib-libs-cxxsupp + yutil + contrib-libs-crcutil +) +target_sources(cpp-digest-crc32c PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/crc32c/crc32c.cpp +) diff --git a/library/cpp/digest/crc32c/CMakeLists.linux-aarch64.txt b/library/cpp/digest/crc32c/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..a1d009dc27 --- /dev/null +++ b/library/cpp/digest/crc32c/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-digest-crc32c) +target_link_libraries(cpp-digest-crc32c PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + contrib-libs-crcutil +) +target_sources(cpp-digest-crc32c PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/crc32c/crc32c.cpp +) diff --git a/library/cpp/digest/crc32c/CMakeLists.linux.txt b/library/cpp/digest/crc32c/CMakeLists.linux.txt new file mode 100644 index 0000000000..a1d009dc27 --- /dev/null +++ b/library/cpp/digest/crc32c/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-digest-crc32c) +target_link_libraries(cpp-digest-crc32c PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + contrib-libs-crcutil +) +target_sources(cpp-digest-crc32c PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/crc32c/crc32c.cpp +) diff --git a/library/cpp/digest/crc32c/CMakeLists.txt b/library/cpp/digest/crc32c/CMakeLists.txt index cfdceca99c..3e0811fb22 100644 --- a/library/cpp/digest/crc32c/CMakeLists.txt +++ b/library/cpp/digest/crc32c/CMakeLists.txt @@ -6,13 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-digest-crc32c) -target_link_libraries(cpp-digest-crc32c PUBLIC - contrib-libs-cxxsupp - yutil - contrib-libs-crcutil -) -target_sources(cpp-digest-crc32c PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/digest/crc32c/crc32c.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/digest/lower_case/CMakeLists.darwin.txt b/library/cpp/digest/lower_case/CMakeLists.darwin.txt new file mode 100644 index 0000000000..bb63566e83 --- /dev/null +++ b/library/cpp/digest/lower_case/CMakeLists.darwin.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-digest-lower_case) +target_link_libraries(cpp-digest-lower_case PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-digest-lower_case PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/lower_case/lciter.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/digest/lower_case/lchash.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/digest/lower_case/hash_ops.cpp +) diff --git a/library/cpp/digest/lower_case/CMakeLists.linux-aarch64.txt b/library/cpp/digest/lower_case/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..e14001d041 --- /dev/null +++ b/library/cpp/digest/lower_case/CMakeLists.linux-aarch64.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-digest-lower_case) +target_link_libraries(cpp-digest-lower_case PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-digest-lower_case PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/lower_case/lciter.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/digest/lower_case/lchash.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/digest/lower_case/hash_ops.cpp +) diff --git a/library/cpp/digest/lower_case/CMakeLists.linux.txt b/library/cpp/digest/lower_case/CMakeLists.linux.txt new file mode 100644 index 0000000000..e14001d041 --- /dev/null +++ b/library/cpp/digest/lower_case/CMakeLists.linux.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-digest-lower_case) +target_link_libraries(cpp-digest-lower_case PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-digest-lower_case PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/lower_case/lciter.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/digest/lower_case/lchash.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/digest/lower_case/hash_ops.cpp +) diff --git a/library/cpp/digest/lower_case/CMakeLists.txt b/library/cpp/digest/lower_case/CMakeLists.txt index bb63566e83..3e0811fb22 100644 --- a/library/cpp/digest/lower_case/CMakeLists.txt +++ b/library/cpp/digest/lower_case/CMakeLists.txt @@ -6,14 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-digest-lower_case) -target_link_libraries(cpp-digest-lower_case PUBLIC - contrib-libs-cxxsupp - yutil -) -target_sources(cpp-digest-lower_case PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/digest/lower_case/lciter.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/digest/lower_case/lchash.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/digest/lower_case/hash_ops.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/digest/md5/CMakeLists.darwin.txt b/library/cpp/digest/md5/CMakeLists.darwin.txt new file mode 100644 index 0000000000..e143da452b --- /dev/null +++ b/library/cpp/digest/md5/CMakeLists.darwin.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-digest-md5) +target_link_libraries(cpp-digest-md5 PUBLIC + contrib-libs-cxxsupp + yutil + contrib-libs-nayuki_md5 + cpp-string_utils-base64 +) +target_sources(cpp-digest-md5 PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/md5/md5.cpp +) diff --git a/library/cpp/digest/md5/CMakeLists.linux-aarch64.txt b/library/cpp/digest/md5/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..dbfb1dc72e --- /dev/null +++ b/library/cpp/digest/md5/CMakeLists.linux-aarch64.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-digest-md5) +target_link_libraries(cpp-digest-md5 PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + contrib-libs-nayuki_md5 + cpp-string_utils-base64 +) +target_sources(cpp-digest-md5 PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/md5/md5.cpp +) diff --git a/library/cpp/digest/md5/CMakeLists.linux.txt b/library/cpp/digest/md5/CMakeLists.linux.txt new file mode 100644 index 0000000000..dbfb1dc72e --- /dev/null +++ b/library/cpp/digest/md5/CMakeLists.linux.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-digest-md5) +target_link_libraries(cpp-digest-md5 PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + contrib-libs-nayuki_md5 + cpp-string_utils-base64 +) +target_sources(cpp-digest-md5 PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/md5/md5.cpp +) diff --git a/library/cpp/digest/md5/CMakeLists.txt b/library/cpp/digest/md5/CMakeLists.txt index e143da452b..3e0811fb22 100644 --- a/library/cpp/digest/md5/CMakeLists.txt +++ b/library/cpp/digest/md5/CMakeLists.txt @@ -6,14 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-digest-md5) -target_link_libraries(cpp-digest-md5 PUBLIC - contrib-libs-cxxsupp - yutil - contrib-libs-nayuki_md5 - cpp-string_utils-base64 -) -target_sources(cpp-digest-md5 PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/digest/md5/md5.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/digest/murmur/CMakeLists.darwin.txt b/library/cpp/digest/murmur/CMakeLists.darwin.txt new file mode 100644 index 0000000000..ad4f1ed021 --- /dev/null +++ b/library/cpp/digest/murmur/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-digest-murmur) +target_link_libraries(cpp-digest-murmur PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-digest-murmur PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/murmur/murmur.cpp +) diff --git a/library/cpp/digest/murmur/CMakeLists.linux-aarch64.txt b/library/cpp/digest/murmur/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..c291d6c8ad --- /dev/null +++ b/library/cpp/digest/murmur/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-digest-murmur) +target_link_libraries(cpp-digest-murmur PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-digest-murmur PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/murmur/murmur.cpp +) diff --git a/library/cpp/digest/murmur/CMakeLists.linux.txt b/library/cpp/digest/murmur/CMakeLists.linux.txt new file mode 100644 index 0000000000..c291d6c8ad --- /dev/null +++ b/library/cpp/digest/murmur/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-digest-murmur) +target_link_libraries(cpp-digest-murmur PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-digest-murmur PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/murmur/murmur.cpp +) diff --git a/library/cpp/digest/murmur/CMakeLists.txt b/library/cpp/digest/murmur/CMakeLists.txt index ad4f1ed021..3e0811fb22 100644 --- a/library/cpp/digest/murmur/CMakeLists.txt +++ b/library/cpp/digest/murmur/CMakeLists.txt @@ -6,12 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-digest-murmur) -target_link_libraries(cpp-digest-murmur PUBLIC - contrib-libs-cxxsupp - yutil -) -target_sources(cpp-digest-murmur PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/digest/murmur/murmur.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/digest/old_crc/CMakeLists.darwin.txt b/library/cpp/digest/old_crc/CMakeLists.darwin.txt new file mode 100644 index 0000000000..c764aa0ff7 --- /dev/null +++ b/library/cpp/digest/old_crc/CMakeLists.darwin.txt @@ -0,0 +1,29 @@ + +# 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_subdirectory(gencrc) + +add_library(cpp-digest-old_crc) +target_link_libraries(cpp-digest-old_crc PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-digest-old_crc PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/old_crc/crc.cpp + ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc +) +add_custom_command( + OUTPUT + ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc + DEPENDS + ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc + COMMAND + ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc + > + crc.inc +) diff --git a/library/cpp/digest/old_crc/CMakeLists.linux-aarch64.txt b/library/cpp/digest/old_crc/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..b59fc0cdfe --- /dev/null +++ b/library/cpp/digest/old_crc/CMakeLists.linux-aarch64.txt @@ -0,0 +1,30 @@ + +# 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_subdirectory(gencrc) + +add_library(cpp-digest-old_crc) +target_link_libraries(cpp-digest-old_crc PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-digest-old_crc PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/old_crc/crc.cpp + ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc +) +add_custom_command( + OUTPUT + ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc + DEPENDS + ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc + COMMAND + ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc + > + crc.inc +) diff --git a/library/cpp/digest/old_crc/CMakeLists.linux.txt b/library/cpp/digest/old_crc/CMakeLists.linux.txt new file mode 100644 index 0000000000..b59fc0cdfe --- /dev/null +++ b/library/cpp/digest/old_crc/CMakeLists.linux.txt @@ -0,0 +1,30 @@ + +# 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_subdirectory(gencrc) + +add_library(cpp-digest-old_crc) +target_link_libraries(cpp-digest-old_crc PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-digest-old_crc PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/old_crc/crc.cpp + ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc +) +add_custom_command( + OUTPUT + ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc + DEPENDS + ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc + COMMAND + ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc + > + crc.inc +) diff --git a/library/cpp/digest/old_crc/CMakeLists.txt b/library/cpp/digest/old_crc/CMakeLists.txt index c764aa0ff7..3e0811fb22 100644 --- a/library/cpp/digest/old_crc/CMakeLists.txt +++ b/library/cpp/digest/old_crc/CMakeLists.txt @@ -6,24 +6,10 @@ # original buildsystem will not be accepted. -add_subdirectory(gencrc) - -add_library(cpp-digest-old_crc) -target_link_libraries(cpp-digest-old_crc PUBLIC - contrib-libs-cxxsupp - yutil -) -target_sources(cpp-digest-old_crc PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/digest/old_crc/crc.cpp - ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc -) -add_custom_command( - OUTPUT - ${CMAKE_BINARY_DIR}/library/cpp/digest/old_crc/crc.inc - DEPENDS - ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc - COMMAND - ${TOOLS_ROOT}/library/cpp/digest/old_crc/gencrc/gencrc - > - crc.inc -) +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/digest/old_crc/gencrc/CMakeLists.linux-aarch64.txt b/library/cpp/digest/old_crc/gencrc/CMakeLists.linux-aarch64.txt index 592c03d0be..0b8d0683e4 100644 --- a/library/cpp/digest/old_crc/gencrc/CMakeLists.linux-aarch64.txt +++ b/library/cpp/digest/old_crc/gencrc/CMakeLists.linux-aarch64.txt @@ -9,6 +9,7 @@ add_executable(gencrc) target_link_libraries(gencrc PUBLIC + contrib-libs-linux-headers contrib-libs-cxxsupp yutil library-cpp-lfalloc diff --git a/library/cpp/digest/old_crc/gencrc/CMakeLists.linux.txt b/library/cpp/digest/old_crc/gencrc/CMakeLists.linux.txt index 40816c5559..69cf325c8b 100644 --- a/library/cpp/digest/old_crc/gencrc/CMakeLists.linux.txt +++ b/library/cpp/digest/old_crc/gencrc/CMakeLists.linux.txt @@ -9,6 +9,7 @@ add_executable(gencrc) target_link_libraries(gencrc PUBLIC + contrib-libs-linux-headers contrib-libs-cxxsupp yutil cpp-malloc-tcmalloc diff --git a/library/cpp/digest/sfh/CMakeLists.darwin.txt b/library/cpp/digest/sfh/CMakeLists.darwin.txt new file mode 100644 index 0000000000..7dd856c395 --- /dev/null +++ b/library/cpp/digest/sfh/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-digest-sfh) +target_link_libraries(cpp-digest-sfh PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-digest-sfh PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/sfh/sfh.cpp +) diff --git a/library/cpp/digest/sfh/CMakeLists.linux-aarch64.txt b/library/cpp/digest/sfh/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..f9d9053447 --- /dev/null +++ b/library/cpp/digest/sfh/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-digest-sfh) +target_link_libraries(cpp-digest-sfh PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-digest-sfh PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/sfh/sfh.cpp +) diff --git a/library/cpp/digest/sfh/CMakeLists.linux.txt b/library/cpp/digest/sfh/CMakeLists.linux.txt new file mode 100644 index 0000000000..f9d9053447 --- /dev/null +++ b/library/cpp/digest/sfh/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-digest-sfh) +target_link_libraries(cpp-digest-sfh PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-digest-sfh PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/digest/sfh/sfh.cpp +) diff --git a/library/cpp/digest/sfh/CMakeLists.txt b/library/cpp/digest/sfh/CMakeLists.txt index 7dd856c395..3e0811fb22 100644 --- a/library/cpp/digest/sfh/CMakeLists.txt +++ b/library/cpp/digest/sfh/CMakeLists.txt @@ -6,12 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-digest-sfh) -target_link_libraries(cpp-digest-sfh PUBLIC - contrib-libs-cxxsupp - yutil -) -target_sources(cpp-digest-sfh PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/digest/sfh/sfh.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() |