Skip to content

HTTPS clone URL

Subversion checkout URL

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