diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-11-16 17:57:15 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-11-16 17:58:42 +0100 |
commit | b6a3b0a6297ee205aa34d357edd55b79f91cdf09 (patch) | |
tree | f962b088681f43d7a17615cad54fedbf938b00f8 /deps/uv/uv.gyp | |
parent | e2bcff9aa75e51b9ba071330fe712180abed03e0 (diff) | |
download | android-node-v8-b6a3b0a6297ee205aa34d357edd55b79f91cdf09.tar.gz android-node-v8-b6a3b0a6297ee205aa34d357edd55b79f91cdf09.tar.bz2 android-node-v8-b6a3b0a6297ee205aa34d357edd55b79f91cdf09.zip |
deps: upgrade libuv to 665a316
Diffstat (limited to 'deps/uv/uv.gyp')
-rw-r--r-- | deps/uv/uv.gyp | 64 |
1 files changed, 27 insertions, 37 deletions
diff --git a/deps/uv/uv.gyp b/deps/uv/uv.gyp index 4c1a3a21e1..0fa277da4a 100644 --- a/deps/uv/uv.gyp +++ b/deps/uv/uv.gyp @@ -9,11 +9,9 @@ ], 'conditions': [ ['OS=="solaris"', { - 'cflags': ['-pthreads'], - 'ldlags': ['-pthreads'], + 'cflags': [ '-pthreads' ], }, { - 'cflags': ['-pthread'], - 'ldlags': ['-pthread'], + 'cflags': [ '-pthread' ], }], ], }], @@ -38,12 +36,11 @@ ['OS == "mac"', { 'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ], }], - ['OS == "linux"', { - 'libraries': [ '-ldl' ], - }], ], }, - + 'defines': [ + 'HAVE_CONFIG_H' + ], 'sources': [ 'common.gypi', 'include/uv.h', @@ -112,7 +109,6 @@ '-Wno-unused-parameter' ], 'sources': [ - 'include/uv-private/ev.h', 'include/uv-private/uv-unix.h', 'include/uv-private/uv-linux.h', 'include/uv-private/uv-sunos.h', @@ -122,10 +118,6 @@ 'src/unix/core.c', 'src/unix/dl.c', 'src/unix/error.c', - 'src/unix/ev/ev.c', - 'src/unix/ev/ev_vars.h', - 'src/unix/ev/ev_wrap.h', - 'src/unix/ev/event.h', 'src/unix/fs.c', 'src/unix/getaddrinfo.c', 'src/unix/internal.h', @@ -143,19 +135,31 @@ 'src/unix/tty.c', 'src/unix/udp.c', ], - 'include_dirs': [ 'src/unix/ev', ], - 'libraries': [ '-lm' ] + 'link_settings': { + 'libraries': [ '-lm' ], + 'conditions': [ + ['OS=="solaris"', { + 'ldflags': [ '-pthreads' ], + }, { + 'ldflags': [ '-pthread' ], + }], + ], + }, + 'conditions': [ + ['"<(library)" == "shared_library"', { + 'cflags': [ '-fPIC' ], + }], + ], }], [ 'OS=="mac"', { 'sources': [ 'src/unix/darwin.c', 'src/unix/fsevents.c' ], - 'direct_dependent_settings': { + 'link_settings': { 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/CoreServices.framework', ], }, 'defines': [ '_DARWIN_USE_64_BIT_INODE=1', - 'EV_CONFIG_H="config_darwin.h"', ] }], [ 'OS=="linux"', { @@ -165,11 +169,8 @@ 'src/unix/linux/syscalls.c', 'src/unix/linux/syscalls.h', ], - 'defines': [ - 'EV_CONFIG_H="config_linux.h"', - ], - 'direct_dependent_settings': { - 'libraries': [ '-lrt' ], + 'link_settings': { + 'libraries': [ '-ldl', '-lrt' ], }, }], [ 'OS=="solaris"', { @@ -177,9 +178,8 @@ 'defines': [ '__EXTENSIONS__', '_XOPEN_SOURCE=500', - 'EV_CONFIG_H="config_sunos.h"', ], - 'direct_dependent_settings': { + 'link_settings': { 'libraries': [ '-lkstat', '-lnsl', @@ -194,9 +194,8 @@ 'defines': [ '_ALL_SOURCE', '_XOPEN_SOURCE=500', - 'EV_CONFIG_H="config_aix.h"', ], - 'direct_dependent_settings': { + 'link_settings': { 'libraries': [ '-lperfstat', ], @@ -204,10 +203,7 @@ }], [ 'OS=="freebsd"', { 'sources': [ 'src/unix/freebsd.c' ], - 'defines': [ - 'EV_CONFIG_H="config_freebsd.h"', - ], - 'direct_dependent_settings': { + 'link_settings': { 'libraries': [ '-lkvm', ], @@ -215,16 +211,10 @@ }], [ 'OS=="openbsd"', { 'sources': [ 'src/unix/openbsd.c' ], - 'defines': [ - 'EV_CONFIG_H="config_openbsd.h"', - ], }], [ 'OS=="netbsd"', { 'sources': [ 'src/unix/netbsd.c' ], - 'defines': [ - 'EV_CONFIG_H="config_netbsd.h"', - ], - 'direct_dependent_settings': { + 'link_settings': { 'libraries': [ '-lkvm', ], |