Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: third_party/libevent/libevent.gyp

Issue 10912095: Fix Clang compilation error on Android in libevent.gyp. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 '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 18 matching lines...) Expand all
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 'conditions': [ 35 'conditions': [
36 # libevent has platform-specific implementation files. Since its 36 # libevent has platform-specific implementation files. Since its
37 # native build uses autoconf, platform-specific config.h files are 37 # native build uses autoconf, platform-specific config.h files are
38 # provided and live in platform-specific directories. 38 # provided and live in platform-specific directories.
39 [ 'OS == "linux"', { 39 [ 'OS == "linux" or (OS == "android" and _toolset == "host")', {
40 'sources': [ 'epoll.c', 'epoll_sub.c' ], 40 'sources': [ 'epoll.c', 'epoll_sub.c' ],
41 'include_dirs': [ 'linux' ], 41 'include_dirs': [ 'linux' ],
42 'link_settings': { 42 'link_settings': {
43 'libraries': [ 43 'libraries': [
44 # We need rt for clock_gettime(). 44 # We need rt for clock_gettime().
45 # TODO(port) Maybe on FreeBSD as well? 45 # TODO(port) Maybe on FreeBSD as well?
46 '-lrt', 46 '-lrt',
47 ], 47 ],
48 }, 48 },
49 }], 49 }],
50 [ 'OS == "android"', { 50 [ 'OS == "android" and _toolset == "target"', {
51 # On android, epoll_create(), epoll_ctl(), epoll_wait() and 51 # On android, epoll_create(), epoll_ctl(), epoll_wait() and
52 # clock_gettime() are all in libc.so, so no need to add 52 # clock_gettime() are all in libc.so, so no need to add
53 # epoll_sub.c and link librt. 53 # epoll_sub.c and link librt.
54 'sources': [ 'epoll.c' ], 54 'sources': [ 'epoll.c' ],
55 'include_dirs': [ 'android' ], 55 'include_dirs': [ 'android' ],
56 }], 56 }],
57 [ 'OS == "mac" or OS == "ios" or os_bsd==1', { 57 [ 'OS == "mac" or OS == "ios" or os_bsd==1', {
58 'sources': [ 'kqueue.c' ], 58 'sources': [ 'kqueue.c' ],
59 'include_dirs': [ 'mac' ] 59 'include_dirs': [ 'mac' ]
60 }], 60 }],
(...skipping 18 matching lines...) Expand all
79 'link_settings': { 79 'link_settings': {
80 'libraries': [ 80 'libraries': [
81 '-levent', 81 '-levent',
82 ], 82 ],
83 }, 83 },
84 } 84 }
85 ], 85 ],
86 }], 86 }],
87 ], 87 ],
88 } 88 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698