aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest/argonish
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
commitb4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch)
tree6a64ab25a145265287789bceed3f59e953561206 /library/cpp/digest/argonish
parent5e837a820d5be0671fa4096a1cc1e378453e5132 (diff)
downloadydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'library/cpp/digest/argonish')
-rw-r--r--library/cpp/digest/argonish/CMakeLists.txt14
-rw-r--r--library/cpp/digest/argonish/internal/argon2/CMakeLists.txt7
-rw-r--r--library/cpp/digest/argonish/internal/blake2b/CMakeLists.txt6
-rw-r--r--library/cpp/digest/argonish/internal/blamka/CMakeLists.txt6
-rw-r--r--library/cpp/digest/argonish/internal/proxies/avx2/CMakeLists.txt19
-rw-r--r--library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.txt5
-rw-r--r--library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.txt10
-rw-r--r--library/cpp/digest/argonish/internal/proxies/sse2/CMakeLists.txt18
-rw-r--r--library/cpp/digest/argonish/internal/proxies/sse41/CMakeLists.txt18
-rw-r--r--library/cpp/digest/argonish/internal/proxies/ssse3/CMakeLists.txt18
-rw-r--r--library/cpp/digest/argonish/internal/rotations/CMakeLists.txt5
11 files changed, 126 insertions, 0 deletions
diff --git a/library/cpp/digest/argonish/CMakeLists.txt b/library/cpp/digest/argonish/CMakeLists.txt
new file mode 100644
index 0000000000..c45a02de03
--- /dev/null
+++ b/library/cpp/digest/argonish/CMakeLists.txt
@@ -0,0 +1,14 @@
+add_library(cpp-digest-argonish)
+target_link_libraries(cpp-digest-argonish PUBLIC
+ contrib-libs-cxxsupp
+ yutil
+ cpp-threading-poor_man_openmp
+ internal-proxies-avx2
+ internal-proxies-ref
+ internal-proxies-sse2
+ internal-proxies-sse41
+ internal-proxies-ssse3
+)
+target_sources(cpp-digest-argonish PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/factory/factory.cpp
+)
diff --git a/library/cpp/digest/argonish/internal/argon2/CMakeLists.txt b/library/cpp/digest/argonish/internal/argon2/CMakeLists.txt
new file mode 100644
index 0000000000..c0cc547d0b
--- /dev/null
+++ b/library/cpp/digest/argonish/internal/argon2/CMakeLists.txt
@@ -0,0 +1,7 @@
+add_library(argonish-internal-argon2 INTERFACE)
+target_link_libraries(argonish-internal-argon2 INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+ argonish-internal-blamka
+ argonish-internal-blake2b
+)
diff --git a/library/cpp/digest/argonish/internal/blake2b/CMakeLists.txt b/library/cpp/digest/argonish/internal/blake2b/CMakeLists.txt
new file mode 100644
index 0000000000..b5e8b71969
--- /dev/null
+++ b/library/cpp/digest/argonish/internal/blake2b/CMakeLists.txt
@@ -0,0 +1,6 @@
+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/blamka/CMakeLists.txt b/library/cpp/digest/argonish/internal/blamka/CMakeLists.txt
new file mode 100644
index 0000000000..626df3ebab
--- /dev/null
+++ b/library/cpp/digest/argonish/internal/blamka/CMakeLists.txt
@@ -0,0 +1,6 @@
+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/proxies/avx2/CMakeLists.txt b/library/cpp/digest/argonish/internal/proxies/avx2/CMakeLists.txt
new file mode 100644
index 0000000000..cf5b985a87
--- /dev/null
+++ b/library/cpp/digest/argonish/internal/proxies/avx2/CMakeLists.txt
@@ -0,0 +1,19 @@
+add_library(internal-proxies-avx2)
+target_link_libraries(internal-proxies-avx2 PUBLIC
+ contrib-libs-cxxsupp
+ internal-proxies-macro
+ argonish-internal-argon2
+ argonish-internal-blake2b
+)
+target_sources(internal-proxies-avx2 PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/avx2/proxy_avx2.cpp
+)
+set_property(
+ SOURCE
+ ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/avx2/proxy_avx2.cpp
+ APPEND
+ PROPERTY
+ COMPILE_OPTIONS
+ -mavx2
+ -mfma
+)
diff --git a/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.txt b/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.txt
new file mode 100644
index 0000000000..9473ee8b6f
--- /dev/null
+++ b/library/cpp/digest/argonish/internal/proxies/macro/CMakeLists.txt
@@ -0,0 +1,5 @@
+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/ref/CMakeLists.txt b/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.txt
new file mode 100644
index 0000000000..1d95001e14
--- /dev/null
+++ b/library/cpp/digest/argonish/internal/proxies/ref/CMakeLists.txt
@@ -0,0 +1,10 @@
+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/sse2/CMakeLists.txt b/library/cpp/digest/argonish/internal/proxies/sse2/CMakeLists.txt
new file mode 100644
index 0000000000..9a547f77c8
--- /dev/null
+++ b/library/cpp/digest/argonish/internal/proxies/sse2/CMakeLists.txt
@@ -0,0 +1,18 @@
+add_library(internal-proxies-sse2)
+target_link_libraries(internal-proxies-sse2 PUBLIC
+ contrib-libs-cxxsupp
+ internal-proxies-macro
+ argonish-internal-argon2
+ argonish-internal-blake2b
+)
+target_sources(internal-proxies-sse2 PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/sse2/proxy_sse2.cpp
+)
+set_property(
+ SOURCE
+ ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/sse2/proxy_sse2.cpp
+ APPEND
+ PROPERTY
+ COMPILE_OPTIONS
+ -msse2
+)
diff --git a/library/cpp/digest/argonish/internal/proxies/sse41/CMakeLists.txt b/library/cpp/digest/argonish/internal/proxies/sse41/CMakeLists.txt
new file mode 100644
index 0000000000..e91ee83da0
--- /dev/null
+++ b/library/cpp/digest/argonish/internal/proxies/sse41/CMakeLists.txt
@@ -0,0 +1,18 @@
+add_library(internal-proxies-sse41)
+target_link_libraries(internal-proxies-sse41 PUBLIC
+ contrib-libs-cxxsupp
+ internal-proxies-macro
+ argonish-internal-argon2
+ argonish-internal-blake2b
+)
+target_sources(internal-proxies-sse41 PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/sse41/proxy_sse41.cpp
+)
+set_property(
+ SOURCE
+ ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/sse41/proxy_sse41.cpp
+ APPEND
+ PROPERTY
+ COMPILE_OPTIONS
+ -msse4.1
+)
diff --git a/library/cpp/digest/argonish/internal/proxies/ssse3/CMakeLists.txt b/library/cpp/digest/argonish/internal/proxies/ssse3/CMakeLists.txt
new file mode 100644
index 0000000000..45c510d50d
--- /dev/null
+++ b/library/cpp/digest/argonish/internal/proxies/ssse3/CMakeLists.txt
@@ -0,0 +1,18 @@
+add_library(internal-proxies-ssse3)
+target_link_libraries(internal-proxies-ssse3 PUBLIC
+ contrib-libs-cxxsupp
+ internal-proxies-macro
+ argonish-internal-argon2
+ argonish-internal-blake2b
+)
+target_sources(internal-proxies-ssse3 PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/ssse3/proxy_ssse3.cpp
+)
+set_property(
+ SOURCE
+ ${CMAKE_SOURCE_DIR}/library/cpp/digest/argonish/internal/proxies/ssse3/proxy_ssse3.cpp
+ APPEND
+ PROPERTY
+ COMPILE_OPTIONS
+ -mssse3
+)
diff --git a/library/cpp/digest/argonish/internal/rotations/CMakeLists.txt b/library/cpp/digest/argonish/internal/rotations/CMakeLists.txt
new file mode 100644
index 0000000000..ba13db2c7c
--- /dev/null
+++ b/library/cpp/digest/argonish/internal/rotations/CMakeLists.txt
@@ -0,0 +1,5 @@
+add_library(argonish-internal-rotations INTERFACE)
+target_link_libraries(argonish-internal-rotations INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+)