Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 304 lines (299 sloc) 8.98 kB
e89f54e @ry Add forgotten gyp files
ry authored
1 {
2 'targets': [
3 {
4 'target_name': 'uv',
5 'type': '<(library)',
6 'include_dirs': [ 'include' ],
7 'direct_dependent_settings': {
8 'include_dirs': [ 'include' ],
9 },
10
11 'defines': [
12 'HAVE_CONFIG_H'
13 ],
14 'sources': [
15 'include/ares.h',
16 'include/ares_version.h',
17 'include/uv.h',
18 'src/uv-common.c',
19 'src/uv-common.h',
20 'src/ares/ares__close_sockets.c',
21 'src/ares/ares__get_hostent.c',
22 'src/ares/ares__read_line.c',
23 'src/ares/ares__timeval.c',
24 'src/ares/ares_cancel.c',
25 'src/ares/ares_data.c',
26 'src/ares/ares_data.h',
27 'src/ares/ares_destroy.c',
28 'src/ares/ares_dns.h',
29 'src/ares/ares_expand_name.c',
30 'src/ares/ares_expand_string.c',
31 'src/ares/ares_fds.c',
32 'src/ares/ares_free_hostent.c',
33 'src/ares/ares_free_string.c',
34 'src/ares/ares_gethostbyaddr.c',
35 'src/ares/ares_gethostbyname.c',
36 'src/ares/ares_getnameinfo.c',
37 'src/ares/ares_getopt.c',
38 'src/ares/ares_getopt.h',
39 'src/ares/ares_getsock.c',
40 'src/ares/ares_init.c',
41 'src/ares/ares_ipv6.h',
42 'src/ares/ares_library_init.c',
43 'src/ares/ares_library_init.h',
44 'src/ares/ares_llist.c',
45 'src/ares/ares_llist.h',
46 'src/ares/ares_mkquery.c',
47 'src/ares/ares_nowarn.c',
48 'src/ares/ares_nowarn.h',
49 'src/ares/ares_options.c',
50 'src/ares/ares_parse_a_reply.c',
51 'src/ares/ares_parse_aaaa_reply.c',
52 'src/ares/ares_parse_mx_reply.c',
53 'src/ares/ares_parse_ns_reply.c',
54 'src/ares/ares_parse_ptr_reply.c',
55 'src/ares/ares_parse_srv_reply.c',
56 'src/ares/ares_parse_txt_reply.c',
57 'src/ares/ares_private.h',
58 'src/ares/ares_process.c',
59 'src/ares/ares_query.c',
60 'src/ares/ares_rules.h',
61 'src/ares/ares_search.c',
62 'src/ares/ares_send.c',
63 'src/ares/ares_setup.h',
64 'src/ares/ares_strcasecmp.c',
65 'src/ares/ares_strcasecmp.h',
66 'src/ares/ares_strdup.c',
67 'src/ares/ares_strdup.h',
68 'src/ares/ares_strerror.c',
69 'src/ares/ares_timeout.c',
70 'src/ares/ares_version.c',
71 'src/ares/ares_writev.c',
72 'src/ares/ares_writev.h',
73 'src/ares/bitncmp.c',
74 'src/ares/bitncmp.h',
75 'src/ares/inet_net_pton.c',
76 'src/ares/inet_net_pton.h',
77 'src/ares/inet_ntop.c',
78 'src/ares/inet_ntop.h',
79 'src/ares/nameser.h',
80 'src/ares/setup_once.h',
81 ],
82 'conditions': [
83 [ 'OS=="win"', {
84 'include_dirs': [
85 'src/ares/config_win32'
86 ],
87 'sources': [ 'src/ares/windows_port.c' ],
88 'defines': [
89 '_WIN32_WINNT=0x0502',
90 'EIO_STACKSIZE=262144',
91 '_GNU_SOURCE',
92 ],
93 'sources': [
94 'include/tree.h',
95 'include/uv-win.h',
96 'src/ares/config_win32/ares_config.h',
97 'src/win/async.c',
98 'src/win/cares.c',
99 'src/win/core.c',
100 'src/win/error.c',
101 'src/win/getaddrinfo.c',
102 'src/win/handle.c',
103 'src/win/internal.h',
104 'src/win/loop-watcher.c',
105 'src/win/pipe.c',
106 'src/win/process.c',
107 'src/win/req.c',
108 'src/win/stdio.c',
109 'src/win/stream.c',
110 'src/win/tcp.c',
111 'src/win/timer.c',
112 'src/win/util.c',
113 'src/win/winapi.c',
48a8f19 @piscisaureus win: merge kernel32.h and ntdll.h; declare pointers in winapi.h
piscisaureus authored
114 'src/win/winapi.h',
d1a63c4 @piscisaureus win: move winsock intialization out of tcp.c
piscisaureus authored
115 'src/win/winsock.c',
116 'src/win/winsock.h',
e89f54e @ry Add forgotten gyp files
ry authored
117 ],
118 'link_settings': {
119 'libraries': [
120 '-lws2_32.lib',
121 ],
122 },
123 }, { # Not Windows i.e. POSIX
124 'cflags': [
125 '-g',
126 '--std=gnu89',
127 '-pedantic',
128 '-Wall',
129 '-Wextra',
130 '-Wno-unused-parameter'
131 ],
132 'sources': [
133 'include/eio.h',
134 'include/ev.h',
135 'include/ngx-queue.h',
136 'include/uv-unix.h',
137 'src/uv-eio.c',
138 'src/uv-eio.h',
139 'src/uv-unix.c',
140 'src/ares/config_cygwin/ares_config.h',
141 'src/ares/config_darwin/ares_config.h',
142 'src/ares/config_freebsd/ares_config.h',
143 'src/ares/config_linux/ares_config.h',
144 'src/ares/config_openbsd/ares_config.h',
145 'src/ares/config_sunos/ares_config.h',
146 'src/eio/config_cygwin.h',
147 'src/eio/config_darwin.h',
148 'src/eio/config_freebsd.h',
149 'src/eio/config_linux.h',
150 'src/eio/config_sunos.h',
151 'src/eio/ecb.h',
152 'src/eio/eio.c',
153 'src/eio/xthread.h',
154 'src/ev/config_cygwin.h',
155 'src/ev/config_darwin.h',
156 'src/ev/config_freebsd.h',
157 'src/ev/config_linux.h',
158 'src/ev/config_sunos.h',
159 'src/ev/ev.c',
160 'src/ev/ev_vars.h',
161 'src/ev/ev_wrap.h',
162 'src/ev/event.h',
163 ],
164 'include_dirs': [
165 'src/ev'
166 ],
167 'defines': [
168 '_LARGEFILE_SOURCE',
169 '_FILE_OFFSET_BITS=64',
170 '_GNU_SOURCE',
171 'EIO_STACKSIZE=262144'
172 ],
173 'libraries': [ '-lm' ]
174 }],
175 [ 'OS=="mac"', {
176 'include_dirs': [ 'src/ares/config_darwin' ],
177 'sources': [ 'src/uv-darwin.c' ],
178 'direct_dependent_settings': {
179 'libraries': [ '-framework CoreServices' ],
180 },
181 'defines': [
182 'EV_CONFIG_H="config_darwin.h"',
183 'EIO_CONFIG_H="config_darwin.h"',
184 ]
185 }],
186 [ 'OS=="linux"', {
187 'include_dirs': [ 'src/ares/config_linux' ],
188 'sources': [ 'src/uv-linux.c' ],
189 'defines': [
190 'EV_CONFIG_H="config_linux.h"',
191 'EIO_CONFIG_H="config_linux.h"',
192 ],
193 'direct_dependent_settings': {
194 'libraries': [ '-lrt' ],
195 },
196 }],
197 # TODO add OS=='sun'
198 ]
199 },
200
201 {
202 'target_name': 'run-tests',
203 'type': 'executable',
204 'dependencies': [ 'uv' ],
205 'sources': [
206 'test/echo-server.c',
207 'test/run-tests.c',
208 'test/runner.c',
209 'test/runner.h',
210 'test/task.h',
211 'test/test-async.c',
212 'test/test-callback-stack.c',
213 'test/test-connection-fail.c',
214 'test/test-delayed-accept.c',
215 'test/test-fail-always.c',
216 'test/test-get-currentexe.c',
217 'test/test-getaddrinfo.c',
218 'test/test-gethostbyname.c',
219 'test/test-getsockname.c',
220 'test/test-hrtime.c',
221 'test/test-idle.c',
222 'test/test-list.h',
223 'test/test-loop-handles.c',
224 'test/test-pass-always.c',
225 'test/test-ping-pong.c',
226 'test/test-pipe-bind-error.c',
227 'test/test-ref.c',
228 'test/test-shutdown-eof.c',
229 'test/test-spawn.c',
230 'test/test-tcp-bind-error.c',
231 'test/test-tcp-bind6-error.c',
232 'test/test-tcp-writealot.c',
233 'test/test-timer-again.c',
234 'test/test-timer.c',
235 ],
236 'conditions': [
237 [ 'OS=="win"', {
238 'sources': [
239 'test/runner-win.c',
240 'test/runner-win.h'
241 ],
242 'libraries': [ 'ws2_32.lib' ]
243 }, { # POSIX
244 'defines': [ '_GNU_SOURCE' ],
245 'ldflags': [ '-pthread' ],
246 'sources': [
247 'test/runner-unix.c',
248 'test/runner-unix.h',
249 ]
250 }]
251 ],
252 'msvs-settings': {
253 'VCLinkerTool': {
254 'SubSystem': 1, # /subsystem:console
255 },
256 },
257 },
258
259 {
260 'target_name': 'run-benchmarks',
261 'type': 'executable',
262 'dependencies': [ 'uv' ],
263 'sources': [
264 'test/benchmark-ares.c',
265 'test/benchmark-getaddrinfo.c',
266 'test/benchmark-list.h',
267 'test/benchmark-ping-pongs.c',
268 'test/benchmark-pound.c',
269 'test/benchmark-pump.c',
270 'test/benchmark-sizes.c',
271 'test/benchmark-spawn.c',
272 'test/dns-server.c',
273 'test/echo-server.c',
274 'test/run-benchmarks.c',
275 'test/runner.c',
276 'test/runner.h',
277 'test/task.h',
278 ],
279 'conditions': [
280 [ 'OS=="win"', {
281 'sources': [
282 'test/runner-win.c',
283 'test/runner-win.h',
284 ],
285 'libraries': [ 'ws2_32.lib' ]
286 }, { # POSIX
287 'defines': [ '_GNU_SOURCE' ],
288 'ldflags': [ '-pthread' ],
289 'sources': [
290 'test/runner-unix.c',
291 'test/runner-unix.h',
292 ]
293 }]
294 ],
295 'msvs-settings': {
296 'VCLinkerTool': {
297 'SubSystem': 1, # /subsystem:console
298 },
299 },
300 }
301 ]
302 }
303
Something went wrong with that request. Please try again.