aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/s2n/CMakeLists.linux.txt
diff options
context:
space:
mode:
authorrobot-ya-builder <robot-ya-builder@yandex-team.com>2022-09-01 05:47:31 +0300
committerrobot-ya-builder <robot-ya-builder@yandex-team.com>2022-09-01 05:47:31 +0300
commite83b936566d59e48df0aa4c414beaf0c4519c772 (patch)
tree43d715760743f81e2060d6ee6f4d4c9d8693751e /contrib/restricted/aws/s2n/CMakeLists.linux.txt
parentfc8096bf8173562afc5da58dbbb019af2ce1ee2f (diff)
downloadydb-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 'contrib/restricted/aws/s2n/CMakeLists.linux.txt')
-rw-r--r--contrib/restricted/aws/s2n/CMakeLists.linux.txt80
1 files changed, 80 insertions, 0 deletions
diff --git a/contrib/restricted/aws/s2n/CMakeLists.linux.txt b/contrib/restricted/aws/s2n/CMakeLists.linux.txt
index 30a2d11de2..2403724ef1 100644
--- a/contrib/restricted/aws/s2n/CMakeLists.linux.txt
+++ b/contrib/restricted/aws/s2n/CMakeLists.linux.txt
@@ -206,3 +206,83 @@ target_sources(restricted-aws-s2n PRIVATE
${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_socket.c
${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/utils/s2n_timer.c
)
+target_sources_custom(restricted-aws-s2n
+ .avx2
+ SRCS
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/KeccakP-1600-times4-SIMD256_avx2.c
+ CUSTOM_FLAGS
+ -mavx2
+ -mfma
+ -mbmi
+ -mbmi2
+)
+target_sources_custom(restricted-aws-s2n
+ .avx2
+ SRCS
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_cbd_avx2.c
+ CUSTOM_FLAGS
+ -mavx2
+ -mfma
+ -mbmi
+ -mbmi2
+)
+target_sources_custom(restricted-aws-s2n
+ .avx2
+ SRCS
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_consts_avx2.c
+ CUSTOM_FLAGS
+ -mavx2
+ -mfma
+ -mbmi
+ -mbmi2
+)
+target_sources_custom(restricted-aws-s2n
+ .avx2
+ SRCS
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_fips202x4_avx2.c
+ CUSTOM_FLAGS
+ -mavx2
+ -mfma
+ -mbmi
+ -mbmi2
+)
+target_sources_custom(restricted-aws-s2n
+ .avx2
+ SRCS
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_indcpa_avx2.c
+ CUSTOM_FLAGS
+ -mavx2
+ -mfma
+ -mbmi
+ -mbmi2
+)
+target_sources_custom(restricted-aws-s2n
+ .avx2
+ SRCS
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_poly_avx2.c
+ CUSTOM_FLAGS
+ -mavx2
+ -mfma
+ -mbmi
+ -mbmi2
+)
+target_sources_custom(restricted-aws-s2n
+ .avx2
+ SRCS
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_polyvec_avx2.c
+ CUSTOM_FLAGS
+ -mavx2
+ -mfma
+ -mbmi
+ -mbmi2
+)
+target_sources_custom(restricted-aws-s2n
+ .avx2
+ SRCS
+ ${CMAKE_SOURCE_DIR}/contrib/restricted/aws/s2n/pq-crypto/kyber_r3/kyber512r3_rejsample_avx2.c
+ CUSTOM_FLAGS
+ -mavx2
+ -mfma
+ -mbmi
+ -mbmi2
+)