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

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

Issue 118583003: gyps! and builds! Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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) 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 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'libevent', 8 'target_name': 'libevent',
9 'product_name': 'event', 9 'product_name': 'event',
10 'type': 'static_library', 10 'type': 'static_library',
(...skipping 13 matching lines...) Expand all
24 'signal.c', 24 'signal.c',
25 'strlcpy.c', 25 'strlcpy.c',
26 ], 26 ],
27 'defines': [ 27 'defines': [
28 'HAVE_CONFIG_H', 28 'HAVE_CONFIG_H',
29 ], 29 ],
30 'conditions': [ 30 'conditions': [
31 # libevent has platform-specific implementation files. Since its 31 # libevent has platform-specific implementation files. Since its
32 # native build uses autoconf, platform-specific config.h files are 32 # native build uses autoconf, platform-specific config.h files are
33 # provided and live in platform-specific directories. 33 # provided and live in platform-specific directories.
34 [ 'OS == "linux" or (OS == "android" and _toolset == "host")', { 34 [ 'OS == "linux" or (host_os == "linux" and _toolset == "host")', {
35 'sources': [ 'epoll.c' ], 35 'sources': [ 'epoll.c' ],
36 'include_dirs': [ 'linux' ], 36 'include_dirs': [ 'linux' ],
37 'link_settings': { 37 'link_settings': {
38 'libraries': [ 38 'libraries': [
39 # We need rt for clock_gettime(). 39 # We need rt for clock_gettime().
40 # TODO(port) Maybe on FreeBSD as well? 40 # TODO(port) Maybe on FreeBSD as well?
41 '-lrt', 41 '-lrt',
42 ], 42 ],
43 }, 43 },
44 }], 44 }],
45 [ 'OS == "android" and _toolset == "target"', { 45 [ 'OS == "android" and _toolset == "target"', {
46 # On android, clock_gettime() is in libc.so, so no need to link librt. 46 # On android, clock_gettime() is in libc.so, so no need to link librt.
47 'sources': [ 'epoll.c' ], 47 'sources': [ 'epoll.c' ],
48 'include_dirs': [ 'android' ], 48 'include_dirs': [ 'android' ],
49 }], 49 }],
50 [ 'OS == "mac" or OS == "ios" or os_bsd==1', { 50 [ 'OS == "mac" or OS == "ios" or os_bsd==1 or(host_os=="mac" and _toolse t=="host")', {
51 'sources': [ 'kqueue.c' ], 51 'sources': [ 'kqueue.c' ],
52 'include_dirs': [ 'mac' ] 52 'include_dirs': [ 'mac' ]
53 }], 53 }],
54 [ 'OS == "solaris"', { 54 [ 'OS == "solaris"', {
55 'sources': [ 'devpoll.c', 'evport.c' ], 55 'sources': [ 'devpoll.c', 'evport.c' ],
56 'include_dirs': [ 'solaris' ] 56 'include_dirs': [ 'solaris' ]
57 }], 57 }],
58 ], 58 ],
59 }, 59 },
60 ], 60 ],
61 } 61 }
OLDNEW
« no previous file with comments | « content/app/android/child_process_service.h ('k') | third_party/mach_override/mach_override.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698