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

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

Issue 203076: Fix the Linux shared build. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 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 'includes': [ 6 'includes': [
7 '../../build/common.gypi', 7 '../../build/common.gypi',
8 ], 8 ],
9 'targets': [ 9 'targets': [
10 { 10 {
(...skipping 19 matching lines...) Expand all
30 'HAVE_CONFIG_H', 30 'HAVE_CONFIG_H',
31 ], 31 ],
32 'include_dirs': [ 32 'include_dirs': [
33 '.', # libevent includes some of its own headers with #include <...> 33 '.', # libevent includes some of its own headers with #include <...>
34 # instead of #include "..." 34 # instead of #include "..."
35 ], 35 ],
36 'conditions': [ 36 'conditions': [
37 # libevent has platform-specific implementation files. Since its 37 # libevent has platform-specific implementation files. Since its
38 # native build uses autoconf, platform-specific config.h files are 38 # native build uses autoconf, platform-specific config.h files are
39 # provided and live in platform-specific directories. 39 # provided and live in platform-specific directories.
40 [ 'OS == "linux"', { 'sources': [ 'epoll.c', 'epoll_sub.c' ], 40 [ 'OS == "linux"', {
41 'include_dirs': [ 'linux' ] } ], 41 'sources': [ 'epoll.c', 'epoll_sub.c' ],
42 'include_dirs': [ 'linux' ],
43 'link_settings':
44 { 'libraries': [
45 # We need rt for clock_gettime().
46 # TODO(port) Maybe on FreeBSD as well?
47 '-lrt',
48 ],
49 },
50 }
51 ],
42 [ 'OS == "mac" or OS == "freebsd"', { 'sources': [ 'kqueue.c' ], 52 [ 'OS == "mac" or OS == "freebsd"', { 'sources': [ 'kqueue.c' ],
43 'include_dirs': [ 'mac' ] } ], 53 'include_dirs': [ 'mac' ] } ],
44 ], 54 ],
45 }, 55 },
46 ], 56 ],
47 } 57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698