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

LIBRARY()

LICENSE(
    BSL-1.0 AND
    MIT AND
    NCSA
)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

OWNER(
    g:cpp-contrib
    g:taxi-common
)

VERSION(1.81.0)

ORIGINAL_SOURCE(https://github.com/boostorg/thread/archive/boost-1.81.0.tar.gz)

PEERDIR(
    contrib/restricted/boost/algorithm
    contrib/restricted/boost/assert
    contrib/restricted/boost/atomic
    contrib/restricted/boost/bind
    contrib/restricted/boost/chrono
    contrib/restricted/boost/concept_check
    contrib/restricted/boost/config
    contrib/restricted/boost/container
    contrib/restricted/boost/container_hash
    contrib/restricted/boost/core
    contrib/restricted/boost/date_time
    contrib/restricted/boost/exception
    contrib/restricted/boost/function
    contrib/restricted/boost/intrusive
    contrib/restricted/boost/io
    contrib/restricted/boost/iterator
    contrib/restricted/boost/lexical_cast
    contrib/restricted/boost/move
    contrib/restricted/boost/optional
    contrib/restricted/boost/predef
    contrib/restricted/boost/preprocessor
    contrib/restricted/boost/smart_ptr
    contrib/restricted/boost/static_assert
    contrib/restricted/boost/system
    contrib/restricted/boost/throw_exception
    contrib/restricted/boost/tuple
    contrib/restricted/boost/type_traits
    contrib/restricted/boost/utility
    contrib/restricted/boost/winapi
)

ADDINCL(
    GLOBAL contrib/restricted/boost/thread/include
)

NO_COMPILER_WARNINGS()

NO_UTIL()

IF (DYNAMIC_BOOST)
    CFLAGS(
        -DBOOST_THREAD_BUILD_DLL
        GLOBAL -DBOOST_THREAD_USE_DLL
    )
ELSE()
    CFLAGS(
        -DBOOST_THREAD_BUILD_LIB
        GLOBAL -DBOOST_THREAD_USE_LIB
    )
ENDIF()

SRCS(
    src/future.cpp
)

IF (OS_WINDOWS)
    CFLAGS(
        GLOBAL -DBOOST_THREAD_WIN32
        -DBOOST_THREAD_USES_CHRONO
        -DWIN32_LEAN_AND_MEAN
        -DBOOST_USE_WINDOWS_H
    )
    SRCS(
        src/win32/thread.cpp
        src/win32/thread_primitives.cpp
        src/win32/tss_dll.cpp
        src/win32/tss_pe.cpp
    )
ELSE()
    CFLAGS(
        GLOBAL -DBOOST_THREAD_POSIX
        -DBOOST_THREAD_DONT_USE_CHRONO
    )
    SRCS(
        src/pthread/once.cpp
        src/pthread/thread.cpp
    )
ENDIF()

END()