aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/jemalloc/ya.make
blob: 586de30ab0f179b3e93f179a1f6fdce1558c4e76 (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
# Generated by devtools/yamaker from nixpkgs 21.11.

LIBRARY()

OWNER(
    g:contrib
    g:cpp-contrib
)

VERSION(5.2.1)

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

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

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

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(
    hack.cpp
    src/arena.c
    src/background_thread.c
    src/base.c
    src/bin.c
    src/bitmap.c
    src/ckh.c
    src/ctl.c
    src/div.c
    src/extent.c
    src/extent_dss.c
    src/extent_mmap.c
    src/hash.c
    src/hook.c
    src/jemalloc.c
    src/jemalloc_cpp.cpp
    src/large.c
    src/log.c
    src/malloc_io.c
    src/mutex.c
    src/mutex_pool.c
    src/nstime.c
    src/pages.c
    src/prng.c
    src/prof.c
    src/rtree.c
    src/safety_check.c
    src/sc.c
    src/stats.c
    src/sz.c
    src/tcache.c
    src/test_hooks.c
    src/ticker.c
    src/tsd.c
    src/witness.c
)

END()