Skip to content
This repository
Browse code

Build with gyp

  • Loading branch information...
commit a30a7336f0ed8bb0c0bfeb1e401dcb3903c8efab 1 parent 52e1a9e
ry authored August 03, 2011
36  .gitignore
@@ -7,37 +7,5 @@
7 7
 *.orig
8 8
 *.sdf
9 9
 *.suo
10  
-*.vcxproj.filters
11  
-*.vcxproj.user
12  
-ev/.deps/
13  
-ev/.libs/
14  
-ev/Makefile
15  
-ev/config.h
16  
-ev/config.log
17  
-ev/config.status
18  
-ev/libtool
19  
-ev/stamp-h1
20  
-ev/autom4te.cache
21  
-/msvs/ipch/
22  
-/build/
23  
-test/run-tests
24  
-test/run-benchmarks
25  
-test/run-tests.exe
26  
-test/run-benchmarks.exe
27  
-test/run-benchmarks.dSYM/
28  
-test/run-tests.dSYM/
29  
-
30  
-
31  
-c-ares/.deps/
32  
-c-ares/.libs/
33  
-c-ares/Makefile
34  
-c-ares/acountry
35  
-c-ares/adig
36  
-c-ares/ahost
37  
-c-ares/ares_config.h
38  
-c-ares/config.log
39  
-c-ares/config.status
40  
-c-ares/libcares.pc
41  
-c-ares/libtool
42  
-c-ares/stamp-h1
43  
-c-ares/stamp-h2
  10
+/out/
  11
+/build/gyp
127  Makefile
... ...
@@ -1,119 +1,24 @@
1  
-# Copyright Joyent, Inc. and other Node contributors. All rights reserved.
2  
-#
3  
-# Permission is hereby granted, free of charge, to any person obtaining a copy
4  
-# of this software and associated documentation files (the "Software"), to
5  
-# deal in the Software without restriction, including without limitation the
6  
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7  
-# sell copies of the Software, and to permit persons to whom the Software is
8  
-# furnished to do so, subject to the following conditions:
9  
-#
10  
-# The above copyright notice and this permission notice shall be included in
11  
-# all copies or substantial portions of the Software.
12  
-#
13  
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14  
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15  
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16  
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17  
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18  
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19  
-# IN THE SOFTWARE.
  1
+BUILDTYPE ?= Release
20 2
 
21  
-uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
  3
+all: out/Makefile
  4
+	$(MAKE) -C out BUILDTYPE=$(BUILDTYPE)
22 5
 
23  
-ifdef MSVC
24  
-uname_S := MINGW
25  
-endif
  6
+out/Makefile: build/gyp
  7
+	build/gyp_uv -f make
26 8
 
27  
-CPPFLAGS += -Iinclude
  9
+build/gyp:
  10
+	svn co http://gyp.googlecode.com/svn/trunk@983 build/gyp
28 11
 
29  
-CARES_OBJS =
30  
-CARES_OBJS += src/ares/ares__close_sockets.o
31  
-CARES_OBJS += src/ares/ares__get_hostent.o
32  
-CARES_OBJS += src/ares/ares__read_line.o
33  
-CARES_OBJS += src/ares/ares__timeval.o
34  
-CARES_OBJS += src/ares/ares_cancel.o
35  
-CARES_OBJS += src/ares/ares_data.o
36  
-CARES_OBJS += src/ares/ares_destroy.o
37  
-CARES_OBJS += src/ares/ares_expand_name.o
38  
-CARES_OBJS += src/ares/ares_expand_string.o
39  
-CARES_OBJS += src/ares/ares_fds.o
40  
-CARES_OBJS += src/ares/ares_free_hostent.o
41  
-CARES_OBJS += src/ares/ares_free_string.o
42  
-CARES_OBJS += src/ares/ares_gethostbyaddr.o
43  
-CARES_OBJS += src/ares/ares_gethostbyname.o
44  
-CARES_OBJS += src/ares/ares_getnameinfo.o
45  
-CARES_OBJS += src/ares/ares_getopt.o
46  
-CARES_OBJS += src/ares/ares_getsock.o
47  
-CARES_OBJS += src/ares/ares_init.o
48  
-CARES_OBJS += src/ares/ares_library_init.o
49  
-CARES_OBJS += src/ares/ares_llist.o
50  
-CARES_OBJS += src/ares/ares_mkquery.o
51  
-CARES_OBJS += src/ares/ares_nowarn.o
52  
-CARES_OBJS += src/ares/ares_options.o
53  
-CARES_OBJS += src/ares/ares_parse_a_reply.o
54  
-CARES_OBJS += src/ares/ares_parse_aaaa_reply.o
55  
-CARES_OBJS += src/ares/ares_parse_mx_reply.o
56  
-CARES_OBJS += src/ares/ares_parse_ns_reply.o
57  
-CARES_OBJS += src/ares/ares_parse_ptr_reply.o
58  
-CARES_OBJS += src/ares/ares_parse_srv_reply.o
59  
-CARES_OBJS += src/ares/ares_parse_txt_reply.o
60  
-CARES_OBJS += src/ares/ares_process.o
61  
-CARES_OBJS += src/ares/ares_query.o
62  
-CARES_OBJS += src/ares/ares_search.o
63  
-CARES_OBJS += src/ares/ares_send.o
64  
-CARES_OBJS += src/ares/ares_strcasecmp.o
65  
-CARES_OBJS += src/ares/ares_strdup.o
66  
-CARES_OBJS += src/ares/ares_strerror.o
67  
-CARES_OBJS += src/ares/ares_timeout.o
68  
-CARES_OBJS += src/ares/ares_version.o
69  
-CARES_OBJS += src/ares/ares_writev.o
70  
-CARES_OBJS += src/ares/bitncmp.o
71  
-CARES_OBJS += src/ares/inet_net_pton.o
72  
-CARES_OBJS += src/ares/inet_ntop.o
  12
+clean:
  13
+	rm -rf out
73 14
 
74  
-ifneq (,$(findstring MINGW,$(uname_S)))
75  
-include config-mingw.mk
76  
-else
77  
-include config-unix.mk
78  
-endif
  15
+distclean:
  16
+	rm -rf out
79 17
 
80  
-TESTS=test/echo-server.c test/test-*.c
81  
-BENCHMARKS=test/echo-server.c test/dns-server.c test/benchmark-*.c
  18
+test: all
  19
+	./out/$(BUILDTYPE)/run-tests
82 20
 
83  
-all: uv.a test/run-tests test/run-benchmarks
  21
+bench: all
  22
+	./out/$(BUILDTYPE)/run-benchmarks
84 23
 
