aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/jemalloc/CMakeLists.linux.txt
blob: e06c0a57bd2a674a73b093e1b4d5130417f34117 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# 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-jemalloc)
target_compile_options(contrib-libs-jemalloc PRIVATE
  -funroll-loops
  -fvisibility=hidden
  $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)
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-linux-headers
  contrib-libs-cxxsupp
  contrib-libs-libunwind
)
target_sources(contrib-libs-jemalloc PRIVATE
  ${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/bin_info.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/bitmap.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/buf_writer.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/cache_bin.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ckh.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/counter.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ctl.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/decay.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/div.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ecache.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/edata.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/edata_cache.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ehooks.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/emap.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/eset.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/exp_grow.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/fxp.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hook.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hpa.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hpa_hooks.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hpdata.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/inspect.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/nstime.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pa.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pa_extra.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pac.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pages.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pai.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/peak_event.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof_data.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof_log.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof_recent.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof_stats.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof_sys.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/psset.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/san.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/san_bump.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/sc.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/sec.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/thread_event.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
)