aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/jemalloc/ya.make
blob: 219fd3206e4d2017be4753d89113378485fcfca1 (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Generated by devtools/yamaker from nixpkgs 21.11.

LIBRARY()

LICENSE(
    BSD-2-Clause AND
    BSD-2-Clause-Views AND
    BSD-3-Clause AND
    Public-Domain
)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

VERSION(5.3.0)

ORIGINAL_SOURCE(https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2)

ADDINCL(
    contrib/libs/jemalloc/include
    contrib/libs/libunwind/include
)

IF (OS_WINDOWS)
    ADDINCL(
        contrib/libs/jemalloc/include/msvc_compat
    )
ELSE()
    CFLAGS(
        -funroll-loops
    )
    IF (OS_DARWIN OR OS_IOS)
        SRCS(
            GLOBAL reg_zone.cpp
            src/zone.c
        )
    ELSE()
        PEERDIR(
            contrib/libs/libunwind
        )
        CFLAGS(
            -fvisibility=hidden
        )
    ENDIF()
ENDIF()

NO_COMPILER_WARNINGS()

NO_UTIL()

SRCS(
    src/arena.c
    src/background_thread.c
    src/base.c
    src/bin.c
    src/bin_info.c
    src/bitmap.c
    src/buf_writer.c
    src/cache_bin.c
    src/ckh.c
    src/counter.c
    src/ctl.c
    src/decay.c
    src/div.c
    src/ecache.c
    src/edata.c
    src/edata_cache.c
    src/ehooks.c
    src/emap.c
    src/eset.c
    src/exp_grow.c
    src/extent.c
    src/extent_dss.c
    src/extent_mmap.c
    src/fxp.c
    src/hook.c
    src/hpa.c
    src/hpa_hooks.c
    src/hpdata.c
    src/inspect.c
    src/jemalloc.c
    src/jemalloc_cpp.cpp
    src/large.c
    src/log.c
    src/malloc_io.c
    src/mutex.c
    src/nstime.c
    src/pa.c
    src/pa_extra.c
    src/pac.c
    src/pages.c
    src/pai.c
    src/peak_event.c
    src/prof.c
    src/prof_data.c
    src/prof_log.c
    src/prof_recent.c
    src/prof_stats.c
    src/prof_sys.c
    src/psset.c
    src/rtree.c
    src/safety_check.c
    src/san.c
    src/san_bump.c
    src/sc.c
    src/sec.c
    src/stats.c
    src/sz.c
    src/tcache.c
    src/test_hooks.c
    src/thread_event.c
    src/ticker.c
    src/tsd.c
    src/witness.c
)

END()