aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/jemalloc/CMakeLists.txt
blob: bcb3e535762260de1504805daf10ac56359df0fd (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
# 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-jemalloc)
target_compile_options(contrib-libs-jemalloc PRIVATE
  -funroll-loops
  -fvisibility=hidden
)
target_include_directories(contrib-libs-jemalloc PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/include
  ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/include
)
target_link_libraries(contrib-libs-jemalloc PUBLIC
  contrib-libs-cxxsupp
  contrib-libs-libunwind
)
target_sources(contrib-libs-jemalloc PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/hack.cpp
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/arena.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/background_thread.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/base.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/bin.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/bitmap.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ckh.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ctl.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/div.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent_dss.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent_mmap.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hash.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hook.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/jemalloc.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/jemalloc_cpp.cpp
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/large.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/log.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/malloc_io.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/mutex.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/mutex_pool.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/nstime.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pages.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prng.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/rtree.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/safety_check.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/sc.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/stats.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/sz.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/tcache.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/test_hooks.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ticker.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/tsd.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/witness.c
)