| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'variables': { | 6 'variables': { |
| 7 'use_system_libevent%': 0, | 7 'use_system_libevent%': 0, |
| 8 }, | 8 }, |
| 9 'conditions': [ | 9 'conditions': [ |
| 10 ['use_system_libevent==0', { | 10 ['use_system_libevent==0', { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 'http.c', | 25 'http.c', |
| 26 'log.c', | 26 'log.c', |
| 27 'poll.c', | 27 'poll.c', |
| 28 'select.c', | 28 'select.c', |
| 29 'signal.c', | 29 'signal.c', |
| 30 'strlcpy.c', | 30 'strlcpy.c', |
| 31 ], | 31 ], |
| 32 'defines': [ | 32 'defines': [ |
| 33 'HAVE_CONFIG_H', | 33 'HAVE_CONFIG_H', |
| 34 ], | 34 ], |
| 35 'include_dirs': [ | |
| 36 '.', # libevent includes some of its own headers with | |
| 37 # #include <...> instead of #include "..." | |
| 38 ], | |
| 39 'conditions': [ | 35 'conditions': [ |
| 40 # libevent has platform-specific implementation files. Since its | 36 # libevent has platform-specific implementation files. Since its |
| 41 # native build uses autoconf, platform-specific config.h files are | 37 # native build uses autoconf, platform-specific config.h files are |
| 42 # provided and live in platform-specific directories. | 38 # provided and live in platform-specific directories. |
| 43 [ 'OS == "linux"', { | 39 [ 'OS == "linux"', { |
| 44 'sources': [ 'epoll.c', 'epoll_sub.c' ], | 40 'sources': [ 'epoll.c', 'epoll_sub.c' ], |
| 45 'include_dirs': [ 'linux' ], | 41 'include_dirs': [ 'linux' ], |
| 46 'link_settings': { | 42 'link_settings': { |
| 47 'libraries': [ | 43 'libraries': [ |
| 48 # We need rt for clock_gettime(). | 44 # We need rt for clock_gettime(). |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 'link_settings': { | 79 'link_settings': { |
| 84 'libraries': [ | 80 'libraries': [ |
| 85 '-levent', | 81 '-levent', |
| 86 ], | 82 ], |
| 87 }, | 83 }, |
| 88 } | 84 } |
| 89 ], | 85 ], |
| 90 }], | 86 }], |
| 91 ], | 87 ], |
| 92 } | 88 } |
| OLD | NEW |