Skip to content
Newer
Older
100644 318 lines (313 sloc) 9.41 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',
148 'src/unix/internal.h',
231298a @ry move eio stuff into src/unix
ry authored
149 'src/unix/eio/ecb.h',
150 'src/unix/eio/eio.c',
151 'src/unix/eio/xthread.h',
1408ac4 @ry Move src/ev to src/unix/ev
ry authored
152 'src/unix/ev/ev.c',
153 'src/unix/ev/ev_vars.h',
154 'src/unix/ev/ev_wrap.h',
155 'src/unix/ev/event.h',
3be275b @ry Begin implementation of UNIX uv_fs_ functions
ry authored
156 # TODO: conditionally include the following based on OS?
e89f54e @ry Add forgotten gyp files
ry authored
157 'src/ares/config_cygwin/ares_config.h',
158 'src/ares/config_darwin/ares_config.h',
159 'src/ares/config_freebsd/ares_config.h',
160 'src/ares/config_linux/ares_config.h',
161 'src/ares/config_openbsd/ares_config.h',
162 'src/ares/config_sunos/ares_config.h',
231298a @ry move eio stuff into src/unix
ry authored
163 'src/unix/eio/config_cygwin.h',
164 'src/unix/eio/config_darwin.h',
165 'src/unix/eio/config_freebsd.h',
166 'src/unix/eio/config_linux.h',
167 'src/unix/eio/config_sunos.h',
1408ac4 @ry Move src/ev to src/unix/ev
ry authored
168 'src/unix/ev/config_cygwin.h',
169 'src/unix/ev/config_darwin.h',
170 'src/unix/ev/config_freebsd.h',
171 'src/unix/ev/config_linux.h',
172 'src/unix/ev/config_sunos.h',
e89f54e @ry Add forgotten gyp files
ry authored
173 ],
1408ac4 @ry Move src/ev to src/unix/ev
ry authored
174 'include_dirs': [ 'src/unix/ev', ],
e89f54e @ry Add forgotten gyp files
ry authored
175 'defines': [
176 '_LARGEFILE_SOURCE',
177 '_FILE_OFFSET_BITS=64',
178 '_GNU_SOURCE',
179 'EIO_STACKSIZE=262144'
180 ],
181 'libraries': [ '-lm' ]
182 }],
183 [ 'OS=="mac"', {
184 'include_dirs': [ 'src/ares/config_darwin' ],
5fd68a0 @ry Move unix platform files into src/unix
ry authored
185 'sources': [ 'src/unix/darwin.c' ],
e89f54e @ry Add forgotten gyp files
ry authored
186 'direct_dependent_settings': {
187 'libraries': [ '-framework CoreServices' ],
188 },
189 'defines': [
190 'EV_CONFIG_H="config_darwin.h"',
191 'EIO_CONFIG_H="config_darwin.h"',
192 ]
193 }],
194 [ 'OS=="linux"', {
195 'include_dirs': [ 'src/ares/config_linux' ],
5fd68a0 @ry Move unix platform files into src/unix
ry authored
196 'sources': [ 'src/unix/linux.c' ],
e89f54e @ry Add forgotten gyp files
ry authored
197 'defines': [
198 'EV_CONFIG_H="config_linux.h"',
199 'EIO_CONFIG_H="config_linux.h"',
200 ],
201 'direct_dependent_settings': {
202 'libraries': [ '-lrt' ],
203 },
204 }],
205 # TODO add OS=='sun'
206 ]
207 },
208
209 {
210 'target_name': 'run-tests',
211 'type': 'executable',
212 'dependencies': [ 'uv' ],
213 'sources': [
214 'test/echo-server.c',
215 'test/run-tests.c',
216 'test/runner.c',
217 'test/runner.h',
218 'test/task.h',
219 'test/test-async.c',
220 'test/test-callback-stack.c',
221 'test/test-connection-fail.c',
222 'test/test-delayed-accept.c',
223 'test/test-fail-always.c',
25175c7 uv_fs & uv_work APIs
Igor Zinkovsky authored
224 'test/test-fs.c',
e89f54e @ry Add forgotten gyp files
ry authored
225 'test/test-get-currentexe.c',
226 'test/test-getaddrinfo.c',
227 'test/test-gethostbyname.c',
228 'test/test-getsockname.c',
229 'test/test-hrtime.c',
230 'test/test-idle.c',
231 'test/test-list.h',
232 'test/test-loop-handles.c',
233 'test/test-pass-always.c',
234 'test/test-ping-pong.c',
235 'test/test-pipe-bind-error.c',
236 'test/test-ref.c',
237 'test/test-shutdown-eof.c',
238 'test/test-spawn.c',
239 'test/test-tcp-bind-error.c',
240 'test/test-tcp-bind6-error.c',
241 'test/test-tcp-writealot.c',
25175c7 uv_fs & uv_work APIs
Igor Zinkovsky authored
242 'test/test-threadpool.c',
e89f54e @ry Add forgotten gyp files
ry authored
243 'test/test-timer-again.c',
244 'test/test-timer.c',
5c9d749 @piscisaureus win: udp support
piscisaureus authored
245 'test/test-udp-dgram-too-big.c',
246 'test/test-udp-ipv6.c',
247 'test/test-udp-send-and-recv.c',
e89f54e @ry Add forgotten gyp files
ry authored
248 ],
249 'conditions': [
250 [ 'OS=="win"', {
251 'sources': [
252 'test/runner-win.c',
253 'test/runner-win.h'
254 ],
255 'libraries': [ 'ws2_32.lib' ]
256 }, { # POSIX
257 'defines': [ '_GNU_SOURCE' ],
258 'ldflags': [ '-pthread' ],
259 'sources': [
260 'test/runner-unix.c',
261 'test/runner-unix.h',
262 ]
263 }]
264 ],
265 'msvs-settings': {
266 'VCLinkerTool': {
267 'SubSystem': 1, # /subsystem:console
268 },
269 },
270 },
271
272 {
273 'target_name': 'run-benchmarks',
274 'type': 'executable',
275 'dependencies': [ 'uv' ],
276 'sources': [
277 'test/benchmark-ares.c',
278 'test/benchmark-getaddrinfo.c',
279 'test/benchmark-list.h',
280 'test/benchmark-ping-pongs.c',
281 'test/benchmark-pound.c',
282 'test/benchmark-pump.c',
283 'test/benchmark-sizes.c',
284 'test/benchmark-spawn.c',
5c9d749 @piscisaureus win: udp support
piscisaureus authored
285 'test/benchmark-udp-packet-storm.c',
e89f54e @ry Add forgotten gyp files
ry authored
286 'test/dns-server.c',
287 'test/echo-server.c',
288 'test/run-benchmarks.c',
289 'test/runner.c',
290 'test/runner.h',
291 'test/task.h',
292 ],
293 'conditions': [
294 [ 'OS=="win"', {
295 'sources': [
296 'test/runner-win.c',
297 'test/runner-win.h',
298 ],
299 'libraries': [ 'ws2_32.lib' ]
300 }, { # POSIX
301 'defines': [ '_GNU_SOURCE' ],
302 'ldflags': [ '-pthread' ],
303 'sources': [
304 'test/runner-unix.c',
305 'test/runner-unix.h',
306 ]
307 }]
308 ],
309 'msvs-settings': {
310 'VCLinkerTool': {
311 'SubSystem': 1, # /subsystem:console
312 },
313 },
314 }
315 ]
316 }
317
Something went wrong with that request. Please try again.