2011-08-14 05:56:11 +00:00
|
|
|
{
|
2013-04-08 23:17:01 +00:00
|
|
|
'variables': {
|
|
|
|
|
'uv_use_dtrace%': 'false',
|
|
|
|
|
# uv_parent_path is the relative path to libuv in the parent project
|
|
|
|
|
# this is only relevant when dtrace is enabled and libuv is a child project
|
|
|
|
|
# as it's necessary to correctly locate the object files for post
|
|
|
|
|
# processing.
|
2013-04-17 18:14:12 +00:00
|
|
|
# XXX gyp is quite sensitive about paths with double / they don't normalize
|
|
|
|
|
'uv_parent_path': '/',
|
2013-04-08 23:17:01 +00:00
|
|
|
},
|
|
|
|
|
|
2011-10-12 01:41:17 +00:00
|
|
|
'target_defaults': {
|
|
|
|
|
'conditions': [
|
|
|
|
|
['OS != "win"', {
|
|
|
|
|
'defines': [
|
|
|
|
|
'_LARGEFILE_SOURCE',
|
|
|
|
|
'_FILE_OFFSET_BITS=64',
|
|
|
|
|
],
|
2011-10-25 23:50:10 +00:00
|
|
|
'conditions': [
|
|
|
|
|
['OS=="solaris"', {
|
2012-11-09 19:20:50 +00:00
|
|
|
'cflags': [ '-pthreads' ],
|
2013-05-08 10:01:42 +00:00
|
|
|
}],
|
2013-06-05 11:28:22 +00:00
|
|
|
['OS not in "solaris android"', {
|
2012-11-09 19:20:50 +00:00
|
|
|
'cflags': [ '-pthread' ],
|
2011-10-25 23:50:10 +00:00
|
|
|
}],
|
|
|
|
|
],
|
2011-10-12 01:41:17 +00:00
|
|
|
}],
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
2011-08-14 05:56:11 +00:00
|
|
|
'targets': [
|
|
|
|
|
{
|
2012-10-11 12:32:06 +00:00
|
|
|
'target_name': 'libuv',
|
2011-08-14 05:56:11 +00:00
|
|
|
'type': '<(library)',
|
2011-08-29 22:03:42 +00:00
|
|
|
'include_dirs': [
|
|
|
|
|
'include',
|
|
|
|
|
'src/',
|
|
|
|
|
],
|
2011-08-14 05:56:11 +00:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
|
'include_dirs': [ 'include' ],
|
2012-03-05 14:28:27 +00:00
|
|
|
'conditions': [
|
2012-11-03 23:56:40 +00:00
|
|
|
['OS != "win"', {
|
2012-12-19 14:29:27 +00:00
|
|
|
'defines': [
|
|
|
|
|
'_LARGEFILE_SOURCE',
|
|
|
|
|
'_FILE_OFFSET_BITS=64',
|
|
|
|
|
],
|
2012-11-03 23:56:40 +00:00
|
|
|
}],
|
|
|
|
|
['OS == "mac"', {
|
2013-01-22 15:15:58 +00:00
|
|
|
'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ],
|
|
|
|
|
}],
|
|
|
|
|
['OS == "linux"', {
|
|
|
|
|
'defines': [ '_POSIX_C_SOURCE=200112' ],
|
2012-11-03 23:56:40 +00:00
|
|
|
}],
|
2012-03-05 14:28:27 +00:00
|
|
|
],
|
2011-08-14 05:56:11 +00:00
|
|
|
},
|
|
|
|
|
'defines': [
|
|
|
|
|
'HAVE_CONFIG_H'
|
|
|
|
|
],
|
|
|
|
|
'sources': [
|
2011-10-28 13:33:04 +00:00
|
|
|
'common.gypi',
|
2011-08-14 05:56:11 +00:00
|
|
|
'include/uv.h',
|
2013-06-27 12:28:00 +00:00
|
|
|
'include/tree.h',
|
2013-06-06 21:10:50 +00:00
|
|
|
'include/uv-errno.h',
|
2012-06-14 05:30:08 +00:00
|
|
|
'src/fs-poll.c',
|
2012-08-06 21:54:09 +00:00
|
|
|
'src/inet.c',
|
2013-03-26 20:11:29 +00:00
|
|
|
'src/queue.h',
|
2011-08-14 05:56:11 +00:00
|
|
|
'src/uv-common.c',
|
|
|
|
|
'src/uv-common.h',
|
2013-03-25 14:33:59 +00:00
|
|
|
'src/version.c'
|
2011-08-14 05:56:11 +00:00
|
|
|
],
|
|
|
|
|
'conditions': [
|
|
|
|
|
[ 'OS=="win"', {
|
|
|
|
|
'defines': [
|
2012-02-01 14:24:02 +00:00
|
|
|
'_WIN32_WINNT=0x0600',
|
2011-08-14 05:56:11 +00:00
|
|
|
'_GNU_SOURCE',
|
|
|
|
|
],
|
|
|
|
|
'sources': [
|
2013-06-27 12:28:00 +00:00
|
|
|
'include/uv-win.h',
|
2011-08-14 05:56:11 +00:00
|
|
|
'src/win/async.c',
|
2012-08-13 23:04:43 +00:00
|
|
|
'src/win/atomicops-inl.h',
|
2011-08-14 05:56:11 +00:00
|
|
|
'src/win/core.c',
|
2011-10-28 22:45:47 +00:00
|
|
|
'src/win/dl.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'src/win/error.c',
|
2011-08-19 23:46:42 +00:00
|
|
|
'src/win/fs.c',
|
2011-09-16 19:04:36 +00:00
|
|
|
'src/win/fs-event.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'src/win/getaddrinfo.c',
|
|
|
|
|
'src/win/handle.c',
|
2012-06-02 21:38:16 +00:00
|
|
|
'src/win/handle-inl.h',
|
2011-08-14 05:56:11 +00:00
|
|
|
'src/win/internal.h',
|
|
|
|
|
'src/win/loop-watcher.c',
|
|
|
|
|
'src/win/pipe.c',
|
2011-11-14 20:04:53 +00:00
|
|
|
'src/win/thread.c',
|
2012-04-24 22:25:01 +00:00
|
|
|
'src/win/poll.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'src/win/process.c',
|
2012-06-13 17:17:13 +00:00
|
|
|
'src/win/process-stdio.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'src/win/req.c',
|
2012-06-02 21:08:22 +00:00
|
|
|
'src/win/req-inl.h',
|
2012-07-10 00:13:49 +00:00
|
|
|
'src/win/signal.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'src/win/stream.c',
|
2012-06-04 14:25:28 +00:00
|
|
|
'src/win/stream-inl.h',
|
2011-08-14 05:56:11 +00:00
|
|
|
'src/win/tcp.c',
|
2011-09-12 21:24:50 +00:00
|
|
|
'src/win/tty.c',
|
2011-08-19 23:46:42 +00:00
|
|
|
'src/win/threadpool.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'src/win/timer.c',
|
2011-08-24 02:31:36 +00:00
|
|
|
'src/win/udp.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'src/win/util.c',
|
|
|
|
|
'src/win/winapi.c',
|
2011-08-21 19:46:20 +00:00
|
|
|
'src/win/winapi.h',
|
2011-08-21 19:46:40 +00:00
|
|
|
'src/win/winsock.c',
|
|
|
|
|
'src/win/winsock.h',
|
2011-08-14 05:56:11 +00:00
|
|
|
],
|
|
|
|
|
'link_settings': {
|
|
|
|
|
'libraries': [
|
2013-03-04 19:22:25 +00:00
|
|
|
'-ladvapi32.lib',
|
|
|
|
|
'-liphlpapi.lib',
|
2011-12-13 09:29:27 +00:00
|
|
|
'-lpsapi.lib',
|
2013-03-04 19:22:25 +00:00
|
|
|
'-lshell32.lib',
|
|
|
|
|
'-lws2_32.lib'
|
2011-08-14 05:56:11 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
}, { # Not Windows i.e. POSIX
|
|
|
|
|
'cflags': [
|
|
|
|
|
'-g',
|
|
|
|
|
'--std=gnu89',
|
|
|
|
|
'-pedantic',
|
|
|
|
|
'-Wall',
|
|
|
|
|
'-Wextra',
|
2013-02-25 02:43:01 +00:00
|
|
|
'-Wno-unused-parameter',
|
2011-08-14 05:56:11 +00:00
|
|
|
],
|
|
|
|
|
'sources': [
|
2013-06-27 12:28:00 +00:00
|
|
|
'include/uv-unix.h',
|
|
|
|
|
'include/uv-linux.h',
|
|
|
|
|
'include/uv-sunos.h',
|
|
|
|
|
'include/uv-darwin.h',
|
|
|
|
|
'include/uv-bsd.h',
|
2012-04-04 03:17:25 +00:00
|
|
|
'src/unix/async.c',
|
2013-10-18 10:29:43 +00:00
|
|
|
'src/unix/atomic-ops.h',
|
2012-04-04 03:12:02 +00:00
|
|
|
'src/unix/core.c',
|
2011-10-28 22:45:47 +00:00
|
|
|
'src/unix/dl.c',
|
2012-04-04 03:12:02 +00:00
|
|
|
'src/unix/fs.c',
|
2012-09-28 05:58:54 +00:00
|
|
|
'src/unix/getaddrinfo.c',
|
2012-04-04 03:12:02 +00:00
|
|
|
'src/unix/internal.h',
|
2012-04-04 12:52:01 +00:00
|
|
|
'src/unix/loop.c',
|
2012-05-23 21:45:08 +00:00
|
|
|
'src/unix/loop-watcher.c',
|
2012-04-04 03:12:02 +00:00
|
|
|
'src/unix/pipe.c',
|
2012-05-02 23:43:56 +00:00
|
|
|
'src/unix/poll.c',
|
2012-04-04 03:12:02 +00:00
|
|
|
'src/unix/process.c',
|
2012-07-10 00:13:49 +00:00
|
|
|
'src/unix/signal.c',
|
2013-10-18 13:39:47 +00:00
|
|
|
'src/unix/spinlock.h',
|
2012-04-04 03:12:02 +00:00
|
|
|
'src/unix/stream.c',
|
|
|
|
|
'src/unix/tcp.c',
|
|
|
|
|
'src/unix/thread.c',
|
2012-09-30 22:38:39 +00:00
|
|
|
'src/unix/threadpool.c',
|
2012-04-04 03:14:15 +00:00
|
|
|
'src/unix/timer.c',
|
2012-04-04 03:12:02 +00:00
|
|
|
'src/unix/tty.c',
|
|
|
|
|
'src/unix/udp.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
],
|
2012-11-09 19:20:50 +00:00
|
|
|
'link_settings': {
|
|
|
|
|
'libraries': [ '-lm' ],
|
|
|
|
|
'conditions': [
|
|
|
|
|
['OS=="solaris"', {
|
|
|
|
|
'ldflags': [ '-pthreads' ],
|
2013-05-08 10:01:42 +00:00
|
|
|
}],
|
2013-06-05 11:28:22 +00:00
|
|
|
['OS != "solaris" and OS != "android"', {
|
2012-11-09 19:20:50 +00:00
|
|
|
'ldflags': [ '-pthread' ],
|
|
|
|
|
}],
|
|
|
|
|
],
|
|
|
|
|
},
|
2012-11-06 21:24:49 +00:00
|
|
|
'conditions': [
|
2013-05-12 12:48:58 +00:00
|
|
|
['library=="shared_library"', {
|
2012-11-06 21:24:49 +00:00
|
|
|
'cflags': [ '-fPIC' ],
|
|
|
|
|
}],
|
2013-05-12 12:48:58 +00:00
|
|
|
['library=="shared_library" and OS!="mac"', {
|
|
|
|
|
'link_settings': {
|
|
|
|
|
# Must correspond with UV_VERSION_MAJOR and UV_VERSION_MINOR
|
|
|
|
|
# in src/version.c
|
2013-05-12 12:52:45 +00:00
|
|
|
'libraries': [ '-Wl,-soname,libuv.so.0.11' ],
|
2013-05-12 12:48:58 +00:00
|
|
|
},
|
|
|
|
|
}],
|
2012-11-06 21:24:49 +00:00
|
|
|
],
|
2011-08-14 05:56:11 +00:00
|
|
|
}],
|
2013-06-05 11:28:22 +00:00
|
|
|
[ 'OS in "linux mac android"', {
|
2013-02-24 02:50:31 +00:00
|
|
|
'sources': [ 'src/unix/proctitle.c' ],
|
|
|
|
|
}],
|
2011-08-14 05:56:11 +00:00
|
|
|
[ 'OS=="mac"', {
|
2013-02-24 01:26:28 +00:00
|
|
|
'sources': [
|
|
|
|
|
'src/unix/darwin.c',
|
|
|
|
|
'src/unix/fsevents.c',
|
2013-05-02 11:59:18 +00:00
|
|
|
'src/unix/darwin-proctitle.c',
|
2013-02-24 01:26:28 +00:00
|
|
|
],
|
2011-08-14 05:56:11 +00:00
|
|
|
'defines': [
|
2012-04-02 21:44:36 +00:00
|
|
|
'_DARWIN_USE_64_BIT_INODE=1',
|
2011-08-14 05:56:11 +00:00
|
|
|
]
|
|
|
|
|
}],
|
2013-03-27 23:10:44 +00:00
|
|
|
[ 'OS!="mac"', {
|
|
|
|
|
# Enable on all platforms except OS X. The antique gcc/clang that
|
|
|
|
|
# ships with Xcode emits waaaay too many false positives.
|
|
|
|
|
'cflags': [ '-Wstrict-aliasing' ],
|
|
|
|
|
}],
|
2011-08-14 05:56:11 +00:00
|
|
|
[ 'OS=="linux"', {
|
2012-02-22 15:52:38 +00:00
|
|
|
'sources': [
|
2013-01-29 15:47:47 +00:00
|
|
|
'src/unix/linux-core.c',
|
|
|
|
|
'src/unix/linux-inotify.c',
|
|
|
|
|
'src/unix/linux-syscalls.c',
|
|
|
|
|
'src/unix/linux-syscalls.h',
|
2012-02-22 15:52:38 +00:00
|
|
|
],
|
2012-11-09 19:20:50 +00:00
|
|
|
'link_settings': {
|
|
|
|
|
'libraries': [ '-ldl', '-lrt' ],
|
2011-08-14 05:56:11 +00:00
|
|
|
},
|
|
|
|
|
}],
|
2013-06-05 11:28:22 +00:00
|
|
|
[ 'OS=="android"', {
|
2013-05-08 10:01:42 +00:00
|
|
|
'sources': [
|
|
|
|
|
'src/unix/linux-core.c',
|
|
|
|
|
'src/unix/linux-inotify.c',
|
|
|
|
|
'src/unix/linux-syscalls.c',
|
|
|
|
|
'src/unix/linux-syscalls.h',
|
|
|
|
|
'src/unix/pthread-fixes.c',
|
|
|
|
|
],
|
|
|
|
|
'link_settings': {
|
|
|
|
|
'libraries': [ '-ldl' ],
|
|
|
|
|
},
|
|
|
|
|
}],
|
2011-09-01 01:14:33 +00:00
|
|
|
[ 'OS=="solaris"', {
|
|
|
|
|
'sources': [ 'src/unix/sunos.c' ],
|
|
|
|
|
'defines': [
|
|
|
|
|
'__EXTENSIONS__',
|
|
|
|
|
'_XOPEN_SOURCE=500',
|
|
|
|
|
],
|
2012-11-09 19:20:50 +00:00
|
|
|
'link_settings': {
|
2011-10-02 00:14:44 +00:00
|
|
|
'libraries': [
|
2011-10-10 20:47:07 +00:00
|
|
|
'-lkstat',
|
2011-10-02 00:14:44 +00:00
|
|
|
'-lnsl',
|
2012-09-30 22:57:45 +00:00
|
|
|
'-lsendfile',
|
|
|
|
|
'-lsocket',
|
2011-10-02 00:14:44 +00:00
|
|
|
],
|
2011-09-01 01:14:33 +00:00
|
|
|
},
|
|
|
|
|
}],
|
2012-09-13 23:21:02 +00:00
|
|
|
[ 'OS=="aix"', {
|
|
|
|
|
'include_dirs': [ 'src/ares/config_aix' ],
|
|
|
|
|
'sources': [ 'src/unix/aix.c' ],
|
|
|
|
|
'defines': [
|
|
|
|
|
'_ALL_SOURCE',
|
|
|
|
|
'_XOPEN_SOURCE=500',
|
|
|
|
|
],
|
2012-11-09 19:39:52 +00:00
|
|
|
'link_settings': {
|
2012-09-13 23:21:02 +00:00
|
|
|
'libraries': [
|
|
|
|
|
'-lperfstat',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
}],
|
2012-11-20 01:38:01 +00:00
|
|
|
[ 'OS=="freebsd" or OS=="dragonflybsd"', {
|
2011-08-17 04:40:17 +00:00
|
|
|
'sources': [ 'src/unix/freebsd.c' ],
|
2011-10-14 22:04:30 +00:00
|
|
|
}],
|
2011-10-13 03:38:13 +00:00
|
|
|
[ 'OS=="openbsd"', {
|
|
|
|
|
'sources': [ 'src/unix/openbsd.c' ],
|
2011-08-17 04:40:17 +00:00
|
|
|
}],
|
2012-09-08 12:34:14 +00:00
|
|
|
[ 'OS=="netbsd"', {
|
|
|
|
|
'sources': [ 'src/unix/netbsd.c' ],
|
2013-04-29 11:38:57 +00:00
|
|
|
}],
|
|
|
|
|
[ 'OS in "freebsd dragonflybsd openbsd netbsd".split()', {
|
2012-11-09 19:39:52 +00:00
|
|
|
'link_settings': {
|
2013-04-29 11:38:57 +00:00
|
|
|
'libraries': [ '-lkvm' ],
|
2012-09-08 12:34:14 +00:00
|
|
|
},
|
|
|
|
|
}],
|
2012-11-20 01:38:01 +00:00
|
|
|
[ 'OS in "mac freebsd dragonflybsd openbsd netbsd".split()', {
|
2011-09-22 23:20:33 +00:00
|
|
|
'sources': [ 'src/unix/kqueue.c' ],
|
|
|
|
|
}],
|
2012-09-20 22:51:49 +00:00
|
|
|
['library=="shared_library"', {
|
|
|
|
|
'defines': [ 'BUILDING_UV_SHARED=1' ]
|
2013-04-08 23:17:01 +00:00
|
|
|
}],
|
2013-10-29 20:48:01 +00:00
|
|
|
# FIXME(bnoordhuis or tjfontaine) Unify this, it's extremely ugly.
|
2013-04-08 23:17:01 +00:00
|
|
|
['uv_use_dtrace=="true"', {
|
|
|
|
|
'defines': [ 'HAVE_DTRACE=1' ],
|
|
|
|
|
'dependencies': [ 'uv_dtrace_header' ],
|
|
|
|
|
'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
|
|
|
|
|
'conditions': [
|
2013-10-29 20:48:01 +00:00
|
|
|
[ 'OS not in "mac linux"', {
|
|
|
|
|
'sources': [ 'src/unix/dtrace.c' ],
|
|
|
|
|
}],
|
|
|
|
|
[ 'OS=="linux"', {
|
|
|
|
|
'sources': [ '<(SHARED_INTERMEDIATE_DIR)/dtrace.o' ]
|
2013-04-08 23:17:01 +00:00
|
|
|
}],
|
|
|
|
|
],
|
|
|
|
|
}],
|
2011-08-14 05:56:11 +00:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'run-tests',
|
|
|
|
|
'type': 'executable',
|
2012-10-11 12:32:06 +00:00
|
|
|
'dependencies': [ 'libuv' ],
|
2011-08-14 05:56:11 +00:00
|
|
|
'sources': [
|
2011-10-06 01:31:26 +00:00
|
|
|
'test/blackhole-server.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/echo-server.c',
|
|
|
|
|
'test/run-tests.c',
|
|
|
|
|
'test/runner.c',
|
|
|
|
|
'test/runner.h',
|
2011-10-01 17:48:42 +00:00
|
|
|
'test/test-get-loadavg.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/task.h',
|
2012-08-27 21:57:48 +00:00
|
|
|
'test/test-active.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-async.c',
|
2013-08-12 06:42:49 +00:00
|
|
|
'test/test-async-null-cb.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-callback-stack.c',
|
2012-05-22 14:04:09 +00:00
|
|
|
'test/test-callback-order.c',
|
2013-11-08 04:15:55 +00:00
|
|
|
'test/test-close-fd.c',
|
2013-05-29 07:51:04 +00:00
|
|
|
'test/test-close-order.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-connection-fail.c',
|
2011-11-30 23:31:39 +00:00
|
|
|
'test/test-cwd-and-chdir.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-delayed-accept.c',
|
2012-08-27 21:57:48 +00:00
|
|
|
'test/test-error.c',
|
2012-11-26 10:20:11 +00:00
|
|
|
'test/test-embed.c',
|
2013-11-25 00:30:11 +00:00
|
|
|
'test/test-emfile.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-fail-always.c',
|
2011-08-19 23:46:42 +00:00
|
|
|
'test/test-fs.c',
|
2011-09-16 19:04:36 +00:00
|
|
|
'test/test-fs-event.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-get-currentexe.c',
|
2011-10-01 08:45:42 +00:00
|
|
|
'test/test-get-memory.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-getaddrinfo.c',
|
|
|
|
|
'test/test-getsockname.c',
|
|
|
|
|
'test/test-hrtime.c',
|
|
|
|
|
'test/test-idle.c',
|
2011-09-30 16:11:51 +00:00
|
|
|
'test/test-ipc.c',
|
2012-03-09 02:16:08 +00:00
|
|
|
'test/test-ipc-send-recv.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-list.h',
|
|
|
|
|
'test/test-loop-handles.c',
|
2013-01-16 08:36:20 +00:00
|
|
|
'test/test-loop-stop.c',
|
2013-12-10 08:13:34 +00:00
|
|
|
'test/test-loop-time.c',
|
2012-05-29 23:51:28 +00:00
|
|
|
'test/test-walk-handles.c',
|
2013-10-30 17:43:23 +00:00
|
|
|
'test/test-watcher-cross-stop.c',
|
2011-10-26 20:32:15 +00:00
|
|
|
'test/test-multiple-listen.c',
|
2013-04-26 19:43:28 +00:00
|
|
|
'test/test-osx-select.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-pass-always.c',
|
|
|
|
|
'test/test-ping-pong.c',
|
|
|
|
|
'test/test-pipe-bind-error.c',
|
2011-11-03 22:46:36 +00:00
|
|
|
'test/test-pipe-connect-error.c',
|
2011-12-13 09:29:27 +00:00
|
|
|
'test/test-platform-output.c',
|
2012-04-24 22:26:21 +00:00
|
|
|
'test/test-poll.c',
|
2012-06-01 16:30:17 +00:00
|
|
|
'test/test-poll-close.c',
|
2011-12-13 09:29:27 +00:00
|
|
|
'test/test-process-title.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-ref.c',
|
2012-12-18 15:10:11 +00:00
|
|
|
'test/test-run-nowait.c',
|
2012-05-23 18:30:59 +00:00
|
|
|
'test/test-run-once.c',
|
2012-06-03 01:17:21 +00:00
|
|
|
'test/test-semaphore.c',
|
2012-03-09 03:29:45 +00:00
|
|
|
'test/test-shutdown-close.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-shutdown-eof.c',
|
2012-07-10 00:13:49 +00:00
|
|
|
'test/test-signal.c',
|
2012-10-16 15:42:30 +00:00
|
|
|
'test/test-signal-multiple-loops.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-spawn.c',
|
2012-06-14 05:30:08 +00:00
|
|
|
'test/test-fs-poll.c',
|
2011-10-19 07:48:38 +00:00
|
|
|
'test/test-stdio-over-pipes.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-tcp-bind-error.c',
|
|
|
|
|
'test/test-tcp-bind6-error.c',
|
2011-09-09 21:53:09 +00:00
|
|
|
'test/test-tcp-close.c',
|
2013-10-25 08:56:37 +00:00
|
|
|
'test/test-tcp-close-accept.c',
|
2012-06-06 14:00:53 +00:00
|
|
|
'test/test-tcp-close-while-connecting.c',
|
2012-06-04 15:18:02 +00:00
|
|
|
'test/test-tcp-connect-error-after-write.c',
|
2012-06-04 21:18:32 +00:00
|
|
|
'test/test-tcp-shutdown-after-write.c',
|
2011-10-21 22:37:47 +00:00
|
|
|
'test/test-tcp-flags.c',
|
2011-09-30 14:59:36 +00:00
|
|
|
'test/test-tcp-connect-error.c',
|
2012-05-17 09:43:33 +00:00
|
|
|
'test/test-tcp-connect-timeout.c',
|
2011-09-30 14:59:36 +00:00
|
|
|
'test/test-tcp-connect6-error.c',
|
2012-09-17 10:15:12 +00:00
|
|
|
'test/test-tcp-open.c',
|
2011-11-07 23:48:33 +00:00
|
|
|
'test/test-tcp-write-to-half-open-connection.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-tcp-writealot.c',
|
2012-06-30 00:59:29 +00:00
|
|
|
'test/test-tcp-unexpected-read.c',
|
2012-12-13 15:37:12 +00:00
|
|
|
'test/test-tcp-read-stop.c',
|
2011-08-19 23:46:42 +00:00
|
|
|
'test/test-threadpool.c',
|
2012-11-26 02:12:38 +00:00
|
|
|
'test/test-threadpool-cancel.c',
|
2011-11-14 20:04:53 +00:00
|
|
|
'test/test-mutexes.c',
|
2011-11-21 15:12:36 +00:00
|
|
|
'test/test-thread.c',
|
2012-10-09 12:44:20 +00:00
|
|
|
'test/test-barrier.c',
|
2012-10-05 11:03:03 +00:00
|
|
|
'test/test-condvar.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-timer-again.c',
|
2013-06-26 11:02:39 +00:00
|
|
|
'test/test-timer-from-check.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/test-timer.c',
|
2011-09-20 22:26:29 +00:00
|
|
|
'test/test-tty.c',
|
2011-08-24 02:31:36 +00:00
|
|
|
'test/test-udp-dgram-too-big.c',
|
|
|
|
|
'test/test-udp-ipv6.c',
|
2012-09-17 10:15:12 +00:00
|
|
|
'test/test-udp-open.c',
|
2012-01-28 01:16:00 +00:00
|
|
|
'test/test-udp-options.c',
|
2011-08-24 02:31:36 +00:00
|
|
|
'test/test-udp-send-and-recv.c',
|
2011-09-29 23:29:15 +00:00
|
|
|
'test/test-udp-multicast-join.c',
|
2012-02-24 16:32:31 +00:00
|
|
|
'test/test-dlerror.c',
|
2012-01-19 16:07:28 +00:00
|
|
|
'test/test-udp-multicast-ttl.c',
|
2013-12-12 17:01:38 +00:00
|
|
|
'test/test-ip4-addr.c',
|
2013-03-14 21:20:32 +00:00
|
|
|
'test/test-ip6-addr.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
],
|
|
|
|
|
'conditions': [
|
|
|
|
|
[ 'OS=="win"', {
|
|
|
|
|
'sources': [
|
|
|
|
|
'test/runner-win.c',
|
|
|
|
|
'test/runner-win.h'
|
|
|
|
|
],
|
|
|
|
|
'libraries': [ 'ws2_32.lib' ]
|
|
|
|
|
}, { # POSIX
|
|
|
|
|
'defines': [ '_GNU_SOURCE' ],
|
|
|
|
|
'sources': [
|
|
|
|
|
'test/runner-unix.c',
|
|
|
|
|
'test/runner-unix.h',
|
2011-10-25 23:50:10 +00:00
|
|
|
],
|
2011-10-02 00:14:44 +00:00
|
|
|
}],
|
|
|
|
|
[ 'OS=="solaris"', { # make test-fs.c compile, needs _POSIX_C_SOURCE
|
|
|
|
|
'defines': [
|
|
|
|
|
'__EXTENSIONS__',
|
|
|
|
|
'_XOPEN_SOURCE=500',
|
|
|
|
|
],
|
|
|
|
|
}],
|
2012-09-13 23:21:02 +00:00
|
|
|
[ 'OS=="aix"', { # make test-fs.c compile, needs _POSIX_C_SOURCE
|
|
|
|
|
'defines': [
|
|
|
|
|
'_ALL_SOURCE',
|
|
|
|
|
'_XOPEN_SOURCE=500',
|
|
|
|
|
],
|
|
|
|
|
}],
|
2011-08-14 05:56:11 +00:00
|
|
|
],
|
|
|
|
|
'msvs-settings': {
|
|
|
|
|
'VCLinkerTool': {
|
|
|
|
|
'SubSystem': 1, # /subsystem:console
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'run-benchmarks',
|
|
|
|
|
'type': 'executable',
|
2012-10-11 12:32:06 +00:00
|
|
|
'dependencies': [ 'libuv' ],
|
2011-08-14 05:56:11 +00:00
|
|
|
'sources': [
|
2012-06-28 17:04:39 +00:00
|
|
|
'test/benchmark-async.c',
|
2012-06-29 01:16:06 +00:00
|
|
|
'test/benchmark-async-pummel.c',
|
2012-06-21 20:28:28 +00:00
|
|
|
'test/benchmark-fs-stat.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/benchmark-getaddrinfo.c',
|
|
|
|
|
'test/benchmark-list.h',
|
2012-05-23 19:05:41 +00:00
|
|
|
'test/benchmark-loop-count.c',
|
2012-12-24 11:03:41 +00:00
|
|
|
'test/benchmark-million-async.c',
|
2012-06-09 16:42:06 +00:00
|
|
|
'test/benchmark-million-timers.c',
|
2012-09-05 14:25:18 +00:00
|
|
|
'test/benchmark-multi-accept.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/benchmark-ping-pongs.c',
|
|
|
|
|
'test/benchmark-pound.c',
|
|
|
|
|
'test/benchmark-pump.c',
|
|
|
|
|
'test/benchmark-sizes.c',
|
|
|
|
|
'test/benchmark-spawn.c',
|
2011-11-21 20:17:16 +00:00
|
|
|
'test/benchmark-thread.c',
|
2011-10-06 01:31:26 +00:00
|
|
|
'test/benchmark-tcp-write-batch.c',
|
2012-08-25 20:02:37 +00:00
|
|
|
'test/benchmark-udp-pummel.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/dns-server.c',
|
|
|
|
|
'test/echo-server.c',
|
2011-10-06 01:31:26 +00:00
|
|
|
'test/blackhole-server.c',
|
2011-08-14 05:56:11 +00:00
|
|
|
'test/run-benchmarks.c',
|
|
|
|
|
'test/runner.c',
|
|
|
|
|
'test/runner.h',
|
|
|
|
|
'test/task.h',
|
|
|
|
|
],
|
|
|
|
|
'conditions': [
|
|
|
|
|
[ 'OS=="win"', {
|
|
|
|
|
'sources': [
|
|
|
|
|
'test/runner-win.c',
|
|
|
|
|
'test/runner-win.h',
|
|
|
|
|
],
|
|
|
|
|
'libraries': [ 'ws2_32.lib' ]
|
|
|
|
|
}, { # POSIX
|
|
|
|
|
'defines': [ '_GNU_SOURCE' ],
|
|
|
|
|
'sources': [
|
|
|
|
|
'test/runner-unix.c',
|
|
|
|
|
'test/runner-unix.h',
|
|
|
|
|
]
|
|
|
|
|
}]
|
|
|
|
|
],
|
|
|
|
|
'msvs-settings': {
|
|
|
|
|
'VCLinkerTool': {
|
|
|
|
|
'SubSystem': 1, # /subsystem:console
|
|
|
|
|
},
|
|
|
|
|
},
|
2013-04-08 23:17:01 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'uv_dtrace_header',
|
|
|
|
|
'type': 'none',
|
|
|
|
|
'conditions': [
|
|
|
|
|
[ 'uv_use_dtrace=="true"', {
|
|
|
|
|
'actions': [
|
|
|
|
|
{
|
|
|
|
|
'action_name': 'uv_dtrace_header',
|
|
|
|
|
'inputs': [ 'src/unix/uv-dtrace.d' ],
|
|
|
|
|
'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/uv-dtrace.h' ],
|
|
|
|
|
'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
|
|
|
|
|
'-o', '<@(_outputs)' ],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}],
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
2013-10-29 20:48:01 +00:00
|
|
|
# FIXME(bnoordhuis or tjfontaine) Unify this, it's extremely ugly.
|
2013-04-08 23:17:01 +00:00
|
|
|
{
|
|
|
|
|
'target_name': 'uv_dtrace_provider',
|
|
|
|
|
'type': 'none',
|
|
|
|
|
'conditions': [
|
2013-10-29 20:48:01 +00:00
|
|
|
[ 'uv_use_dtrace=="true" and OS not in "mac linux"', {
|
2013-04-08 23:17:01 +00:00
|
|
|
'actions': [
|
|
|
|
|
{
|
|
|
|
|
'action_name': 'uv_dtrace_o',
|
|
|
|
|
'inputs': [
|
|
|
|
|
'src/unix/uv-dtrace.d',
|
2013-04-17 18:14:12 +00:00
|
|
|
'<(PRODUCT_DIR)/obj.target/libuv<(uv_parent_path)src/unix/core.o',
|
2013-04-08 23:17:01 +00:00
|
|
|
],
|
|
|
|
|
'outputs': [
|
2013-04-17 18:14:12 +00:00
|
|
|
'<(PRODUCT_DIR)/obj.target/libuv<(uv_parent_path)src/unix/dtrace.o',
|
2013-04-08 23:17:01 +00:00
|
|
|
],
|
|
|
|
|
'action': [ 'dtrace', '-G', '-xnolibs', '-s', '<@(_inputs)',
|
|
|
|
|
'-o', '<@(_outputs)' ]
|
|
|
|
|
}
|
|
|
|
|
]
|
2013-10-29 20:48:01 +00:00
|
|
|
}],
|
|
|
|
|
[ 'uv_use_dtrace=="true" and OS=="linux"', {
|
|
|
|
|
'actions': [
|
|
|
|
|
{
|
|
|
|
|
'action_name': 'uv_dtrace_o',
|
|
|
|
|
'inputs': [ 'src/unix/uv-dtrace.d' ],
|
|
|
|
|
'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/dtrace.o' ],
|
|
|
|
|
'action': [
|
|
|
|
|
'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}],
|
2013-04-08 23:17:01 +00:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
|
2011-08-14 05:56:11 +00:00
|
|
|
]
|
|
|
|
|
}
|