aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/atomic/ya.make
blob: 8151509c511a06383bb7eb158266e9e8da90aa3f (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
# Generated by devtools/yamaker from nixpkgs 22.11.

LIBRARY()

LICENSE(BSL-1.0)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

VERSION(1.85.0)

ORIGINAL_SOURCE(https://github.com/boostorg/atomic/archive/boost-1.85.0.tar.gz)

PEERDIR(
    contrib/restricted/boost/align
    contrib/restricted/boost/assert
    contrib/restricted/boost/config
    contrib/restricted/boost/predef
    contrib/restricted/boost/preprocessor
    contrib/restricted/boost/type_traits
    contrib/restricted/boost/winapi
)

IF (OS_WINDOWS)
    SRCS(
        src/wait_on_address.cpp
    )
ENDIF()

ADDINCL(
    GLOBAL contrib/restricted/boost/atomic/include
    contrib/restricted/boost/atomic/src
)

NO_COMPILER_WARNINGS()

NO_UTIL()

CFLAGS(
    -DBOOST_ATOMIC_SOURCE
)

IF (DYNAMIC_BOOST)
    CFLAGS(
        GLOBAL -DBOOST_ATOMIC_DYN_LINK
    )
ENDIF()

SRCS(
    src/find_address_sse2.cpp
    src/lock_pool.cpp
)

IF (USE_SSE4)
    CFLAGS(
        -DBOOST_ATOMIC_USE_SSE41
    )
    SRCS(
        src/find_address_sse41.cpp
    )
ENDIF()

END()