OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'libevent', | 8 'target_name': 'libevent', |
9 'product_name': 'event', | 9 'product_name': 'event', |
10 'type': 'static_library', | 10 'type': 'static_library', |
11 'toolsets': ['host', 'target'], | 11 'toolsets': ['host', 'target'], |
12 'sources': [ | 12 'sources': [ |
13 'buffer.c', | 13 'buffer.c', |
14 'evbuffer.c', | 14 'evbuffer.c', |
15 'evdns.c', | 15 'evdns.c', |
16 'event.c', | 16 'event.c', |
17 'event_tagging.c', | 17 'event_tagging.c', |
18 'evrpc.c', | 18 'evrpc.c', |
19 'evutil.c', | 19 'evutil.c', |
20 'http.c', | 20 'http.c', |
21 'log.c', | 21 'log.c', |
22 'poll.c', | 22 'poll.c', |
23 'select.c', | 23 'select.c', |
24 'signal.c', | 24 'signal.c', |
25 'strlcpy.c', | 25 'strlcpy.c', |
26 ], | 26 ], |
27 'defines': [ | 27 'defines': [ |
28 'HAVE_CONFIG_H', | 28 'HAVE_CONFIG_H', |
29 ], | 29 ], |
| 30 'include_dirs': [ |
| 31 '../..', |
| 32 ], |
30 'conditions': [ | 33 'conditions': [ |
31 # libevent has platform-specific implementation files. Since its | 34 # libevent has platform-specific implementation files. Since its |
32 # native build uses autoconf, platform-specific config.h files are | 35 # native build uses autoconf, platform-specific config.h files are |
33 # provided and live in platform-specific directories. | 36 # provided and live in platform-specific directories. |
34 [ 'OS == "linux" or (OS == "android" and _toolset == "host")', { | 37 [ 'OS == "linux" or (OS == "android" and _toolset == "host")', { |
35 'sources': [ 'epoll.c' ], | 38 'sources': [ 'epoll.c' ], |
36 'include_dirs': [ 'linux' ], | 39 'include_dirs': [ 'linux' ], |
37 'link_settings': { | 40 'link_settings': { |
38 'libraries': [ | 41 'libraries': [ |
39 # We need rt for clock_gettime(). | 42 # We need rt for clock_gettime(). |
(...skipping 12 matching lines...) Expand all Loading... |
52 'include_dirs': [ 'mac' ] | 55 'include_dirs': [ 'mac' ] |
53 }], | 56 }], |
54 [ 'OS == "solaris"', { | 57 [ 'OS == "solaris"', { |
55 'sources': [ 'devpoll.c', 'evport.c' ], | 58 'sources': [ 'devpoll.c', 'evport.c' ], |
56 'include_dirs': [ 'solaris' ] | 59 'include_dirs': [ 'solaris' ] |
57 }], | 60 }], |
58 ], | 61 ], |
59 }, | 62 }, |
60 ], | 63 ], |
61 } | 64 } |
OLD | NEW |