blob: acd1e0196081233488a4a1ef17c033c2db391709 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# 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(contrib-libs-crcutil)
target_compile_options(contrib-libs-crcutil PRIVATE
-DCRCUTIL_USE_MM_CRC32=1
-Wno-everything
)
target_link_libraries(contrib-libs-crcutil PUBLIC
contrib-libs-cxxsupp
)
target_sources(contrib-libs-crcutil PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/crc32c_sse4.cc
${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_64_64_gcc_i386_mmx.cc
${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_128_64_gcc_amd64_sse2.cc
${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_64_64_gcc_amd64_asm.cc
${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/interface.cc
${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/multiword_64_64_intrinsic_i386_mmx.cc
)
set_property(
SOURCE
${CMAKE_SOURCE_DIR}/contrib/libs/crcutil/crc32c_sse4.cc
APPEND
PROPERTY
COMPILE_OPTIONS
-msse4.1
-msse4.2
-mpopcnt
-mcx16
)
|