blob: 50f714a3ff24a3dd6175505e69851f24548171b6 [file] [log] [blame]
Brian Silvermanaa651172015-09-26 17:39:06 -04001licenses(['notice'])
2
3cc_library(
4 name = 'libevent',
5 visibility = ['//visibility:public'],
6 srcs = [
7 'select.c',
8 'poll.c',
9 'epoll.c',
10 'signal.c',
11
12 'event.c',
13 'evthread.c',
14 'buffer.c',
15 'bufferevent.c',
16 'bufferevent_sock.c',
17 'bufferevent_filter.c',
18 'bufferevent_pair.c',
19 'listener.c',
20 'bufferevent_ratelim.c',
21 'evmap.c',
22 'log.c',
23 'evutil.c',
24 'evutil_rand.c',
25 'strlcpy.c',
26
27 'event_tagging.c',
28 'http.c',
29 'evdns.c',
30 'evrpc.c',
31
32 'evthread_pthread.c',
33
34 'include/event2/event-config.h',
35
36 #'compat/sys/queue.h',
37 ] + glob([
38 '*-internal.h',
39 ]),
40 hdrs = [
41 'event.h',
42 'evhttp.h',
43 'evdns.h',
44 'evrpc.h',
45 'evutil.h',
46 ],
47 includes = ['.', 'include'],
48 copts = [
49 '-Ithird_party/libevent/compat',
50 '-Ithird_party/libevent/include',
Brian Silvermanf1cff392015-10-11 19:36:18 -040051
52 # TODO(Brian): Fix the places in the code it uses char* as an intermediate
53 # type while doing offsetof stuff.
54 '-Wno-cast-align',
55
56 '-Wno-unused-parameter',
57 '-Wno-format-nonliteral',
58 '-Wno-cast-qual',
59 '-Wno-incompatible-pointer-types-discards-qualifiers',
60 '-Wno-unused-function',
Brian Silvermanaa651172015-09-26 17:39:06 -040061 ],
62)