diff options
author | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2022-09-01 05:47:31 +0300 |
---|---|---|
committer | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2022-09-01 05:47:31 +0300 |
commit | e83b936566d59e48df0aa4c414beaf0c4519c772 (patch) | |
tree | 43d715760743f81e2060d6ee6f4d4c9d8693751e /library/cpp/digest/argonish | |
parent | fc8096bf8173562afc5da58dbbb019af2ce1ee2f (diff) | |
download | ydb-e83b936566d59e48df0aa4c414beaf0c4519c772.tar.gz |
Update external build system generation utility
* [cmake] Hierarchical add_subdirectroy structure
* [cmake] Support for same file compilation multiple times with different flags
Diffstat (limited to 'library/cpp/digest/argonish')
7 files changed, 59 insertions, 0 deletions
diff --git a/library/cpp/digest/argonish/CMakeLists.txt b/library/cpp/digest/argonish/CMakeLists.txt index a110539238..617cc9aa13 100644 --- a/library/cpp/digest/argonish/CMakeLists.txt +++ b/library/cpp/digest/argonish/CMakeLists.txt @@ -6,6 +6,7 @@ # original buildsystem will not be accepted. +add_subdirectory(internal) add_library(cpp-digest-argonish) target_link_libraries(cpp-digest-argonish PUBLIC diff --git a/library/cpp/digest/argonish/internal/CMakeLists.txt b/library/cpp/digest/argonish/internal/CMakeLists.txt new file mode 100644 index 0000000000..8311b4e2a7 --- /dev/null +++ b/library/cpp/digest/argonish/internal/CMakeLists.txt @@ -0,0 +1,13 @@ + +# 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(argon2) +add_subdirectory(blake2b) +add_subdirectory(blamka) +add_subdirectory(proxies) +add_subdirectory(rotations) diff --git a/library/cpp/digest/argonish/internal/proxies/CMakeLists.txt b/library/cpp/digest/argonish/internal/proxies/CMakeLists.txt new file mode 100644 index 0000000000..4ea0d5c2d9 --- /dev/null +++ b/library/cpp/digest/argonish/internal/proxies/CMakeLists.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_subdirectory(avx2) +add_subdirectory(macro) +add_subdirectory(ref) +add_subdirectory(sse2) +add_subdirectory(sse41) +add_subdirectory(ssse3) diff --git a/library/cpp/digest/argonish/internal/proxies/avx2/CMakeLists.txt b/library/cpp/digest/argonish/internal/proxies/avx2/CMakeLists.txt index bf72fc385b..4b8bb68b72 100644 --- a/library/cpp/digest/argonish/internal/proxies/avx2/CMakeLists.txt +++ b/library/cpp/digest/argonish/internal/proxies/avx2/CMakeLists.txt @@ -14,3 +14,13 @@ target_link_libraries(internal-proxies-avx2 PUBLIC argonish-internal-argon2 argonish-internal-blake2b ) +target_sources_custom(internal-proxies-avx2 + .avx2 + SRCS + ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/avx2/proxy_avx2.cpp + CUSTOM_FLAGS + -mavx2 + -mfma + -mbmi + -mbmi2 +) diff --git a/library/cpp/digest/argonish/internal/proxies/sse2/CMakeLists.txt b/library/cpp/digest/argonish/internal/proxies/sse2/CMakeLists.txt index 3ef0a60661..353f9e487e 100644 --- a/library/cpp/digest/argonish/internal/proxies/sse2/CMakeLists.txt +++ b/library/cpp/digest/argonish/internal/proxies/sse2/CMakeLists.txt @@ -14,3 +14,10 @@ target_link_libraries(internal-proxies-sse2 PUBLIC argonish-internal-argon2 argonish-internal-blake2b ) +target_sources_custom(internal-proxies-sse2 + .sse2 + SRCS + ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/sse2/proxy_sse2.cpp + CUSTOM_FLAGS + -msse2 +) diff --git a/library/cpp/digest/argonish/internal/proxies/sse41/CMakeLists.txt b/library/cpp/digest/argonish/internal/proxies/sse41/CMakeLists.txt index 398f5a6b40..004aaa1e52 100644 --- a/library/cpp/digest/argonish/internal/proxies/sse41/CMakeLists.txt +++ b/library/cpp/digest/argonish/internal/proxies/sse41/CMakeLists.txt @@ -14,3 +14,10 @@ target_link_libraries(internal-proxies-sse41 PUBLIC argonish-internal-argon2 argonish-internal-blake2b ) +target_sources_custom(internal-proxies-sse41 + .sse41 + SRCS + ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/sse41/proxy_sse41.cpp + CUSTOM_FLAGS + -msse4.1 +) diff --git a/library/cpp/digest/argonish/internal/proxies/ssse3/CMakeLists.txt b/library/cpp/digest/argonish/internal/proxies/ssse3/CMakeLists.txt index adcf9d0085..1a30e0e974 100644 --- a/library/cpp/digest/argonish/internal/proxies/ssse3/CMakeLists.txt +++ b/library/cpp/digest/argonish/internal/proxies/ssse3/CMakeLists.txt @@ -14,3 +14,10 @@ target_link_libraries(internal-proxies-ssse3 PUBLIC argonish-internal-argon2 argonish-internal-blake2b ) +target_sources_custom(internal-proxies-ssse3 + .ssse3 + SRCS + ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/ssse3/proxy_ssse3.cpp + CUSTOM_FLAGS + -mssse3 +) |