2011-08-10 23:23:26 +02:00
|
|
|
{
|
2011-10-12 17:32:47 +02:00
|
|
|
'target_defaults': {
|
|
|
|
'conditions': [
|
|
|
|
['OS != "win"', {
|
|
|
|
'defines': [
|
2011-12-16 00:56:42 +01:00
|
|
|
'_LARGEFILE_SOURCE',
|
|
|
|
'_FILE_OFFSET_BITS=64',
|
2011-10-12 17:32:47 +02:00
|
|
|
],
|
2011-10-29 01:06:09 +02:00
|
|
|
'conditions': [
|
|
|
|
['OS=="solaris"', {
|
2012-11-16 17:57:15 +01:00
|
|
|
'cflags': [ '-pthreads' ],
|
2013-06-26 19:48:10 +02:00
|
|
|
}],
|
|
|
|
['OS not in "solaris android"', {
|
2012-11-16 17:57:15 +01:00
|
|
|
'cflags': [ '-pthread' ],
|
2011-10-29 01:06:09 +02:00
|
|
|
}],
|
|
|
|
],
|
2011-10-12 17:32:47 +02:00
|
|
|
}],
|
|
|
|
],
|
2014-09-19 19:37:55 +02:00
|
|
|
'xcode_settings': {
|
2015-01-05 20:44:25 +01:00
|
|
|
'WARNING_CFLAGS': [ '-Wall', '-Wextra', '-Wno-unused-parameter' ],
|
|
|
|
'OTHER_CFLAGS': [ '-g', '--std=gnu89', '-pedantic' ],
|
2014-09-19 19:37:55 +02:00
|
|
|
}
|
2011-10-12 17:32:47 +02:00
|
|
|
},
|
|
|
|
|
2011-08-10 23:23:26 +02:00
|
|
|
'targets': [
|
|
|
|
{
|
2012-10-11 14:36:23 +02:00
|
|
|
'target_name': 'libuv',
|
2014-02-27 03:08:30 +01:00
|
|
|
'type': '<(uv_library)',
|
2011-08-30 00:23:13 +02:00
|
|
|
'include_dirs': [
|
|
|
|
'include',
|
|
|
|
'src/',
|
|
|
|
],
|
2011-08-10 23:23:26 +02:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [ 'include' ],
|
2012-03-05 15:38:43 +01:00
|
|
|
'conditions': [
|
2012-11-04 01:25:06 +01:00
|
|
|
['OS != "win"', {
|
2013-01-11 13:49:45 +01:00
|
|
|
'defines': [
|
|
|
|
'_LARGEFILE_SOURCE',
|
|
|
|
'_FILE_OFFSET_BITS=64',
|
|
|
|
],
|
2012-11-04 01:25:06 +01:00
|
|
|
}],
|
|
|
|
['OS == "mac"', {
|
2013-01-22 16:21:25 +01:00
|
|
|
'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ],
|
|
|
|
}],
|
|
|
|
['OS == "linux"', {
|
|
|
|
'defines': [ '_POSIX_C_SOURCE=200112' ],
|
2012-11-04 01:25:06 +01:00
|
|
|
}],
|
2012-03-05 15:38:43 +01:00
|
|
|
],
|
2011-08-10 23:23:26 +02:00
|
|
|
},
|
|
|
|
'sources': [
|
2011-10-29 01:06:09 +02:00
|
|
|
'common.gypi',
|
2011-08-10 23:23:26 +02:00
|
|
|
'include/uv.h',
|
2013-07-16 21:04:31 +02:00
|
|
|
'include/tree.h',
|
|
|
|
'include/uv-errno.h',
|
2014-08-07 13:03:17 +02:00
|
|
|
'include/uv-threadpool.h',
|
2014-02-27 03:08:30 +01:00
|
|
|
'include/uv-version.h',
|
2012-06-18 22:57:29 +02:00
|
|
|
'src/fs-poll.c',
|
2014-02-27 03:08:30 +01:00
|
|
|
'src/heap-inl.h',
|
2012-08-07 01:25:06 +02:00
|
|
|
'src/inet.c',
|
2013-03-29 16:10:56 +01:00
|
|
|
'src/queue.h',
|
2014-08-07 13:03:17 +02:00
|
|
|
'src/threadpool.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'src/uv-common.c',
|
|
|
|
'src/uv-common.h',
|
2013-03-28 00:28:45 +01:00
|
|
|
'src/version.c'
|
2011-08-10 23:23:26 +02:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
[ 'OS=="win"', {
|
|
|
|
'defines': [
|
2012-02-12 16:12:04 +01:00
|
|
|
'_WIN32_WINNT=0x0600',
|
2011-08-10 23:23:26 +02:00
|
|
|
'_GNU_SOURCE',
|
|
|
|
],
|
|
|
|
'sources': [
|
2013-07-16 21:04:31 +02:00
|
|
|
'include/uv-win.h',
|
2011-08-10 23:23:26 +02:00
|
|
|
'src/win/async.c',
|
2012-08-20 18:41:07 +02:00
|
|
|
'src/win/atomicops-inl.h',
|
2011-08-10 23:23:26 +02:00
|
|
|
'src/win/core.c',
|
2011-10-29 01:06:09 +02:00
|
|
|
'src/win/dl.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'src/win/error.c',
|
2011-08-30 00:23:13 +02:00
|
|
|
'src/win/fs.c',
|
2011-09-23 04:41:43 +02:00
|
|
|
'src/win/fs-event.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'src/win/getaddrinfo.c',
|
2014-06-27 02:44:36 +02:00
|
|
|
'src/win/getnameinfo.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'src/win/handle.c',
|
2012-06-05 15:45:46 +02:00
|
|
|
'src/win/handle-inl.h',
|
2011-08-10 23:23:26 +02:00
|
|
|
'src/win/internal.h',
|
|
|
|
'src/win/loop-watcher.c',
|
|
|
|
'src/win/pipe.c',
|
2011-11-18 13:07:01 +01:00
|
|
|
'src/win/thread.c',
|
2012-05-17 07:13:29 +02:00
|
|
|
'src/win/poll.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'src/win/process.c',
|
2012-06-14 01:24:43 +02:00
|
|
|
'src/win/process-stdio.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'src/win/req.c',
|
2012-06-05 15:45:46 +02:00
|
|
|
'src/win/req-inl.h',
|
2012-08-20 18:41:07 +02:00
|
|
|
'src/win/signal.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'src/win/stream.c',
|
2012-06-05 15:45:46 +02:00
|
|
|
'src/win/stream-inl.h',
|
2011-08-10 23:23:26 +02:00
|
|
|
'src/win/tcp.c',
|
2011-09-12 23:53:27 +02:00
|
|
|
'src/win/tty.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'src/win/timer.c',
|
2011-08-23 02:34:43 +02:00
|
|
|
'src/win/udp.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'src/win/util.c',
|
2011-08-12 10:14:04 +02:00
|
|
|
'src/win/winapi.c',
|
2011-08-22 23:51:29 +02:00
|
|
|
'src/win/winapi.h',
|
|
|
|
'src/win/winsock.c',
|
|
|
|
'src/win/winsock.h',
|
2011-08-13 20:17:47 +02:00
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
2014-08-07 13:03:17 +02:00
|
|
|
'-ladvapi32',
|
|
|
|
'-liphlpapi',
|
|
|
|
'-lpsapi',
|
|
|
|
'-lshell32',
|
|
|
|
'-lws2_32'
|
2011-08-13 20:17:47 +02:00
|
|
|
],
|
|
|
|
},
|
2011-08-10 23:23:26 +02:00
|
|
|
}, { # Not Windows i.e. POSIX
|
|
|
|
'cflags': [
|
|
|
|
'-g',
|
|
|
|
'--std=gnu89',
|
|
|
|
'-pedantic',
|
|
|
|
'-Wall',
|
|
|
|
'-Wextra',
|
2013-02-26 20:30:12 +01:00
|
|
|
'-Wno-unused-parameter',
|
2011-08-10 23:23:26 +02:00
|
|
|
],
|
|
|
|
'sources': [
|
2013-07-16 21:04:31 +02:00
|
|
|
'include/uv-unix.h',
|
|
|
|
'include/uv-linux.h',
|
|
|
|
'include/uv-sunos.h',
|
|
|
|
'include/uv-darwin.h',
|
|
|
|
'include/uv-bsd.h',
|
2014-08-07 13:03:17 +02:00
|
|
|
'include/uv-aix.h',
|
2012-04-29 00:22:01 +02:00
|
|
|
'src/unix/async.c',
|
2013-10-30 00:33:17 +01:00
|
|
|
'src/unix/atomic-ops.h',
|
2012-04-29 00:22:01 +02:00
|
|
|
'src/unix/core.c',
|
2011-10-29 01:06:09 +02:00
|
|
|
'src/unix/dl.c',
|
2012-04-29 00:22:01 +02:00
|
|
|
'src/unix/fs.c',
|
2012-10-06 23:04:30 +02:00
|
|
|
'src/unix/getaddrinfo.c',
|
2014-06-27 02:44:36 +02:00
|
|
|
'src/unix/getnameinfo.c',
|
2012-04-29 00:22:01 +02:00
|
|
|
'src/unix/internal.h',
|
|
|
|
'src/unix/loop.c',
|
2012-05-24 23:26:32 +02:00
|
|
|
'src/unix/loop-watcher.c',
|
2012-04-29 00:22:01 +02:00
|
|
|
'src/unix/pipe.c',
|
2012-05-17 07:13:29 +02:00
|
|
|
'src/unix/poll.c',
|
2012-04-29 00:22:01 +02:00
|
|
|
'src/unix/process.c',
|
2012-08-20 18:41:07 +02:00
|
|
|
'src/unix/signal.c',
|
2013-10-30 00:33:17 +01:00
|
|
|
'src/unix/spinlock.h',
|
2012-04-29 00:22:01 +02:00
|
|
|
'src/unix/stream.c',
|
|
|
|
'src/unix/tcp.c',
|
|
|
|
'src/unix/thread.c',
|
|
|
|
'src/unix/timer.c',
|
|
|
|
'src/unix/tty.c',
|
|
|
|
'src/unix/udp.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
],
|
2012-11-16 17:57:15 +01:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [ '-lm' ],
|
|
|
|
'conditions': [
|
|
|
|
['OS=="solaris"', {
|
|
|
|
'ldflags': [ '-pthreads' ],
|
2013-06-26 19:48:10 +02:00
|
|
|
}],
|
|
|
|
['OS != "solaris" and OS != "android"', {
|
2012-11-16 17:57:15 +01:00
|
|
|
'ldflags': [ '-pthread' ],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'conditions': [
|
2014-02-27 03:08:30 +01:00
|
|
|
['uv_library=="shared_library"', {
|
2012-11-16 17:57:15 +01:00
|
|
|
'cflags': [ '-fPIC' ],
|
|
|
|
}],
|
2014-02-27 03:08:30 +01:00
|
|
|
['uv_library=="shared_library" and OS!="mac"', {
|
2013-05-15 02:13:42 +02:00
|
|
|
'link_settings': {
|
|
|
|
# Must correspond with UV_VERSION_MAJOR and UV_VERSION_MINOR
|
2014-11-21 15:43:12 +01:00
|
|
|
# in include/uv-version.h
|
2014-09-19 19:37:55 +02:00
|
|
|
'libraries': [ '-Wl,-soname,libuv.so.1.0' ],
|
2013-05-15 02:13:42 +02:00
|
|
|
},
|
|
|
|
}],
|
2012-11-16 17:57:15 +01:00
|
|
|
],
|
2011-08-10 23:23:26 +02:00
|
|
|
}],
|
2013-06-26 19:48:10 +02:00
|
|
|
[ 'OS in "linux mac android"', {
|
2013-02-24 04:03:49 +01:00
|
|
|
'sources': [ 'src/unix/proctitle.c' ],
|
|
|
|
}],
|
2011-08-10 23:23:26 +02:00
|
|
|
[ 'OS=="mac"', {
|
2013-02-24 04:03:49 +01:00
|
|
|
'sources': [
|
|
|
|
'src/unix/darwin.c',
|
|
|
|
'src/unix/fsevents.c',
|
2013-05-11 00:30:53 +02:00
|
|
|
'src/unix/darwin-proctitle.c',
|
2013-02-24 04:03:49 +01:00
|
|
|
],
|
2011-08-10 23:23:26 +02:00
|
|
|
'defines': [
|
2012-04-29 00:22:01 +02:00
|
|
|
'_DARWIN_USE_64_BIT_INODE=1',
|
2014-09-19 19:37:55 +02:00
|
|
|
'_DARWIN_UNLIMITED_SELECT=1',
|
2011-08-10 23:23:26 +02:00
|
|
|
]
|
|
|
|
}],
|
2013-03-28 00:28:45 +01: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-10 23:23:26 +02:00
|
|
|
[ 'OS=="linux"', {
|
2015-01-28 22:14:19 +01:00
|
|
|
'defines': [ '_GNU_SOURCE' ],
|
2012-02-28 18:11:48 +01:00
|
|
|
'sources': [
|
2013-02-20 21:12:18 +01:00
|
|
|
'src/unix/linux-core.c',
|
|
|
|
'src/unix/linux-inotify.c',
|
|
|
|
'src/unix/linux-syscalls.c',
|
|
|
|
'src/unix/linux-syscalls.h',
|
2012-02-28 18:11:48 +01:00
|
|
|
],
|
2012-11-16 17:57:15 +01:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [ '-ldl', '-lrt' ],
|
2011-08-10 23:23:26 +02:00
|
|
|
},
|
|
|
|
}],
|
2013-06-26 19:48:10 +02:00
|
|
|
[ 'OS=="android"', {
|
|
|
|
'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',
|
2014-04-07 14:36:51 +02:00
|
|
|
'src/unix/android-ifaddrs.c'
|
2013-06-26 19:48:10 +02:00
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [ '-ldl' ],
|
|
|
|
},
|
|
|
|
}],
|
2011-09-12 23:45:00 +02:00
|
|
|
[ 'OS=="solaris"', {
|
|
|
|
'sources': [ 'src/unix/sunos.c' ],
|
|
|
|
'defines': [
|
|
|
|
'__EXTENSIONS__',
|
|
|
|
'_XOPEN_SOURCE=500',
|
|
|
|
],
|
2012-11-16 17:57:15 +01:00
|
|
|
'link_settings': {
|
2011-10-05 01:53:17 +02:00
|
|
|
'libraries': [
|
2011-10-11 02:05:18 +02:00
|
|
|
'-lkstat',
|
2011-10-05 01:53:17 +02:00
|
|
|
'-lnsl',
|
2012-10-06 23:04:30 +02:00
|
|
|
'-lsendfile',
|
|
|
|
'-lsocket',
|
2011-10-05 01:53:17 +02:00
|
|
|
],
|
2011-09-12 23:45:00 +02:00
|
|
|
},
|
|
|
|
}],
|
2012-09-14 02:56:41 +02:00
|
|
|
[ 'OS=="aix"', {
|
|
|
|
'sources': [ 'src/unix/aix.c' ],
|
|
|
|
'defines': [
|
|
|
|
'_ALL_SOURCE',
|
|
|
|
'_XOPEN_SOURCE=500',
|
2014-08-07 13:03:17 +02:00
|
|
|
'_LINUX_SOURCE_COMPAT',
|
2012-09-14 02:56:41 +02:00
|
|
|
],
|
2012-11-16 17:57:15 +01:00
|
|
|
'link_settings': {
|
2012-09-14 02:56:41 +02:00
|
|
|
'libraries': [
|
|
|
|
'-lperfstat',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2012-11-20 20:11:08 +01:00
|
|
|
[ 'OS=="freebsd" or OS=="dragonflybsd"', {
|
2011-08-17 06:45:21 +02:00
|
|
|
'sources': [ 'src/unix/freebsd.c' ],
|
|
|
|
}],
|
2011-10-15 00:42:10 +02:00
|
|
|
[ 'OS=="openbsd"', {
|
|
|
|
'sources': [ 'src/unix/openbsd.c' ],
|
|
|
|
}],
|
2012-09-13 16:18:54 +02:00
|
|
|
[ 'OS=="netbsd"', {
|
|
|
|
'sources': [ 'src/unix/netbsd.c' ],
|
2013-05-11 00:30:53 +02:00
|
|
|
}],
|
|
|
|
[ 'OS in "freebsd dragonflybsd openbsd netbsd".split()', {
|
2012-11-16 17:57:15 +01:00
|
|
|
'link_settings': {
|
2013-05-11 00:30:53 +02:00
|
|
|
'libraries': [ '-lkvm' ],
|
2012-09-13 16:18:54 +02:00
|
|
|
},
|
|
|
|
}],
|
2012-11-20 20:11:08 +01:00
|
|
|
[ 'OS in "mac freebsd dragonflybsd openbsd netbsd".split()', {
|
2011-10-05 01:53:17 +02:00
|
|
|
'sources': [ 'src/unix/kqueue.c' ],
|
|
|
|
}],
|
2014-02-27 03:08:30 +01:00
|
|
|
['uv_library=="shared_library"', {
|
2012-10-06 23:04:30 +02:00
|
|
|
'defines': [ 'BUILDING_UV_SHARED=1' ]
|
2013-04-12 17:43:05 +02:00
|
|
|
}],
|
2011-08-10 23:23:26 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
'target_name': 'run-tests',
|
|
|
|
'type': 'executable',
|
2012-10-11 14:36:23 +02:00
|
|
|
'dependencies': [ 'libuv' ],
|
2011-08-10 23:23:26 +02:00
|
|
|
'sources': [
|
2011-10-06 21:26:51 +02:00
|
|
|
'test/blackhole-server.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/echo-server.c',
|
|
|
|
'test/run-tests.c',
|
|
|
|
'test/runner.c',
|
|
|
|
'test/runner.h',
|
2011-10-05 01:53:17 +02:00
|
|
|
'test/test-get-loadavg.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/task.h',
|
2012-08-28 02:43:55 +02:00
|
|
|
'test/test-active.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-async.c',
|
2013-08-21 20:15:21 +02:00
|
|
|
'test/test-async-null-cb.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-callback-stack.c',
|
2012-05-17 07:13:29 +02:00
|
|
|
'test/test-callback-order.c',
|
2013-11-20 17:25:24 +01:00
|
|
|
'test/test-close-fd.c',
|
2013-10-30 00:33:17 +01:00
|
|
|
'test/test-close-order.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-connection-fail.c',
|
2011-12-01 22:50:09 +01:00
|
|
|
'test/test-cwd-and-chdir.c',
|
2014-09-19 19:37:55 +02:00
|
|
|
'test/test-default-loop-close.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-delayed-accept.c',
|
2012-08-28 02:43:55 +02:00
|
|
|
'test/test-error.c',
|
2012-12-13 20:23:01 +01:00
|
|
|
'test/test-embed.c',
|
2013-12-13 19:35:09 +01:00
|
|
|
'test/test-emfile.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-fail-always.c',
|
2011-08-30 00:23:13 +02:00
|
|
|
'test/test-fs.c',
|
2011-09-23 04:41:43 +02:00
|
|
|
'test/test-fs-event.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-get-currentexe.c',
|
2011-10-05 01:53:17 +02:00
|
|
|
'test/test-get-memory.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-getaddrinfo.c',
|
2014-06-27 02:44:36 +02:00
|
|
|
'test/test-getnameinfo.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-getsockname.c',
|
2014-09-19 19:37:55 +02:00
|
|
|
'test/test-handle-fileno.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-hrtime.c',
|
|
|
|
'test/test-idle.c',
|
2014-05-01 18:26:26 +02:00
|
|
|
'test/test-ip6-addr.c',
|
2011-10-06 21:26:51 +02:00
|
|
|
'test/test-ipc.c',
|
2012-03-09 18:20:29 +01:00
|
|
|
'test/test-ipc-send-recv.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-list.h',
|
|
|
|
'test/test-loop-handles.c',
|
2013-12-31 19:33:54 +01:00
|
|
|
'test/test-loop-alive.c',
|
2014-02-27 03:08:30 +01:00
|
|
|
'test/test-loop-close.c',
|
2013-02-26 20:30:12 +01:00
|
|
|
'test/test-loop-stop.c',
|
2013-12-13 19:35:09 +01:00
|
|
|
'test/test-loop-time.c',
|
2015-01-05 20:44:25 +01:00
|
|
|
'test/test-loop-configure.c',
|
2012-06-01 18:07:22 +02:00
|
|
|
'test/test-walk-handles.c',
|
2013-11-20 17:25:24 +01:00
|
|
|
'test/test-watcher-cross-stop.c',
|
2011-10-29 01:06:09 +02:00
|
|
|
'test/test-multiple-listen.c',
|
2013-05-11 00:30:53 +02:00
|
|
|
'test/test-osx-select.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-pass-always.c',
|
|
|
|
'test/test-ping-pong.c',
|
|
|
|
'test/test-pipe-bind-error.c',
|
2011-11-04 00:30:58 +01:00
|
|
|
'test/test-pipe-connect-error.c',
|
2014-02-27 03:08:30 +01:00
|
|
|
'test/test-pipe-getsockname.c',
|
2014-03-11 01:01:21 +01:00
|
|
|
'test/test-pipe-sendmsg.c',
|
2013-12-31 19:33:54 +01:00
|
|
|
'test/test-pipe-server-close.c',
|
2014-09-19 19:37:55 +02:00
|
|
|
'test/test-pipe-close-stdout-read-stdin.c',
|
2015-02-09 21:16:26 +01:00
|
|
|
'test/test-pipe-set-non-blocking.c',
|
2011-12-16 00:56:42 +01:00
|
|
|
'test/test-platform-output.c',
|
2012-05-17 07:13:29 +02:00
|
|
|
'test/test-poll.c',
|
2012-06-05 15:45:46 +02:00
|
|
|
'test/test-poll-close.c',
|
2015-01-05 20:44:25 +01:00
|
|
|
'test/test-poll-close-doesnt-corrupt-stack.c',
|
2014-06-27 02:44:36 +02:00
|
|
|
'test/test-poll-closesocket.c',
|
2011-12-16 00:56:42 +01:00
|
|
|
'test/test-process-title.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-ref.c',
|
2013-01-11 13:49:45 +01:00
|
|
|
'test/test-run-nowait.c',
|
2012-05-24 23:26:32 +02:00
|
|
|
'test/test-run-once.c',
|
2012-06-05 15:45:46 +02:00
|
|
|
'test/test-semaphore.c',
|
2012-03-09 18:20:29 +01:00
|
|
|
'test/test-shutdown-close.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-shutdown-eof.c',
|
2014-02-27 03:08:30 +01:00
|
|
|
'test/test-shutdown-twice.c',
|
2012-08-20 18:41:07 +02:00
|
|
|
'test/test-signal.c',
|
2012-10-17 18:33:40 +02:00
|
|
|
'test/test-signal-multiple-loops.c',
|
2014-09-19 19:37:55 +02:00
|
|
|
'test/test-socket-buffer-size.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-spawn.c',
|
2012-06-18 22:57:29 +02:00
|
|
|
'test/test-fs-poll.c',
|
2011-10-21 00:25:57 +02:00
|
|
|
'test/test-stdio-over-pipes.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-tcp-bind-error.c',
|
|
|
|
'test/test-tcp-bind6-error.c',
|
2011-09-14 17:43:27 +02:00
|
|
|
'test/test-tcp-close.c',
|
2013-11-20 17:25:24 +01:00
|
|
|
'test/test-tcp-close-accept.c',
|
2012-06-12 19:19:26 +02:00
|
|
|
'test/test-tcp-close-while-connecting.c',
|
2012-06-05 15:45:46 +02:00
|
|
|
'test/test-tcp-connect-error-after-write.c',
|
|
|
|
'test/test-tcp-shutdown-after-write.c',
|
2011-10-22 02:08:12 +02:00
|
|
|
'test/test-tcp-flags.c',
|
2011-10-05 01:53:17 +02:00
|
|
|
'test/test-tcp-connect-error.c',
|
2012-05-17 07:13:29 +02:00
|
|
|
'test/test-tcp-connect-timeout.c',
|
2011-10-05 01:53:17 +02:00
|
|
|
'test/test-tcp-connect6-error.c',
|
2012-09-18 00:36:05 +02:00
|
|
|
'test/test-tcp-open.c',
|
2011-11-08 20:19:50 +01:00
|
|
|
'test/test-tcp-write-to-half-open-connection.c',
|
2014-09-19 19:37:55 +02:00
|
|
|
'test/test-tcp-write-after-connect.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-tcp-writealot.c',
|
2013-12-13 19:35:09 +01:00
|
|
|
'test/test-tcp-try-write.c',
|
2012-08-07 01:25:06 +02:00
|
|
|
'test/test-tcp-unexpected-read.c',
|
2015-02-24 21:03:00 +01:00
|
|
|
'test/test-tcp-oob.c',
|
2012-12-13 20:23:01 +01:00
|
|
|
'test/test-tcp-read-stop.c',
|
2014-08-07 13:03:17 +02:00
|
|
|
'test/test-tcp-write-queue-order.c',
|
2011-08-30 00:23:13 +02:00
|
|
|
'test/test-threadpool.c',
|
2012-12-13 20:23:01 +01:00
|
|
|
'test/test-threadpool-cancel.c',
|
2014-11-21 15:43:12 +01:00
|
|
|
'test/test-thread-equal.c',
|
2011-11-18 13:07:01 +01:00
|
|
|
'test/test-mutexes.c',
|
2011-12-16 00:56:42 +01:00
|
|
|
'test/test-thread.c',
|
2012-10-10 02:17:32 +02:00
|
|
|
'test/test-barrier.c',
|
2012-10-06 23:04:30 +02:00
|
|
|
'test/test-condvar.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-timer-again.c',
|
2013-07-16 21:04:31 +02:00
|
|
|
'test/test-timer-from-check.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/test-timer.c',
|
2011-08-17 06:45:21 +02:00
|
|
|
'test/test-tty.c',
|
2014-04-07 14:36:51 +02:00
|
|
|
'test/test-udp-bind.c',
|
2011-08-23 02:34:43 +02:00
|
|
|
'test/test-udp-dgram-too-big.c',
|
|
|
|
'test/test-udp-ipv6.c',
|
2012-09-18 00:36:05 +02:00
|
|
|
'test/test-udp-open.c',
|
2012-01-31 17:41:46 +01:00
|
|
|
'test/test-udp-options.c',
|
2011-08-23 02:34:43 +02:00
|
|
|
'test/test-udp-send-and-recv.c',
|
2014-08-07 13:03:17 +02:00
|
|
|
'test/test-udp-send-immediate.c',
|
2014-09-19 19:37:55 +02:00
|
|
|
'test/test-udp-send-unreachable.c',
|
2011-10-12 17:32:47 +02:00
|
|
|
'test/test-udp-multicast-join.c',
|
2014-04-07 14:36:51 +02:00
|
|
|
'test/test-udp-multicast-join6.c',
|
2012-03-05 15:38:43 +01:00
|
|
|
'test/test-dlerror.c',
|
2012-02-12 16:12:04 +01:00
|
|
|
'test/test-udp-multicast-ttl.c',
|
2013-12-13 19:35:09 +01:00
|
|
|
'test/test-ip4-addr.c',
|
2013-07-16 21:04:31 +02:00
|
|
|
'test/test-ip6-addr.c',
|
2014-02-27 03:08:30 +01:00
|
|
|
'test/test-udp-multicast-interface.c',
|
2014-04-07 14:36:51 +02:00
|
|
|
'test/test-udp-multicast-interface6.c',
|
2014-08-07 13:03:17 +02:00
|
|
|
'test/test-udp-try-send.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
[ 'OS=="win"', {
|
|
|
|
'sources': [
|
|
|
|
'test/runner-win.c',
|
|
|
|
'test/runner-win.h'
|
|
|
|
],
|
2014-08-07 13:03:17 +02:00
|
|
|
'libraries': [ '-lws2_32' ]
|
2011-08-10 23:23:26 +02:00
|
|
|
}, { # POSIX
|
|
|
|
'defines': [ '_GNU_SOURCE' ],
|
|
|
|
'sources': [
|
|
|
|
'test/runner-unix.c',
|
|
|
|
'test/runner-unix.h',
|
2011-10-29 01:06:09 +02:00
|
|
|
],
|
2011-10-05 01:53:17 +02:00
|
|
|
}],
|
|
|
|
[ 'OS=="solaris"', { # make test-fs.c compile, needs _POSIX_C_SOURCE
|
|
|
|
'defines': [
|
|
|
|
'__EXTENSIONS__',
|
|
|
|
'_XOPEN_SOURCE=500',
|
|
|
|
],
|
|
|
|
}],
|
2012-09-14 02:56:41 +02:00
|
|
|
[ 'OS=="aix"', { # make test-fs.c compile, needs _POSIX_C_SOURCE
|
|
|
|
'defines': [
|
|
|
|
'_ALL_SOURCE',
|
|
|
|
'_XOPEN_SOURCE=500',
|
|
|
|
],
|
|
|
|
}],
|
2011-08-13 20:17:47 +02:00
|
|
|
],
|
|
|
|
'msvs-settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'SubSystem': 1, # /subsystem:console
|
|
|
|
},
|
|
|
|
},
|
2011-08-10 23:23:26 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
'target_name': 'run-benchmarks',
|
|
|
|
'type': 'executable',
|
2012-10-11 14:36:23 +02:00
|
|
|
'dependencies': [ 'libuv' ],
|
2011-08-10 23:23:26 +02:00
|
|
|
'sources': [
|
2012-07-20 19:01:46 +02:00
|
|
|
'test/benchmark-async.c',
|
|
|
|
'test/benchmark-async-pummel.c',
|
2012-06-22 16:44:40 +02:00
|
|
|
'test/benchmark-fs-stat.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/benchmark-getaddrinfo.c',
|
|
|
|
'test/benchmark-list.h',
|
2012-05-24 23:26:32 +02:00
|
|
|
'test/benchmark-loop-count.c',
|
2013-01-11 13:49:45 +01:00
|
|
|
'test/benchmark-million-async.c',
|
2012-06-12 19:19:26 +02:00
|
|
|
'test/benchmark-million-timers.c',
|
2012-09-18 00:36:05 +02:00
|
|
|
'test/benchmark-multi-accept.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/benchmark-ping-pongs.c',
|
|
|
|
'test/benchmark-pound.c',
|
|
|
|
'test/benchmark-pump.c',
|
|
|
|
'test/benchmark-sizes.c',
|
|
|
|
'test/benchmark-spawn.c',
|
2011-12-16 00:56:42 +01:00
|
|
|
'test/benchmark-thread.c',
|
2011-10-06 21:26:51 +02:00
|
|
|
'test/benchmark-tcp-write-batch.c',
|
2012-08-28 02:43:55 +02:00
|
|
|
'test/benchmark-udp-pummel.c',
|
2011-08-10 23:23:26 +02:00
|
|
|
'test/dns-server.c',
|
|
|
|
'test/echo-server.c',
|
2011-10-06 21:26:51 +02:00
|
|
|
'test/blackhole-server.c',
|
2011-08-10 23:23:26 +02: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',
|
|
|
|
],
|
2014-08-07 13:03:17 +02:00
|
|
|
'libraries': [ '-lws2_32' ]
|
2011-08-10 23:23:26 +02:00
|
|
|
}, { # POSIX
|
|
|
|
'defines': [ '_GNU_SOURCE' ],
|
|
|
|
'sources': [
|
|
|
|
'test/runner-unix.c',
|
|
|
|
'test/runner-unix.h',
|
|
|
|
]
|
|
|
|
}]
|
2011-08-13 20:17:47 +02:00
|
|
|
],
|
|
|
|
'msvs-settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'SubSystem': 1, # /subsystem:console
|
|
|
|
},
|
|
|
|
},
|
2013-04-12 17:43:05 +02:00
|
|
|
},
|
2011-08-10 23:23:26 +02:00
|
|
|
]
|
|
|
|
}
|