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.
8 'target_name': 'libevent',
9 'product_name': 'event',
10 'type': 'static_library',
11 'toolsets': ['host', 'target'],
31 # libevent has platform-specific implementation files. Since its
32 # native build uses autoconf, platform-specific config.h files are
33 # provided and live in platform-specific directories.
34 [ 'OS == "linux" or (OS == "android" and _toolset == "host")', {
35 'sources': [ 'epoll.c' ],
36 'include_dirs': [ 'linux' ],
39 # We need rt for clock_gettime().
40 # TODO(port) Maybe on FreeBSD as well?
45 [ 'OS == "android" and _toolset == "target"', {
46 # On android, clock_gettime() is in libc.so, so no need to link librt.
47 'sources': [ 'epoll.c' ],
48 'include_dirs': [ 'android' ],
50 [ 'OS == "mac" or OS == "ios" or os_bsd==1', {
51 'sources': [ 'kqueue.c' ],
52 'include_dirs': [ 'mac' ]
54 [ 'OS == "solaris"', {
55 'sources': [ 'devpoll.c', 'evport.c' ],
56 'include_dirs': [ 'solaris' ]