aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libevent/event_core/ya.make
blob: 3988de817a376f6b7baee9cebb9aa5dda348a83d (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
# Generated by devtools/yamaker.

LIBRARY()

WITHOUT_LICENSE_TEXTS()

OWNER(
    dldmitry
    efmv
    kikht
    g:cpp-contrib
)

LICENSE(BSD-3-Clause)

PEERDIR(
    contrib/libs/libc_compat
)

ADDINCL(
    contrib/libs/libevent
    contrib/libs/libevent/include
)

NO_COMPILER_WARNINGS()

NO_RUNTIME()

CFLAGS(
    -DHAVE_CONFIG_H
    -DEVENT__HAVE_STRLCPY=1
)

SRCDIR(contrib/libs/libevent)

SRCS(
    buffer.c
    bufferevent.c
    bufferevent_filter.c
    bufferevent_pair.c
    bufferevent_ratelim.c
    bufferevent_sock.c
    event.c
    evmap.c
    evthread.c
    evutil.c
    evutil_rand.c
    evutil_time.c
    listener.c
    log.c
    signal.c
)

IF (OS_WINDOWS)
    SRCS(
        buffer_iocp.c
        bufferevent_async.c
        event_iocp.c
        win32select.c
    )
ELSE()
    SRCS(
        poll.c
        select.c
    )
ENDIF()

IF (OS_LINUX)
    SRCS(
        epoll.c
    )
ENDIF()

IF (OS_FREEBSD OR OS_DARWIN)
    SRCS(
        kqueue.c
    )
ENDIF()

END()