summaryrefslogtreecommitdiff
path: root/deps/uv/uv.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'deps/uv/uv.gyp')
-rw-r--r--deps/uv/uv.gyp91
1 files changed, 73 insertions, 18 deletions
diff --git a/deps/uv/uv.gyp b/deps/uv/uv.gyp
index 2fdd59ac78..b969a8cd5d 100644
--- a/deps/uv/uv.gyp
+++ b/deps/uv/uv.gyp
@@ -10,9 +10,25 @@
['OS=="solaris"', {
'cflags': [ '-pthreads' ],
}],
- ['OS not in "solaris android"', {
+ ['OS not in "solaris android zos"', {
'cflags': [ '-pthread' ],
}],
+ ['OS in "zos"', {
+ 'defines': [
+ '_UNIX03_THREADS',
+ '_UNIX03_SOURCE',
+ '_OPEN_SYS_IF_EXT',
+ '_OPEN_SYS_SOCK_IPV6',
+ '_OPEN_MSGQ_EXT',
+ '_XOPEN_SOURCE_EXTENDED',
+ '_ALL_SOURCE',
+ '_LARGE_TIME_API',
+ '_OPEN_SYS_FILE_EXT',
+ '_AE_BIMODAL',
+ 'PATH_MAX=255'
+ ],
+ 'cflags': [ '-qxplink' ],
+ }]
],
}],
],
@@ -75,6 +91,7 @@
'src/win/async.c',
'src/win/atomicops-inl.h',
'src/win/core.c',
+ 'src/win/detect-wakeup.c',
'src/win/dl.c',
'src/win/error.c',
'src/win/fs.c',
@@ -118,15 +135,6 @@
],
},
}, { # Not Windows i.e. POSIX
- 'cflags': [
- '-fvisibility=hidden',
- '-g',
- '--std=gnu89',
- '-pedantic',
- '-Wall',
- '-Wextra',
- '-Wno-unused-parameter',
- ],
'sources': [
'include/uv-unix.h',
'include/uv-linux.h',
@@ -162,16 +170,25 @@
['OS=="solaris"', {
'ldflags': [ '-pthreads' ],
}],
- ['OS != "solaris" and OS != "android"', {
+ [ 'OS=="zos" and uv_library=="shared_library"', {
+ 'ldflags': [ '-Wl,DLL' ],
+ }],
+ ['OS != "solaris" and OS != "android" and OS != "zos"', {
'ldflags': [ '-pthread' ],
}],
],
},
'conditions': [
['uv_library=="shared_library"', {
- 'cflags': [ '-fPIC' ],
+ 'conditions': [
+ ['OS=="zos"', {
+ 'cflags': [ '-qexportall' ],
+ }, {
+ 'cflags': [ '-fPIC' ],
+ }],
+ ],
}],
- ['uv_library=="shared_library" and OS!="mac"', {
+ ['uv_library=="shared_library" and OS!="mac" and OS!="zos"', {
# This will cause gyp to set soname
# Must correspond with UV_VERSION_MAJOR
# in include/uv-version.h
@@ -182,6 +199,17 @@
[ 'OS in "linux mac ios android"', {
'sources': [ 'src/unix/proctitle.c' ],
}],
+ [ 'OS != "zos"', {
+ 'cflags': [
+ '-fvisibility=hidden',
+ '-g',
+ '--std=gnu89',
+ '-pedantic',
+ '-Wall',
+ '-Wextra',
+ '-Wno-unused-parameter',
+ ],
+ }],
[ 'OS in "mac ios"', {
'sources': [
'src/unix/darwin.c',
@@ -194,7 +222,7 @@
'_DARWIN_UNLIMITED_SELECT=1',
]
}],
- [ 'OS!="mac"', {
+ [ 'OS!="mac" and OS!="zos"', {
# Enable on all platforms except OS X. The antique gcc/clang that
# ships with Xcode emits waaaay too many false positives.
'cflags': [ '-Wstrict-aliasing' ],
@@ -274,6 +302,13 @@
['uv_library=="shared_library"', {
'defines': [ 'BUILDING_UV_SHARED=1' ]
}],
+ ['OS=="zos"', {
+ 'sources': [
+ 'src/unix/pthread-fixes.c',
+ 'src/unix/pthread-barrier.c'
+ 'src/unix/os390.c'
+ ]
+ }],
]
},
@@ -363,6 +398,7 @@
'test/test-spawn.c',
'test/test-fs-poll.c',
'test/test-stdio-over-pipes.c',
+ 'test/test-tcp-alloc-cb-fail.c',
'test/test-tcp-bind-error.c',
'test/test-tcp-bind6-error.c',
'test/test-tcp-close.c',
@@ -397,6 +433,7 @@
'test/test-timer-from-check.c',
'test/test-timer.c',
'test/test-tty.c',
+ 'test/test-udp-alloc-cb-fail.c',
'test/test-udp-bind.c',
'test/test-udp-create-socket-early.c',
'test/test-udp-dgram-too-big.c',
@@ -425,12 +462,20 @@
],
'libraries': [ '-lws2_32' ]
}, { # POSIX
- 'defines': [ '_GNU_SOURCE' ],
'sources': [
'test/runner-unix.c',
'test/runner-unix.h',
],
- }],
+ 'conditions': [
+ [ 'OS != "zos"', {
+ 'defines': [ '_GNU_SOURCE' ],
+ 'cflags': [ '-Wno-long-long' ],
+ 'xcode_settings': {
+ 'WARNING_CFLAGS': [ '-Wno-long-long' ]
+ }
+ }],
+ ]},
+ ],
[ 'OS in "mac dragonflybsd freebsd linux netbsd openbsd".split()', {
'link_settings': {
'libraries': [ '-lutil' ],
@@ -449,7 +494,12 @@
],
}],
['uv_library=="shared_library"', {
- 'defines': [ 'USING_UV_SHARED=1' ]
+ 'defines': [ 'USING_UV_SHARED=1' ],
+ 'conditions': [
+ [ 'OS == "zos"', {
+ 'cflags': [ '-Wc,DLL' ],
+ }],
+ ],
}],
],
'msvs-settings': {
@@ -505,7 +555,12 @@
]
}],
['uv_library=="shared_library"', {
- 'defines': [ 'USING_UV_SHARED=1' ]
+ 'defines': [ 'USING_UV_SHARED=1' ],
+ 'conditions': [
+ [ 'OS == "zos"', {
+ 'cflags': [ '-Wc,DLL' ],
+ }],
+ ],
}],
],
'msvs-settings': {