OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2009 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. |
| 4 |
| 5 { |
| 6 'variables': { |
| 7 'chromium_code': 1, |
| 8 }, |
| 9 'includes': [ |
| 10 '../../build/common.gypi', |
| 11 ], |
| 12 'targets': [ |
| 13 { |
| 14 'target_name': 'libevent', |
| 15 'product_name': 'event', |
| 16 'type': 'static_library', |
| 17 'sources': [ |
| 18 'buffer.c', |
| 19 'evbuffer.c', |
| 20 'evdns.c', |
| 21 'event.c', |
| 22 'event_tagging.c', |
| 23 'evrpc.c', |
| 24 'evutil.c', |
| 25 'http.c', |
| 26 'log.c', |
| 27 'poll.c', |
| 28 'select.c', |
| 29 'signal.c', |
| 30 'strlcpy.c', |
| 31 ], |
| 32 'defines': [ |
| 33 'HAVE_CONFIG_H', |
| 34 ], |
| 35 'include_dirs': [ |
| 36 '.', # libevent includes some of its own headers with #include <...> |
| 37 # instead of #include "..." |
| 38 ], |
| 39 'conditions': [ |
| 40 # libevent has platform-specific implementation files. Since its |
| 41 # native build uses autoconf, platform-specific config.h files are |
| 42 # provided and live in platform-specific directories. |
| 43 [ 'OS == "linux"', { 'sources': [ 'epoll.c', 'epoll_sub.c' ], |
| 44 'include_dirs': [ 'linux' ] } ], |
| 45 [ 'OS == "mac"', { 'sources': [ 'kqueue.c' ], |
| 46 'include_dirs': [ 'mac' ] } ], |
| 47 ], |
| 48 }, |
| 49 ], |
| 50 } |
OLD | NEW |