diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 15:49:59 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 15:49:59 +0300 |
commit | b4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch) | |
tree | 6a64ab25a145265287789bceed3f59e953561206 /contrib/libs/highwayhash | |
parent | 5e837a820d5be0671fa4096a1cc1e378453e5132 (diff) | |
download | ydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz |
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'contrib/libs/highwayhash')
-rw-r--r-- | contrib/libs/highwayhash/CMakeLists.txt | 23 | ||||
-rw-r--r-- | contrib/libs/highwayhash/arch/avx2/CMakeLists.txt | 15 | ||||
-rw-r--r-- | contrib/libs/highwayhash/arch/sse41/CMakeLists.txt | 14 |
3 files changed, 52 insertions, 0 deletions
diff --git a/contrib/libs/highwayhash/CMakeLists.txt b/contrib/libs/highwayhash/CMakeLists.txt new file mode 100644 index 0000000000..bd186391d9 --- /dev/null +++ b/contrib/libs/highwayhash/CMakeLists.txt @@ -0,0 +1,23 @@ +add_library(contrib-libs-highwayhash) +target_include_directories(contrib-libs-highwayhash PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash +) +target_include_directories(contrib-libs-highwayhash PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash +) +target_link_libraries(contrib-libs-highwayhash PUBLIC + contrib-libs-cxxsupp + yutil + highwayhash-arch-avx2 + highwayhash-arch-sse41 +) +target_sources(contrib-libs-highwayhash PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/arch_specific.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/instruction_sets.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/nanobenchmark.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/os_specific.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/sip_hash.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/scalar_sip_tree_hash.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/hh_portable.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/c_bindings.cc +) diff --git a/contrib/libs/highwayhash/arch/avx2/CMakeLists.txt b/contrib/libs/highwayhash/arch/avx2/CMakeLists.txt new file mode 100644 index 0000000000..5188703e74 --- /dev/null +++ b/contrib/libs/highwayhash/arch/avx2/CMakeLists.txt @@ -0,0 +1,15 @@ +add_library(highwayhash-arch-avx2) +target_compile_options(highwayhash-arch-avx2 PRIVATE + -mavx2 +) +target_include_directories(highwayhash-arch-avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash +) +target_link_libraries(highwayhash-arch-avx2 PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(highwayhash-arch-avx2 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/sip_tree_hash.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/hh_avx2.cc +) diff --git a/contrib/libs/highwayhash/arch/sse41/CMakeLists.txt b/contrib/libs/highwayhash/arch/sse41/CMakeLists.txt new file mode 100644 index 0000000000..5cb58f72aa --- /dev/null +++ b/contrib/libs/highwayhash/arch/sse41/CMakeLists.txt @@ -0,0 +1,14 @@ +add_library(highwayhash-arch-sse41) +target_compile_options(highwayhash-arch-sse41 PRIVATE + -msse4.1 +) +target_include_directories(highwayhash-arch-sse41 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash +) +target_link_libraries(highwayhash-arch-sse41 PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(highwayhash-arch-sse41 PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/highwayhash/highwayhash/hh_sse41.cc +) |