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

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

Issue 8598010: replace platform conditions with os_posix and os_bsd where applicable (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 9 years, 1 month 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
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 ], 47 ],
48 }, 48 },
49 }], 49 }],
50 [ 'OS == "android"', { 50 [ 'OS == "android"', {
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 == "freebsd" or OS == "openbsd"', { 57 [ 'OS == "mac" or os_bsd==1', {
58 'sources': [ 'kqueue.c' ], 58 'sources': [ 'kqueue.c' ],
59 'include_dirs': [ 'mac' ] 59 'include_dirs': [ 'mac' ]
60 }], 60 }],
61 [ 'OS == "solaris"', { 61 [ 'OS == "solaris"', {
62 'sources': [ 'devpoll.c', 'evport.c' ], 62 'sources': [ 'devpoll.c', 'evport.c' ],
63 'include_dirs': [ 'solaris' ] 63 'include_dirs': [ 'solaris' ]
64 }], 64 }],
65 ], 65 ],
66 }, 66 },
67 ], 67 ],
(...skipping 11 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

Powered by Google App Engine
This is Rietveld 408576698