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

LIBRARY()

WITHOUT_LICENSE_TEXTS()

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()