85  
-$(CARES_OBJS): %.o: %.c
86  
-	$(CC) -o $*.o -c $(CFLAGS) $(CPPFLAGS) $< -DHAVE_CONFIG_H
87  
-
88  
-test/run-tests$(E): test/*.h test/run-tests.c $(RUNNER_SRC) test/runner-unix.c $(TESTS) uv.a
89  
-	$(CC) $(CPPFLAGS) $(RUNNER_CFLAGS) $(RUNNER_LINKFLAGS) -o test/run-tests test/run-tests.c \
90  
-		test/runner.c $(RUNNER_SRC) $(TESTS) uv.a $(RUNNER_LIBS)
91  
-
92  
-test/run-benchmarks$(E): test/*.h test/run-benchmarks.c test/runner.c $(RUNNER_SRC) $(BENCHMARKS) uv.a
93  
-	$(CC) $(CPPFLAGS) $(RUNNER_CFLAGS) $(RUNNER_LINKFLAGS) -o test/run-benchmarks test/run-benchmarks.c \
94  
-		 test/runner.c $(RUNNER_SRC) $(BENCHMARKS) uv.a $(RUNNER_LIBS)
95  
-
96  
-test/echo.o: test/echo.c test/echo.h
97  
-	$(CC) $(CPPFLAGS) $(CFLAGS) -c test/echo.c -o test/echo.o
98  
-
99  
-
100  
-.PHONY: clean clean-platform distclean distclean-platform test bench
101  
-
102  
-
103  
-test: test/run-tests$(E)
104  
-	test/run-tests
105  
-
106  
-#test-%:	test/run-tests$(E)
107  
-#	test/run-tests $(@:test-%=%)
108  
-
109  
-bench: test/run-benchmarks$(E)
110  
-	test/run-benchmarks
111  
-
112  
-#bench-%:	test/run-benchmarks$(E)
113  
-#	test/run-benchmarks $(@:bench-%=%)
114  
-
115  
-clean: clean-platform
116  
-	$(RM) -f src/*.o *.a test/run-tests$(E) test/run-benchmarks$(E)
117  
-
118  
-distclean: distclean-platform
119  
-	$(RM) -f src/*.o *.a test/run-tests$(E) test/run-benchmarks$(E)
  24
+.PHONY: all clean distclean test bench
19  README
@@ -4,12 +4,25 @@ all platform differences in this library.
4 4
 
5 5
 http://nodejs.org/
6 6
 
7  
-(This was previously called liboio)
  7
+= Build Instructions
8 8
 
9  
-Supported Platforms:
  9
+The build system requires python and subversion.
  10
+
  11
+On Unix systems just type
  12
+
  13
+    make
  14
+
  15
+On Windows you can generate the MSVS solution files by running
  16
+
  17
+    create-msvs-files.bat
  18
+
  19
+Open build/all.sln afterwards.
  20
+
  21
+
  22
+= Supported Platforms
10 23
 
11 24
 Microsoft Windows operating systems since Windows XP sp2. It can be built
12  
-with either Visual Studio or MinGW.
  25
+with either Visual Studio.
13 26
 
14 27
 Linux 2.6 and MacOS using the GCC toolchain.
15 28
 
222  build/all.gyp
... ...
@@ -0,0 +1,222 @@
  1
+{
  2
+  'target_defaults': {
  3
+    'configurations': {
  4
+      'Debug': {
  5
+        'defines': [ 'DEBUG', '_DEBUG' ]
  6
+      },
  7
+      'Release': {
  8
+        'defines': [ 'NDEBUG' ]
  9
+      }
  10
+    }
  11
+  },
  12
+  'targets': [
  13
+    {
  14
+      'target_name': 'uv',
  15
+      'type': 'static_library',
  16
+      'include_dirs': [ '../include' ],
  17
+      'direct_dependent_settings': {
  18
+        'include_dirs': [ '../include' ],
  19
+      },
  20
+      'defines': [
  21
+        'HAVE_CONFIG_H'
  22
+      ],
  23
+      'sources': [
  24
+        '../src/uv-common.c',
  25
+        '../src/ares/ares__close_sockets.c',
  26
+        '../src/ares/ares__get_hostent.c',
  27
+        '../src/ares/ares__read_line.c',
  28
+        '../src/ares/ares__timeval.c',
  29
+        '../src/ares/ares_cancel.c',
  30
+        '../src/ares/ares_data.c',
  31
+        '../src/ares/ares_destroy.c',
  32
+        '../src/ares/ares_expand_name.c',
  33
+        '../src/ares/ares_expand_string.c',
  34
+        '../src/ares/ares_fds.c',
  35
+        '../src/ares/ares_free_hostent.c',
  36
+        '../src/ares/ares_free_string.c',
  37
+        '../src/ares/ares_gethostbyaddr.c',
  38
+        '../src/ares/ares_gethostbyname.c',
  39
+        '../src/ares/ares_getnameinfo.c',
  40
+        '../src/ares/ares_getopt.c',
  41
+        '../src/ares/ares_getsock.c',
  42
+        '../src/ares/ares_init.c',
  43
+        '../src/ares/ares_library_init.c',
  44
+        '../src/ares/ares_llist.c',
  45
+        '../src/ares/ares_mkquery.c',
  46
+        '../src/ares/ares_nowarn.c',
  47
+        '../src/ares/ares_options.c',
  48
+        '../src/ares/ares_parse_a_reply.c',
  49
+        '../src/ares/ares_parse_aaaa_reply.c',
  50
+        '../src/ares/ares_parse_mx_reply.c',
  51
+        '../src/ares/ares_parse_ns_reply.c',
  52
+        '../src/ares/ares_parse_ptr_reply.c',
  53
+        '../src/ares/ares_parse_srv_reply.c',
  54
+        '../src/ares/ares_parse_txt_reply.c',
  55
+        '../src/ares/ares_process.c',
  56
+        '../src/ares/ares_query.c',
  57
+        '../src/ares/ares_search.c',
  58
+        '../src/ares/ares_send.c',
  59
+        '../src/ares/ares_strcasecmp.c',
  60
+        '../src/ares/ares_strdup.c',
  61
+        '../src/ares/ares_strerror.c',
  62
+        '../src/ares/ares_timeout.c',
  63
+        '../src/ares/ares_version.c',
  64
+        '../src/ares/ares_writev.c',
  65
+        '../src/ares/bitncmp.c',
  66
+        '../src/ares/inet_net_pton.c',
  67
+        '../src/ares/inet_ntop.c',
  68
+      ],
  69
+      'conditions': [
  70
+        [ 'OS=="win"', {
  71
+          'include_dirs': [
  72
+            '../src/ares/config_win32'
  73
+          ],
  74
+          'sources': [ '../src/ares/windows_port.c' ],
  75
+          'defines': [
  76
+            '_WIN32_WINNT=0x0502',
  77
+            'EIO_STACKSIZE=262144',
  78
+            '_GNU_SOURCE',
  79
+          ],
  80
+          'sources': [
  81
+            '../src/win/async.c',
  82
+            '../src/win/cares.c',
  83
+            '../src/win/core.c',
  84
+            '../src/win/error.c',
  85
+            '../src/win/getaddrinfo.c',
  86
+            '../src/win/handle.c',
  87
+            '../src/win/loop-watcher.c',
  88
+            '../src/win/pipe.c',
  89
+            '../src/win/process.c',
  90
+            '../src/win/req.c',
  91
+            '../src/win/stdio.c',
  92
+            '../src/win/stream.c',
  93
+            '../src/win/tcp.c',
  94
+            '../src/win/timer.c',
  95
+            '../src/win/util.c',
  96
+          ]
  97
+        }, { # Not Windows i.e. POSIX
  98
+          'cflags': [
  99
+            '-g',
  100
+            '--std=gnu89',
  101
+            '-pedantic',
  102
+            '-Wall',
  103
+            '-Wextra',
  104
+            '-Wno-unused-parameter'
  105
+          ],
  106
+          'sources': [
  107
+            '../src/uv-eio.c',
  108
+            '../src/eio/eio.c',
  109
+            '../src/uv-unix.c',
  110
+            '../src/ev/ev.c',
  111
+          ],
  112
+          'include_dirs': [
  113
+            '../src/ev'
  114
+          ],
  115
+          'defines': [
  116
+            '_LARGEFILE_SOURCE',
  117
+            '_FILE_OFFSET_BITS=64',
  118
+            '_GNU_SOURCE',
  119
+            'EIO_STACKSIZE=262144'
  120
+          ],
  121
+          'libraries': [ '-lm' ]
  122
+        }],
  123
+        [ 'OS=="mac"', {
  124
+          'include_dirs': [ '../src/ares/config_darwin' ],
  125
+          'sources': [ '../src/uv-darwin.c' ],
  126
+          'direct_dependent_settings': {
  127
+            'libraries': [ '-framework CoreServices' ],
  128
+          },
  129
+          'defines': [
  130
+            'EV_CONFIG_H="config_darwin.h"',
  131
+            'EIO_CONFIG_H="config_darwin.h"',
  132
+          ]
  133
+        }],
  134
+        [ 'OS=="linux"', {
  135
+          'include_dirs': [ '../src/ares/config_linux' ],
  136
+          'sources': [ '../src/uv-linux.c' ],
  137
+          'defines': [
  138
+            'EV_CONFIG_H="config_linux.h"',
  139
+            'EIO_CONFIG_H="config_linux.h"',
  140
+          ],
  141
+          'direct_dependent_settings': {
  142
+            'libraries': [ '-lrt' ],
  143
+          },
  144
+        }],
  145
+        # TODO add OS=='sun'
  146
+      ]
  147
+    },
  148
+
  149
+    {
  150
+      'target_name': 'run-tests',
  151
+      'type': 'executable',
  152
+      'dependencies': [ 'uv' ],
  153
+      'sources': [
  154
+        '../test/runner.c',
  155
+        '../test/run-tests.c',
  156
+        '../test/test-async.c',
  157
+        '../test/echo-server.c',
  158
+        '../test/test-callback-stack.c',
  159
+        '../test/test-connection-fail.c',
  160
+        '../test/test-delayed-accept.c',
  161
+        '../test/test-fail-always.c',
  162
+        '../test/test-get-currentexe.c',
  163
+        '../test/test-getaddrinfo.c',
  164
+        '../test/test-gethostbyname.c',
  165
+        '../test/test-getsockname.c',
  166
+        '../test/test-hrtime.c',
  167
+        '../test/test-idle.c',
  168
+        '../test/test-loop-handles.c',
  169
+        '../test/test-pass-always.c',
  170
+        '../test/test-ping-pong.c',
  171
+        '../test/test-pipe-bind-error.c',
  172
+        '../test/test-ref.c',
  173
+        '../test/test-shutdown-eof.c',
  174
+        '../test/test-spawn.c',
  175
+        '../test/test-tcp-bind-error.c',
  176
+        '../test/test-tcp-bind6-error.c',
  177
+        '../test/test-tcp-writealot.c',
  178
+        '../test/test-timer-again.c',
  179
+        '../test/test-timer.c',
  180
+      ],
  181
+      'conditions': [
  182
+        [ 'OS=="win"', {
  183
+          'sources': [ '../test/runner-win.c' ],
  184
+          'libraries': [ 'ws2_32.lib' ]
  185
+        }, { # POSIX
  186
+          'defines': [ '_GNU_SOURCE' ],
  187
+          'ldflags': [ '-pthread' ],
  188
+          'sources': [ '../test/runner-unix.c' ] 
  189
+        }]
  190
+      ] 
  191
+    },
  192
+
  193
+    {
  194
+      'target_name': 'run-benchmarks',
  195
+      'type': 'executable',
  196
+      'dependencies': [ 'uv' ],
  197
+      'sources': [
  198
+        '../test/runner.c',
  199
+        '../test/run-benchmarks.c',
  200
+        '../test/echo-server.c',
  201
+        '../test/dns-server.c',
  202
+        '../test/benchmark-ares.c',
  203
+        '../test/benchmark-getaddrinfo.c',
  204
+        '../test/benchmark-ping-pongs.c',
  205
+        '../test/benchmark-pump.c',
  206
+        '../test/benchmark-sizes.c',
  207
+        '../test/benchmark-spawn.c'
  208
+      ],
  209
+      'conditions': [
  210
+        [ 'OS=="win"', {
  211
+          'sources': [ '../test/runner-win.c' ],
  212
+          'libraries': [ 'ws2_32.lib' ]
  213
+        }, { # POSIX
  214
+          'defines': [ '_GNU_SOURCE' ],
  215
+          'ldflags': [ '-pthread' ],
  216
+          'sources': [ '../test/runner-unix.c' ] 
  217
+        }]
  218
+      ] 
  219
+    }
  220
+  ]
  221
+}
  222
+
42  build/gyp_uv
... ...
@@ -0,0 +1,42 @@
  1
+#!/usr/bin/python
  2
+import glob
  3
+import os
  4
+import shlex
  5
+import sys
  6
+
  7
+script_dir = os.path.dirname(__file__)
  8
+uv_root = os.path.normpath(os.path.join(script_dir, os.pardir))
  9
+print("uv_root " + uv_root)
  10
+
  11
+sys.path.insert(0, os.path.join(uv_root, 'build', 'gyp', 'pylib'))
  12
+import gyp
  13
+
  14
+# Directory within which we want all generated files (including Makefiles)
  15
+# to be written.
  16
+output_dir = os.path.join(uv_root, 'out')
  17
+
  18
+
  19
+def run_gyp(args):
  20
+  rc = gyp.main(args)
  21
+  if rc != 0:
  22
+    print 'Error running GYP'
  23
+    sys.exit(rc)
  24
+
  25
+if __name__ == '__main__':
  26
+  args = sys.argv[1:]
  27
+
  28
+  args.append(os.path.join(script_dir, 'all.gyp'))
  29
+
  30
+  args.append('--depth=' + uv_root)
  31
+
  32
+  # There's a bug with windows which doesn't allow this feature.
  33
+  if sys.platform != 'win32':
  34
+
  35
+    # Tell gyp to write the Makefiles into output_dir
  36
+    args.extend(['--generator-output', output_dir])
  37
+
  38
+    # Tell make to write its output into the same dir
  39
+    args.extend(['-Goutput_dir=' + output_dir])
  40
+
  41
+  gyp_args = list(args)
  42
+  run_gyp(gyp_args)
67  config-mingw.mk
... ...
@@ -1,67 +0,0 @@
1  
-# Copyright Joyent, Inc. and other Node contributors. All rights reserved.
2  
-#
3  
-# Permission is hereby granted, free of charge, to any person obtaining a copy
4  
-# of this software and associated documentation files (the "Software"), to
5  
-# deal in the Software without restriction, including without limitation the
6  
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7  
-# sell copies of the Software, and to permit persons to whom the Software is
8  
-# furnished to do so, subject to the following conditions:
9  
-#
10  
-# The above copyright notice and this permission notice shall be included in
11  
-# all copies or substantial portions of the Software.
12  
-#
13  
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14  
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15  
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16  
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17  
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18  
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19  
-# IN THE SOFTWARE.
20  
-
21  
-# Use make -f Makefile.gcc PREFIX=i686-w64-mingw32-
22  
-# for cross compilation
23  
-CC = $(PREFIX)gcc
24  
-AR = $(PREFIX)ar
25  
-E=.exe
26  
-
27  
-CFLAGS=$(CPPFLAGS) -g --std=gnu89 -D_WIN32_WINNT=0x0501 -Isrc/ares/config_win32
28  
-LINKFLAGS=-lm
29  
-
30  
-CARES_OBJS += src/ares/windows_port.o
31  
-WIN_SRCS=$(wildcard src/win/*.c)
32  
-WIN_OBJS=$(WIN_SRCS:.c=.o)
33  
-
34  
-RUNNER_CFLAGS=$(CFLAGS) -D_GNU_SOURCE # Need _GNU_SOURCE for strdup?
35  
-RUNNER_LINKFLAGS=$(LINKFLAGS)
36  
-RUNNER_LIBS=-lws2_32
37  
-RUNNER_SRC=test/runner-win.c
38  
-
39  
-uv.a: $(WIN_OBJS) src/uv-common.o src/uv-eio.o src/eio/eio.o $(CARES_OBJS)
40  
-	$(AR) rcs uv.a src/win/*.o src/uv-common.o src/uv-eio.o src/eio/eio.o $(CARES_OBJS)
41  
-
42  
-src/win/%.o: src/win/%.c src/win/internal.h
43  
-	$(CC) $(CFLAGS) -o $@ -c $<
44  
-
45  
-src/uv-common.o: src/uv-common.c include/uv.h include/uv-win.h
46  
-	$(CC) $(CFLAGS) -c src/uv-common.c -o src/uv-common.o
47  
-
48  
-EIO_CPPFLAGS += $(CPPFLAGS)
49  
-EIO_CPPFLAGS += -DEIO_CONFIG_H=\"$(EIO_CONFIG)\"
50  
-EIO_CPPFLAGS += -DEIO_STACKSIZE=65536
51  
-EIO_CPPFLAGS += -D_GNU_SOURCE
52  
-
53  
-src/eio/eio.o: src/eio/eio.c
54  
-	$(CC) $(EIO_CPPFLAGS) $(CFLAGS) -c src/eio/eio.c -o src/eio/eio.o
55  
-
56  
-src/uv-eio.o: src/uv-eio.c
57  
-	$(CC) $(CPPFLAGS) -Isrc/eio/ $(CFLAGS) -c src/uv-eio.c -o src/uv-eio.o
58  
-
59  
-clean-platform:
60  
-	-rm -f src/ares/*.o
61  
-	-rm -f src/eio/*.o
62  
-	-rm -f src/win/*.o
63  
-
64  
-distclean-platform:
65  
-	-rm -f src/ares/*.o
66  
-	-rm -f src/eio/*.o
67  
-	-rm -f src/win/*.o
121  config-unix.mk
... ...
@@ -1,121 +0,0 @@
1  
-# Copyright Joyent, Inc. and other Node contributors. All rights reserved.
2  
-#
3  
-# Permission is hereby granted, free of charge, to any person obtaining a copy
4  
-# of this software and associated documentation files (the "Software"), to
5  
-# deal in the Software without restriction, including without limitation the
6  
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7  
-# sell copies of the Software, and to permit persons to whom the Software is
8  
-# furnished to do so, subject to the following conditions:
9  
-#
10  
-# The above copyright notice and this permission notice shall be included in
11  
-# all copies or substantial portions of the Software.
12  
-#
13  
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14  
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15  
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16  
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17  
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18  
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19  
-# IN THE SOFTWARE.
20  
-
21  
-CC = $(PREFIX)gcc
22  
-AR = $(PREFIX)ar
23  
-E=
24  
-CSTDFLAG=--std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter
25  
-CFLAGS=-g
26  
-CPPFLAGS += -Isrc/ev
27  
-LINKFLAGS=-lm
28  
-
29  
-CPPFLAGS += -D_LARGEFILE_SOURCE
30  
-CPPFLAGS += -D_FILE_OFFSET_BITS=64
31  
-
32  
-ifeq (SunOS,$(uname_S))
33  
-EV_CONFIG=config_sunos.h
34  
-EIO_CONFIG=config_sunos.h
35  
-CPPFLAGS += -Isrc/ares/config_sunos -D__EXTENSIONS__
36  
-LINKFLAGS+=-lsocket -lnsl
37  
-UV_OS_FILE=uv-sunos.c
38  
-endif
39  
-
40  
-ifeq (Darwin,$(uname_S))
41  
-EV_CONFIG=config_darwin.h
42  
-EIO_CONFIG=config_darwin.h
43  
-CPPFLAGS += -Isrc/ares/config_darwin
44  
-LINKFLAGS+=-framework CoreServices
45  
-UV_OS_FILE=uv-darwin.c
46  
-endif
47  
-
48  
-ifeq (Linux,$(uname_S))
49  
-EV_CONFIG=config_linux.h
50  
-EIO_CONFIG=config_linux.h
51  
-CSTDFLAG += -D_XOPEN_SOURCE=600
52  
-CPPFLAGS += -Isrc/ares/config_linux
53  
-LINKFLAGS+=-lrt
54  
-UV_OS_FILE=uv-linux.c
55  
-endif
56  
-
57  
-ifeq (FreeBSD,$(uname_S))
58  
-EV_CONFIG=config_freebsd.h
59  
-EIO_CONFIG=config_freebsd.h
60  
-CPPFLAGS += -Isrc/ares/config_freebsd
61  
-LINKFLAGS+=
62  
-UV_OS_FILE=uv-freebsd.c
63  
-endif
64  
-
65  
-ifneq (,$(findstring CYGWIN,$(uname_S)))
66  
-EV_CONFIG=config_cygwin.h
67  
-EIO_CONFIG=config_cygwin.h
68  
-# We drop the --std=c89, it hides CLOCK_MONOTONIC on cygwin
69  
-CSTDFLAG = -D_GNU_SOURCE
70  
-CPPFLAGS += -Isrc/ares/config_cygwin
71  
-LINKFLAGS+=
72  
-UV_OS_FILE=uv-cygwin.c
73  
-endif
74  
-
75  
-# Need _GNU_SOURCE for strdup?
76  
-RUNNER_CFLAGS=$(CFLAGS) -D_GNU_SOURCE
77  
-
78  
-RUNNER_LINKFLAGS=$(LINKFLAGS) -pthread
79  
-RUNNER_LIBS=
80  
-RUNNER_SRC=test/runner-unix.c
81  
-
82  
-uv.a: src/uv-unix.o src/uv-common.o src/uv-platform.o src/ev/ev.o src/uv-eio.o src/eio/eio.o $(CARES_OBJS)
83  
-	$(AR) rcs uv.a src/uv-unix.o src/uv-platform.o src/uv-common.o src/uv-eio.o src/ev/ev.o \
84  
-		src/eio/eio.o $(CARES_OBJS)
85  
-
86  
-src/uv-platform.o: src/$(UV_OS_FILE) include/uv.h include/uv-unix.h
87  
-	$(CC) $(CSTDFLAG) $(CPPFLAGS) $(CFLAGS) -c src/$(UV_OS_FILE) -o src/uv-platform.o
88  
-
89  
-src/uv-unix.o: src/uv-unix.c include/uv.h include/uv-unix.h
90  
-	$(CC) $(CSTDFLAG) $(CPPFLAGS) -Ieio $(CFLAGS) -c src/uv-unix.c -o src/uv-unix.o
91  
-
92  
-src/uv-common.o: src/uv-common.c include/uv.h include/uv-unix.h
93  
-	$(CC) $(CSTDFLAG) $(CPPFLAGS) $(CFLAGS) -c src/uv-common.c -o src/uv-common.o
94  
-
95  
-src/ev/ev.o: src/ev/ev.c
96  
-	$(CC) $(CPPFLAGS) $(CFLAGS) -c src/ev/ev.c -o src/ev/ev.o -DEV_CONFIG_H=\"$(EV_CONFIG)\"
97  
-
98  
-
99  
-EIO_CPPFLAGS += $(CPPFLAGS)
100  
-EIO_CPPFLAGS += -DEIO_CONFIG_H=\"$(EIO_CONFIG)\"
101  
-EIO_CPPFLAGS += -DEIO_STACKSIZE=262144
102  
-EIO_CPPFLAGS += -D_GNU_SOURCE
103  
-
104  
-src/eio/eio.o: src/eio/eio.c
105  
-	$(CC) $(EIO_CPPFLAGS) $(CFLAGS) -c src/eio/eio.c -o src/eio/eio.o
106  
-
107  
-src/uv-eio.o: src/uv-eio.c
108  
-	$(CC) $(CPPFLAGS) -Isrc/eio/ $(CSTDFLAG) $(CFLAGS) -c src/uv-eio.c -o src/uv-eio.o
109  
-
110  
-
111  
-clean-platform:
112  
-	-rm -f src/ares/*.o
113  
-	-rm -f src/ev/*.o
114  
-	-rm -f src/eio/*.o
115  
-	-rm -rf test/run-tests.dSYM run-benchmarks.dSYM
116  
-
117  
-distclean-platform:
118  
-	-rm -f src/ares/*.o
119  
-	-rm -f src/ev/*.o
120  
-	-rm -f src/eio/*.o
121  
-	-rm -rf test/run-tests.dSYM run-benchmarks.dSYM
14  create-msvs-files.bat
... ...
@@ -0,0 +1,14 @@
  1
+@REM Hello World
  2
+
  3
+cd %~dp0
  4
+
  5
+IF EXIST %~dp0build\gyp GOTO WINDIR
  6
+
  7
+
  8
+svn co http://gyp.googlecode.com/svn/trunk@983 build/gyp
  9
+
  10
+:WINDIR
  11
+
  12
+@python build\gyp_uv
  13
+
  14
+
2  include/uv-win.h
@@ -20,7 +20,7 @@
20 20
  */
