Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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