Make checkdeps.py check third_party.
[chromium-blink-merge.git] / third_party / libevent / libevent.gyp
blob656dd63f18a1dd52c55db537b8c8c6d1a181fe66
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'targets': [
7     {
8       'target_name': 'libevent',
9       'product_name': 'event',
10       'type': 'static_library',
11       'toolsets': ['host', 'target'],
12       'sources': [
13         'buffer.c',
14         'evbuffer.c',
15         'evdns.c',
16         'event.c',
17         'event_tagging.c',
18         'evrpc.c',
19         'evutil.c',
20         'http.c',
21         'log.c',
22         'poll.c',
23         'select.c',
24         'signal.c',
25         'strlcpy.c',
26       ],
27       'defines': [
28         'HAVE_CONFIG_H',
29       ],
30       'include_dirs': [
31         '../..',
32       ],
33       'conditions': [
34         # libevent has platform-specific implementation files.  Since its
35         # native build uses autoconf, platform-specific config.h files are
36         # provided and live in platform-specific directories.
37         [ 'OS == "linux" or (OS == "android" and _toolset == "host")', {
38           'sources': [ 'epoll.c' ],
39           'include_dirs': [ 'linux' ],
40           'link_settings': {
41             'libraries': [
42               # We need rt for clock_gettime().
43               # TODO(port) Maybe on FreeBSD as well?
44               '-lrt',
45             ],
46           },
47         }],
48         [ 'OS == "android" and _toolset == "target"', {
49           # On android, clock_gettime() is in libc.so, so no need to link librt.
50           'sources': [ 'epoll.c' ],
51           'include_dirs': [ 'android' ],
52         }],
53         [ 'OS == "mac" or OS == "ios" or os_bsd==1', {
54           'sources': [ 'kqueue.c' ],
55           'include_dirs': [ 'mac' ]
56         }],
57         [ 'OS == "solaris"', {
58           'sources': [ 'devpoll.c', 'evport.c' ],
59           'include_dirs': [ 'solaris' ]
60         }],
61       ],
62     },
63   ],