21 21
 
22 22
 #ifndef _WIN32_WINNT
23  
-# define _WIN32_WINNT   0x0501
  23
+# define _WIN32_WINNT   0x0502
24 24
 #endif
25 25
 
26 26
 #include <stdint.h>
189  msvs/c-ares.vcxproj
... ...
@@ -1,189 +0,0 @@
1  
-<?xml version="1.0" encoding="utf-8"?>
2  
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3  
-  <ItemGroup Label="ProjectConfigurations">
4  
-    <ProjectConfiguration Include="Debug|Win32">
5  
-      <Configuration>Debug</Configuration>
6  
-      <Platform>Win32</Platform>
7  
-    </ProjectConfiguration>
8  
-    <ProjectConfiguration Include="Debug|x64">
9  
-      <Configuration>Debug</Configuration>
10  
-      <Platform>x64</Platform>
11  
-    </ProjectConfiguration>
12  
-    <ProjectConfiguration Include="Release|Win32">
13  
-      <Configuration>Release</Configuration>
14  
-      <Platform>Win32</Platform>
15  
-    </ProjectConfiguration>
16  
-    <ProjectConfiguration Include="Release|x64">
17  
-      <Configuration>Release</Configuration>
18  
-      <Platform>x64</Platform>
19  
-    </ProjectConfiguration>
20  
-  </ItemGroup>
21  
-  <PropertyGroup Label="Globals">
22  
-    <Keyword>Win32Proj</Keyword>
23  
-  </PropertyGroup>
24  
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
25  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
26  
-    <ConfigurationType>StaticLibrary</ConfigurationType>
27  
-    <UseDebugLibraries>true</UseDebugLibraries>
28  
-  </PropertyGroup>
29  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
30  
-    <ConfigurationType>StaticLibrary</ConfigurationType>
31  
-    <UseDebugLibraries>true</UseDebugLibraries>
32  
-  </PropertyGroup>
33  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
34  
-    <ConfigurationType>StaticLibrary</ConfigurationType>
35  
-    <UseDebugLibraries>false</UseDebugLibraries>
36  
-  </PropertyGroup>
37  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
38  
-    <ConfigurationType>StaticLibrary</ConfigurationType>
39  
-    <UseDebugLibraries>false</UseDebugLibraries>
40  
-  </PropertyGroup>
41  
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
42  
-  <ImportGroup Label="ExtensionSettings">
43  
-  </ImportGroup>
44  
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
45  
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
46  
-  </ImportGroup>
47  
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
48  
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
49  
-  </ImportGroup>
50  
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
51  
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
52  
-  </ImportGroup>
53  
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
54  
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
55  
-  </ImportGroup>
56  
-  <PropertyGroup Label="UserMacros" />
57  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
58  
-    <OutDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</OutDir>
59  
-    <IntDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</IntDir>
60  
-  </PropertyGroup>
61  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
62  
-    <OutDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</OutDir>
63  
-    <IntDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</IntDir>
64  
-  </PropertyGroup>
65  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
66  
-    <OutDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</OutDir>
67  
-    <IntDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</IntDir>
68  
-  </PropertyGroup>
69  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
70  
-    <OutDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</OutDir>
71  
-    <IntDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</IntDir>
72  
-  </PropertyGroup>
73  
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
74  
-    <ClCompile>
75  
-      <PreprocessorDefinitions>WIN32;HAVE_CONFIG_H;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
76  
-      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
77  
-      <WarningLevel>Level3</WarningLevel>
78  
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
79  
-      <Optimization>Disabled</Optimization>
80  
-      <AdditionalIncludeDirectories>..\include;..\src\ares\config_win32</AdditionalIncludeDirectories>
81  
-    </ClCompile>
82  
-  </ItemDefinitionGroup>
83  
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
84  
-    <ClCompile>
85  
-      <PreprocessorDefinitions>WIN32;HAVE_CONFIG_H;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
86  
-      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
87  
-      <WarningLevel>Level3</WarningLevel>
88  
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
89  
-      <Optimization>Disabled</Optimization>
90  
-      <AdditionalIncludeDirectories>..\include;..\src\ares\config_win32</AdditionalIncludeDirectories>
91  
-    </ClCompile>
92  
-  </ItemDefinitionGroup>
93  
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
94  
-    <ClCompile>
95  
-      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
96  
-      <AdditionalIncludeDirectories>..\include;..\src\ares\config_win32</AdditionalIncludeDirectories>
97  
-      <PreprocessorDefinitions>WIN32;HAVE_CONFIG_H;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
98  
-      <WholeProgramOptimization>true</WholeProgramOptimization>
99  
-      <OmitFramePointers>true</OmitFramePointers>
100  
-    </ClCompile>
101  
-    <Lib>
102  
-      <LinkTimeCodeGeneration>true</LinkTimeCodeGeneration>
103  
-    </Lib>
104  
-  </ItemDefinitionGroup>
105  
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
106  
-    <ClCompile>
107  
-      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
108  
-      <AdditionalIncludeDirectories>..\include;..\src\ares\config_win32</AdditionalIncludeDirectories>
109  
-      <PreprocessorDefinitions>WIN32;HAVE_CONFIG_H;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
110  
-      <WholeProgramOptimization>true</WholeProgramOptimization>
111  
-      <OmitFramePointers>true</OmitFramePointers>
112  
-    </ClCompile>
113  
-    <Lib>
114  
-      <LinkTimeCodeGeneration>true</LinkTimeCodeGeneration>
115  
-    </Lib>
116  
-  </ItemDefinitionGroup>
117  
-  <ItemGroup>
118  
-    <ClCompile Include="..\src\ares\ares__close_sockets.c" />
119  
-    <ClCompile Include="..\src\ares\ares__get_hostent.c" />
120  
-    <ClCompile Include="..\src\ares\ares__read_line.c" />
121  
-    <ClCompile Include="..\src\ares\ares__timeval.c" />
122  
-    <ClCompile Include="..\src\ares\ares_cancel.c" />
123  
-    <ClCompile Include="..\src\ares\ares_data.c" />
124  
-    <ClCompile Include="..\src\ares\ares_destroy.c" />
125  
-    <ClCompile Include="..\src\ares\ares_expand_name.c" />
126  
-    <ClCompile Include="..\src\ares\ares_expand_string.c" />
127  
-    <ClCompile Include="..\src\ares\ares_fds.c" />
128  
-    <ClCompile Include="..\src\ares\ares_free_hostent.c" />
129  
-    <ClCompile Include="..\src\ares\ares_free_string.c" />
130  
-    <ClCompile Include="..\src\ares\ares_gethostbyaddr.c" />
131  
-    <ClCompile Include="..\src\ares\ares_gethostbyname.c" />
132  
-    <ClCompile Include="..\src\ares\ares_getnameinfo.c" />
133  
-    <ClCompile Include="..\src\ares\ares_getsock.c" />
134  
-    <ClCompile Include="..\src\ares\ares_init.c" />
135  
-    <ClCompile Include="..\src\ares\ares_library_init.c" />
136  
-    <ClCompile Include="..\src\ares\ares_llist.c" />
137  
-    <ClCompile Include="..\src\ares\ares_mkquery.c" />
138  
-    <ClCompile Include="..\src\ares\ares_nowarn.c" />
139  
-    <ClCompile Include="..\src\ares\ares_options.c" />
140  
-    <ClCompile Include="..\src\ares\ares_parse_a_reply.c" />
141  
-    <ClCompile Include="..\src\ares\ares_parse_aaaa_reply.c" />
142  
-    <ClCompile Include="..\src\ares\ares_parse_mx_reply.c" />
143  
-    <ClCompile Include="..\src\ares\ares_parse_ns_reply.c" />
144  
-    <ClCompile Include="..\src\ares\ares_parse_ptr_reply.c" />
145  
-    <ClCompile Include="..\src\ares\ares_parse_srv_reply.c" />
146  
-    <ClCompile Include="..\src\ares\ares_parse_txt_reply.c" />
147  
-    <ClCompile Include="..\src\ares\ares_process.c" />
148  
-    <ClCompile Include="..\src\ares\ares_query.c" />
149  
-    <ClCompile Include="..\src\ares\ares_search.c" />
150  
-    <ClCompile Include="..\src\ares\ares_send.c" />
151  
-    <ClCompile Include="..\src\ares\ares_strcasecmp.c" />
152  
-    <ClCompile Include="..\src\ares\ares_strdup.c" />
153  
-    <ClCompile Include="..\src\ares\ares_strerror.c" />
154  
-    <ClCompile Include="..\src\ares\ares_timeout.c" />
155  
-    <ClCompile Include="..\src\ares\ares_version.c" />
156  
-    <ClCompile Include="..\src\ares\ares_writev.c" />
157  
-    <ClCompile Include="..\src\ares\bitncmp.c" />
158  
-    <ClCompile Include="..\src\ares\inet_net_pton.c" />
159  
-    <ClCompile Include="..\src\ares\inet_ntop.c" />
160  
-    <ClCompile Include="..\src\ares\windows_port.c" />
161  
-  </ItemGroup>
162  
-  <ItemGroup>
163  
-    <ClInclude Include="..\include\ares.h" />
164  
-    <ClInclude Include="..\include\ares_version.h" />
165  
-    <ClInclude Include="..\src\ares\ares_data.h" />
166  
-    <ClInclude Include="..\src\ares\ares_dns.h" />
167  
-    <ClInclude Include="..\src\ares\ares_iphlpapi.h" />
168  
-    <ClInclude Include="..\src\ares\ares_ipv6.h" />
169  
-    <ClInclude Include="..\src\ares\ares_library_init.h" />
170  
-    <ClInclude Include="..\src\ares\ares_llist.h" />
171  
-    <ClInclude Include="..\src\ares\ares_nowarn.h" />
172  
-    <ClInclude Include="..\src\ares\ares_private.h" />
173  
-    <ClInclude Include="..\src\ares\ares_rules.h" />
174  
-    <ClInclude Include="..\src\ares\ares_setup.h" />
175  
-    <ClInclude Include="..\src\ares\ares_strcasecmp.h" />
176  
-    <ClInclude Include="..\src\ares\ares_strdup.h" />
177  
-    <ClInclude Include="..\src\ares\ares_version.h" />
178  
-    <ClInclude Include="..\src\ares\ares_writev.h" />
179  
-    <ClInclude Include="..\src\ares\bitncmp.h" />
180  
-    <ClInclude Include="..\src\ares\config_win32\ares_config.h" />
181  
-    <ClInclude Include="..\src\ares\inet_net_pton.h" />
182  
-    <ClInclude Include="..\src\ares\inet_ntop.h" />
183  
-    <ClInclude Include="..\src\ares\nameser.h" />
184  
-    <ClInclude Include="..\src\ares\setup_once.h" />
185  
-  </ItemGroup>
186  
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
187  
-  <ImportGroup Label="ExtensionTargets">
188  
-  </ImportGroup>
189  
-</Project>
171  msvs/libuv-benchmark.vcxproj
... ...
@@ -1,171 +0,0 @@
1  
-<?xml version="1.0" encoding="utf-8"?>
2  
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3  
-  <ItemGroup Label="ProjectConfigurations">
4  
-    <ProjectConfiguration Include="Debug|Win32">
5  
-      <Configuration>Debug</Configuration>
6  
-      <Platform>Win32</Platform>
7  
-    </ProjectConfiguration>
8  
-    <ProjectConfiguration Include="Debug|x64">
9  
-      <Configuration>Debug</Configuration>
10  
-      <Platform>x64</Platform>
11  
-    </ProjectConfiguration>
12  
-    <ProjectConfiguration Include="Release|Win32">
13  
-      <Configuration>Release</Configuration>
14  
-      <Platform>Win32</Platform>
15  
-    </ProjectConfiguration>
16  
-    <ProjectConfiguration Include="Release|x64">
17  
-      <Configuration>Release</Configuration>
18  
-      <Platform>x64</Platform>
19  
-    </ProjectConfiguration>
20  
-  </ItemGroup>
21  
-  <PropertyGroup Label="Globals">
22  
-    <Keyword>Win32Proj</Keyword>
23  
-  </PropertyGroup>
24  
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
25  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
26  
-    <ConfigurationType>Application</ConfigurationType>
27  
-    <UseDebugLibraries>true</UseDebugLibraries>
28  
-  </PropertyGroup>
29  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
30  
-    <ConfigurationType>Application</ConfigurationType>
31  
-    <UseDebugLibraries>true</UseDebugLibraries>
32  
-  </PropertyGroup>
33  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
34  
-    <ConfigurationType>Application</ConfigurationType>
35  
-    <UseDebugLibraries>false</UseDebugLibraries>
36  
-  </PropertyGroup>
37  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
38  
-    <ConfigurationType>Application</ConfigurationType>
39  
-    <UseDebugLibraries>false</UseDebugLibraries>
40  
-  </PropertyGroup>
41  
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
42  
-  <ImportGroup Label="ExtensionSettings">
43  
-  </ImportGroup>
44  
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
45  
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
46  
-  </ImportGroup>
47  
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
48  
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
49  
-  </ImportGroup>
50  
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
51  
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
52  
-  </ImportGroup>
53  
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
54  
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
55  
-  </ImportGroup>
56  
-  <PropertyGroup Label="UserMacros" />
57  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
58  
-    <IntDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</IntDir>
59  
-    <OutDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</OutDir>
60  
-  </PropertyGroup>
61  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
62  
-    <IntDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</IntDir>
63  
-    <OutDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</OutDir>
64  
-  </PropertyGroup>
65  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
66  
-    <IntDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</IntDir>
67  
-    <OutDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</OutDir>
68  
-  </PropertyGroup>
69  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
70  
-    <IntDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</IntDir>
71  
-    <OutDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</OutDir>
72  
-  </PropertyGroup>
73  
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
74  
-    <ClCompile>
75  
-      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
76  
-      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
77  
-      <WarningLevel>Level3</WarningLevel>
78  
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
79  
-      <Optimization>Disabled</Optimization>
80  
-      <AdditionalIncludeDirectories>..\include;..\src\ares\config_win32</AdditionalIncludeDirectories>
81  
-    </ClCompile>
82  
-    <Link>
83  
-      <TargetMachine>MachineX86</TargetMachine>
84  
-      <GenerateDebugInformation>true</GenerateDebugInformation>
85  
-      <SubSystem>Console</SubSystem>
86  
-      <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
87  
-    </Link>
88  
-  </ItemDefinitionGroup>
89  
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
90  
-    <ClCompile>
91  
-      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
92  
-      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
93  
-      <WarningLevel>Level3</WarningLevel>
94  
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
95  
-      <Optimization>Disabled</Optimization>
96  
-      <AdditionalIncludeDirectories>..\include;..\src\ares\config_win32</AdditionalIncludeDirectories>
97  
-    </ClCompile>
98  
-    <Link>
99  
-      <GenerateDebugInformation>true</GenerateDebugInformation>
100  
-      <SubSystem>Console</SubSystem>
101  
-      <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
102  
-    </Link>
103  
-  </ItemDefinitionGroup>
104  
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
105  
-    <ClCompile>
106  
-      <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
107  
-      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
108  
-      <WarningLevel>Level3</WarningLevel>
109  
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
110  
-      <AdditionalIncludeDirectories>..\include;..\src\ares\config_win32</AdditionalIncludeDirectories>
111  
-      <WholeProgramOptimization>true</WholeProgramOptimization>
112  
-      <OmitFramePointers>true</OmitFramePointers>
113  
-    </ClCompile>
114  
-    <Link>
115  
-      <TargetMachine>MachineX86</TargetMachine>
116  
-      <GenerateDebugInformation>true</GenerateDebugInformation>
117  
-      <SubSystem>Console</SubSystem>
118  
-      <EnableCOMDATFolding>true</EnableCOMDATFolding>
119  
-      <OptimizeReferences>true</OptimizeReferences>
120  
-      <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
121  
-      <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
122  
-    </Link>
123  
-  </ItemDefinitionGroup>
124  
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
125  
-    <ClCompile>
126  
-      <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
127  
-      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
128  
-      <WarningLevel>Level3</WarningLevel>
129  
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
130  
-      <AdditionalIncludeDirectories>..\include;..\src\ares\config_win32</AdditionalIncludeDirectories>
131  
-      <WholeProgramOptimization>true</WholeProgramOptimization>
132  
-      <OmitFramePointers>true</OmitFramePointers>
133  
-    </ClCompile>
134  
-    <Link>
135  
-      <GenerateDebugInformation>true</GenerateDebugInformation>
136  
-      <SubSystem>Console</SubSystem>
137  
-      <EnableCOMDATFolding>true</EnableCOMDATFolding>
138  
-      <OptimizeReferences>true</OptimizeReferences>
139  
-      <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
140  
-      <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
141  
-    </Link>
142  
-  </ItemDefinitionGroup>
143  
-  <ItemGroup>
144  
-    <ClCompile Include="..\test\benchmark-ares.c" />
145  
-    <ClCompile Include="..\test\benchmark-getaddrinfo.c" />
146  
-    <ClCompile Include="..\test\benchmark-ping-pongs.c" />
147  
-    <ClCompile Include="..\test\benchmark-pound.c" />
148  
-    <ClCompile Include="..\test\benchmark-pump.c" />
149  
-    <ClCompile Include="..\test\benchmark-sizes.c" />
150  
-    <ClCompile Include="..\test\benchmark-spawn.c" />
151  
-    <ClCompile Include="..\test\dns-server.c" />
152  
-    <ClCompile Include="..\test\echo-server.c" />
153  
-    <ClCompile Include="..\test\run-benchmarks.c" />
154  
-    <ClCompile Include="..\test\runner-win.c" />
155  
-    <ClCompile Include="..\test\runner.c" />
156  
-  </ItemGroup>
157  
-  <ItemGroup>
158  
-    <ClInclude Include="..\test\benchmark-list.h" />
159  
-    <ClInclude Include="..\test\runner-win.h" />
160  
-    <ClInclude Include="..\test\runner.h" />
161  
-    <ClInclude Include="..\test\task.h" />
162  
-  </ItemGroup>
163  
-  <ItemGroup>
164  
-    <ProjectReference Include="libuv.vcxproj">
165  
-      <Project>{301fe650-cd34-14e5-6b63-42e383fa02bc}</Project>
166  
-    </ProjectReference>
167  
-  </ItemGroup>
168  
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
169  
-  <ImportGroup Label="ExtensionTargets">
170  
-  </ImportGroup>
171  
-</Project>
187  msvs/libuv-test.vcxproj
... ...
@@ -1,187 +0,0 @@
1  
-<?xml version="1.0" encoding="utf-8"?>
2  
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3  
-  <ItemGroup Label="ProjectConfigurations">
4  
-    <ProjectConfiguration Include="Debug|Win32">
5  
-      <Configuration>Debug</Configuration>
6  
-      <Platform>Win32</Platform>
7  
-    </ProjectConfiguration>
8  
-    <ProjectConfiguration Include="Debug|x64">
9  
-      <Configuration>Debug</Configuration>
10  
-      <Platform>x64</Platform>
11  
-    </ProjectConfiguration>
12  
-    <ProjectConfiguration Include="Release|Win32">
13  
-      <Configuration>Release</Configuration>
14  
-      <Platform>Win32</Platform>
15  
-    </ProjectConfiguration>
16  
-    <ProjectConfiguration Include="Release|x64">
17  
-      <Configuration>Release</Configuration>
18  
-      <Platform>x64</Platform>
19  
-    </ProjectConfiguration>
20  
-  </ItemGroup>
21  
-  <PropertyGroup Label="Globals">
22  
-    <Keyword>Win32Proj</Keyword>
23  
-    <ProjectGuid>{1D7C3F6C-A4AF-DD73-2D20-B2FC919B3744}</ProjectGuid>
24  
-  </PropertyGroup>
25  
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
26  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
27  
-    <ConfigurationType>Application</ConfigurationType>
28  
-    <UseDebugLibraries>true</UseDebugLibraries>
29  
-  </PropertyGroup>
30  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
31  
-    <ConfigurationType>Application</ConfigurationType>
32  
-    <UseDebugLibraries>true</UseDebugLibraries>
33  
-  </PropertyGroup>
34  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35  
-    <ConfigurationType>Application</ConfigurationType>
36  
-    <UseDebugLibraries>false</UseDebugLibraries>
37  
-  </PropertyGroup>
38  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
39  
-    <ConfigurationType>Application</ConfigurationType>
40  
-    <UseDebugLibraries>false</UseDebugLibraries>
41  
-  </PropertyGroup>
42  
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
43  
-  <ImportGroup Label="ExtensionSettings">
44  
-  </ImportGroup>
45  
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
46  
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
47  
-  </ImportGroup>
48  
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
49  
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
50  
-  </ImportGroup>
51  
-  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
52  
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
53  
-  </ImportGroup>
54  
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
55  
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
56  
-  </ImportGroup>
57  
-  <PropertyGroup Label="UserMacros" />
58  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
59  
-    <IntDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</IntDir>
60  
-    <OutDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</OutDir>
61  
-  </PropertyGroup>
62  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
63  
-    <IntDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</IntDir>
64  
-    <OutDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</OutDir>
65  
-  </PropertyGroup>
66  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
67  
-    <IntDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</IntDir>
68  
-    <OutDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</OutDir>
69  
-  </PropertyGroup>
70  
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
71  
-    <IntDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</IntDir>
72  
-    <OutDir>$(SolutionDir)..\build\$(Platform)\$(Configuration)\</OutDir>
73  
-  </PropertyGroup>
74  
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
75  
-    <ClCompile>
76  
-      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
77  
-      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
78  
-      <WarningLevel>Level3</WarningLevel>
79  
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
80  
-      <Optimization>Disabled</Optimization>
81  
-      <AdditionalIncludeDirectories>..\include;..\src\ares\config_win32</AdditionalIncludeDirectories>
82  
-    </ClCompile>
83  
-    <Link>
84  
-      <TargetMachine>MachineX86</TargetMachine>
85  
-      <GenerateDebugInformation>true</GenerateDebugInformation>
86  
-      <SubSystem>Console</SubSystem>
87  
-      <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
88  
-    </Link>
89  
-  </ItemDefinitionGroup>
90  
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
91  
-    <ClCompile>
92  
-      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
93  
-      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
94  
-      <WarningLevel>Level3</WarningLevel>
95  
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
96  
-      <Optimization>Disabled</Optimization>
97  
-      <AdditionalIncludeDirectories>..\include;..\src\ares\config_win32</AdditionalIncludeDirectories>
98  
-    </ClCompile>
99  
-    <Link>
100  
-      <GenerateDebugInformation>true</GenerateDebugInformation>
101  
-      <SubSystem>Console</SubSystem>
102  
-      <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
103  
-    </Link>
104  
-  </ItemDefinitionGroup>
105  
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
106  
-    <ClCompile>
107  
-      <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
108  
-      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
109  
-      <WarningLevel>Level3</WarningLevel>
110  
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
111  
-      <AdditionalIncludeDirectories>..\include;..\src\ares\config_win32</AdditionalIncludeDirectories>
112  
-      <WholeProgramOptimization>true</WholeProgramOptimization>
113  
-      <OmitFramePointers>true</OmitFramePointers>
114  
-    </ClCompile>
115  
-    <Link>
116  
-      <TargetMachine>MachineX86</TargetMachine>
117  
-      <GenerateDebugInformation>true</GenerateDebugInformation>
118  
-      <SubSystem>Console</SubSystem>
119  
-      <EnableCOMDATFolding>true</EnableCOMDATFolding>
120  
-      <OptimizeReferences>true</OptimizeReferences>
121  
-      <AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
122  
-      <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
123  
-    </Link>
124  
-  </ItemDefinitionGroup>
125  
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
126  
-    <ClCompile>
127  
-      <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
128  
-      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
129  
-      <WarningLevel>Level3</WarningLevel>
130  
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
131  
-      <AdditionalIncludeDirectories>..\include;..\src\ares\config_win32</AdditionalIncludeDirectories>