aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/zstd/CMakeLists.darwin.txt
blob: f88c0aa5f39b9c8bcd6b57b129a6f78744b2d460 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# This file was generated 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-zstd)
target_compile_options(contrib-libs-zstd PRIVATE
  -DZSTD_LEGACY_SUPPORT=1
  -DZSTD_MULTITHREAD
  -DDYNAMIC_BMI2
  $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)
target_include_directories(contrib-libs-zstd PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy
)
target_link_libraries(contrib-libs-zstd PUBLIC
  contrib-libs-xxhash
)
target_sources(contrib-libs-zstd PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/huf_decompress_amd64.S
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/debug.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/entropy_common.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/error_private.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/fse_decompress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/pool.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/threading.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/zstd_common.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/fse_compress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/hist.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/huf_compress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_literals.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_sequences.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_superblock.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_double_fast.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_fast.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_lazy.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_ldm.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_opt.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstdmt_compress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/huf_decompress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_ddict.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_decompress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_decompress_block.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/cover.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/divsufsort.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/fastcover.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/zdict.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v01.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v02.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v03.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v04.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v05.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v06.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v07.c
)