Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 545 lines (531 sloc) 16.355 kb
4f3c8b3 ry WIP
ry authored
1 {
bea4827 ry More progress with gyp
ry authored
2 'variables': {
bca88b2 ry support nosnapshot in vcbuild.bat
ry authored
3 'v8_use_snapshot%': 'true',
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
4 'node_use_dtrace%': 'false',
35a1421 Windows: Enable ETW events.
Igor Zinkovsky authored
5 'node_use_etw%': 'false',
f657ce6 Scott Blomquist windows: add tracing with performance counters
sblom authored
6 'node_use_perfctr%': 'false',
841b7f5 Scott Blomquist Ease building with VS Express by checking in generated files.
sblom authored
7 'node_has_winsdk%': 'false',
a84adad Nathan Rajlich Default node_shared_v8 to false.
TooTallNate authored
8 'node_shared_v8%': 'false',
d03b848 T.C. Hollingsworth build: support shared zlib
tchollingsworth authored
9 'node_shared_zlib%': 'false',
bfd78b6 Stephen Gallagher build: allow linking against system http_parser
sgallagher authored
10 'node_shared_http_parser%': 'false',
73ff653 Stephen Gallagher build: allow linking against system c-ares
sgallagher authored
11 'node_shared_cares%': 'false',
38809e3 Stephen Gallagher build: allow linking against system libuv
sgallagher authored
12 'node_shared_libuv%': 'false',
ae2ac4f Bert Belder gyp: add js files to node project
piscisaureus authored
13 'node_use_openssl%': 'true',
06810b2 tracing: add systemtap support
Jan Wynholds authored
14 'node_use_systemtap%': 'false',
fe464a2 ry Rename GYP variable node_use_system_openssl to be consistent
ry authored
15 'node_shared_openssl%': 'false',
ae2ac4f Bert Belder gyp: add js files to node project
piscisaureus authored
16 'library_files': [
17 'src/node.js',
18 'lib/_debugger.js',
19 'lib/_linklist.js',
20 'lib/assert.js',
21 'lib/buffer.js',
96e423a ry Remove child_process_legacy
ry authored
22 'lib/child_process.js',
ae2ac4f Bert Belder gyp: add js files to node project
piscisaureus authored
23 'lib/console.js',
24 'lib/constants.js',
25 'lib/crypto.js',
73b4b86 ry Add cluster.js to node.gyp
ry authored
26 'lib/cluster.js',
71cce3f ry Remove dgram_legacy
ry authored
27 'lib/dgram.js',
58e892d ry Remove dns_legacy
ry authored
28 'lib/dns.js',
963459d isaacs Domain feature
isaacs authored
29 'lib/domain.js',
ae2ac4f Bert Belder gyp: add js files to node project
piscisaureus authored
30 'lib/events.js',
31 'lib/freelist.js',
32 'lib/fs.js',
33 'lib/http.js',
34 'lib/https.js',
35 'lib/module.js',
be0bb2d ry Remove net_legacy timers_legacy
ry authored
36 'lib/net.js',
ae2ac4f Bert Belder gyp: add js files to node project
piscisaureus authored
37 'lib/os.js',
38 'lib/path.js',
39 'lib/punycode.js',
40 'lib/querystring.js',
41 'lib/readline.js',
42 'lib/repl.js',
43 'lib/stream.js',
420e07c isaacs streams2: The new stream base classes
isaacs authored
44 'lib/_stream_readable.js',
45 'lib/_stream_writable.js',
46 'lib/_stream_duplex.js',
47 'lib/_stream_transform.js',
48 'lib/_stream_passthrough.js',
ae2ac4f Bert Belder gyp: add js files to node project
piscisaureus authored
49 'lib/string_decoder.js',
50 'lib/sys.js',
be0bb2d ry Remove net_legacy timers_legacy
ry authored
51 'lib/timers.js',
ae2ac4f Bert Belder gyp: add js files to node project
piscisaureus authored
52 'lib/tls.js',
cdf5d91 ry Remove tty_legacy
ry authored
53 'lib/tty.js',
ae2ac4f Bert Belder gyp: add js files to node project
piscisaureus authored
54 'lib/url.js',
55 'lib/util.js',
56 'lib/vm.js',
5b8e1da isaacs Initial pass at zlib bindings
isaacs authored
57 'lib/zlib.js',
ae2ac4f Bert Belder gyp: add js files to node project
piscisaureus authored
58 ],
bea4827 ry More progress with gyp
ry authored
59 },
60
4f3c8b3 ry WIP
ry authored
61 'targets': [
62 {
63 'target_name': 'node',
64 'type': 'executable',
bea4827 ry More progress with gyp
ry authored
65
4f3c8b3 ry WIP
ry authored
66 'dependencies': [
a979ab9 ry Improve gyp build - now works kind of
ry authored
67 'node_js2c#host',
4f3c8b3 ry WIP
ry authored
68 ],
a979ab9 ry Improve gyp build - now works kind of
ry authored
69
70 'include_dirs': [
db1bf67 ry Move GYP file to the project root
ry authored
71 'src',
a616774 Scott Blomquist windows: improve Visual Studio Express build support
sblom authored
72 'tools/msvs/genfiles',
db1bf67 ry Move GYP file to the project root
ry authored
73 'deps/uv/src/ares',
a979ab9 ry Improve gyp build - now works kind of
ry authored
74 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
75 ],
76
4f3c8b3 ry WIP
ry authored
77 'sources': [
8fe5712 fs watcher binding
Igor Zinkovsky authored
78 'src/fs_event_wrap.cc',
db1bf67 ry Move GYP file to the project root
ry authored
79 'src/cares_wrap.cc',
80 'src/handle_wrap.cc',
81 'src/node.cc',
82 'src/node_buffer.cc',
83 'src/node_constants.cc',
84 'src/node_extensions.cc',
85 'src/node_file.cc',
86 'src/node_http_parser.cc',
87 'src/node_javascript.cc',
88 'src/node_main.cc',
89 'src/node_os.cc',
90 'src/node_script.cc',
f0ce984 Ben Noordhuis fs: make fs.watchFile() work on windows
bnoordhuis authored
91 'src/node_stat_watcher.cc',
db1bf67 ry Move GYP file to the project root
ry authored
92 'src/node_string.cc',
5b8e1da isaacs Initial pass at zlib bindings
isaacs authored
93 'src/node_zlib.cc',
db1bf67 ry Move GYP file to the project root
ry authored
94 'src/pipe_wrap.cc',
600a646 Bert Belder process: use uv_signal instead of ev_signal
piscisaureus authored
95 'src/signal_wrap.cc',
64fc34b isaacs src: Add StringBytes static util class
isaacs authored
96 'src/string_bytes.cc',
db1bf67 ry Move GYP file to the project root
ry authored
97 'src/stream_wrap.cc',
08032ef Ben Noordhuis core: add reusable slab allocator
bnoordhuis authored
98 'src/slab_allocator.cc',
db1bf67 ry Move GYP file to the project root
ry authored
99 'src/tcp_wrap.cc',
100 'src/timer_wrap.cc',
c1ae6ea ry Add TTYWrap
ry authored
101 'src/tty_wrap.cc',
db1bf67 ry Move GYP file to the project root
ry authored
102 'src/process_wrap.cc',
97b0000 Ben Noordhuis build: add src/v8_typed_array.cc to gyp sources list
bnoordhuis authored
103 'src/v8_typed_array.cc',
06f750c ry fix windows build
ry authored
104 'src/udp_wrap.cc',
64b4168 Peter Bright Add headers to improve the IDE experience.
DrPizza authored
105 # headers to make for a more pleasant IDE experience
106 'src/handle_wrap.h',
107 'src/node.h',
108 'src/node_buffer.h',
109 'src/node_constants.h',
110 'src/node_crypto.h',
111 'src/node_extensions.h',
112 'src/node_file.h',
113 'src/node_http_parser.h',
114 'src/node_javascript.h',
115 'src/node_os.h',
116 'src/node_root_certs.h',
117 'src/node_script.h',
118 'src/node_string.h',
119 'src/node_version.h',
5f04065 Ben Noordhuis process: add _getActiveHandles(), _getActiveRequests()
bnoordhuis authored
120 'src/ngx-queue.h',
64b4168 Peter Bright Add headers to improve the IDE experience.
DrPizza authored
121 'src/pipe_wrap.h',
af98fc9 Fedor Indutny child_process: new stdio API for .spawn() method
indutny authored
122 'src/tty_wrap.h',
123 'src/tcp_wrap.h',
124 'src/udp_wrap.h',
64b4168 Peter Bright Add headers to improve the IDE experience.
DrPizza authored
125 'src/req_wrap.h',
08032ef Ben Noordhuis core: add reusable slab allocator
bnoordhuis authored
126 'src/slab_allocator.h',
64fc34b isaacs src: Add StringBytes static util class
isaacs authored
127 'src/string_bytes.h',
64b4168 Peter Bright Add headers to improve the IDE experience.
DrPizza authored
128 'src/stream_wrap.h',
9e55ba7 Bert Belder dns: don't rely on libuv for c-ares integration
piscisaureus authored
129 'src/tree.h',
64b4168 Peter Bright Add headers to improve the IDE experience.
DrPizza authored
130 'src/v8_typed_array.h',
131 'deps/http_parser/http_parser.h',
132 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
ae2ac4f Bert Belder gyp: add js files to node project
piscisaureus authored
133 # javascript files to make for an even more pleasant IDE experience
134 '<@(library_files)',
c0c4bd4 Bert Belder Add common.gypi to gyp output
piscisaureus authored
135 # node.gyp is added to the project by default.
136 'common.gypi',
a979ab9 ry Improve gyp build - now works kind of
ry authored
137 ],
138
139 'defines': [
09dc577 Ben Noordhuis build: move internals to separate header file
bnoordhuis authored
140 'NODE_WANT_INTERNALS=1',
a979ab9 ry Improve gyp build - now works kind of
ry authored
141 'ARCH="<(target_arch)"',
142 'PLATFORM="<(OS)"',
f84bf5b Maciej Małecki build: allow to specify custom tags
mmalecki authored
143 'NODE_TAG="<(node_tag)"',
4f3c8b3 ry WIP
ry authored
144 ],
145
146 'conditions': [
a979ab9 ry Improve gyp build - now works kind of
ry authored
147 [ 'node_use_openssl=="true"', {
71333b3 Peter Bright Modify GYP scripts for VC build
DrPizza authored
148 'defines': [ 'HAVE_OPENSSL=1' ],
0d5595a Ben Noordhuis Revert "crypto: use better memory BIO implementation"
bnoordhuis authored
149 'sources': [ 'src/node_crypto.cc' ],
9f98698 Ben Noordhuis build: configure node, v8, cares and openssl
bnoordhuis authored
150 'conditions': [
fe464a2 ry Rename GYP variable node_use_system_openssl to be consistent
ry authored
151 [ 'node_shared_openssl=="false"', {
93390ff Fedor Indutny test: fix test-tls-server-verify
indutny authored
152 'dependencies': [
153 './deps/openssl/openssl.gyp:openssl',
154
155 # For tests
156 './deps/openssl/openssl.gyp:openssl-cli',
157 ],
9f36c0d Fedor Indutny gyp: do not rm unused openssl syms on osx/linux
indutny authored
158 # Do not let unused OpenSSL symbols to slip away
159 'xcode_settings': {
160 'OTHER_LDFLAGS': [
161 '-Wl,-force_load,<(PRODUCT_DIR)/libopenssl.a',
162 ],
163 },
164 'conditions': [
d1dd0d6 Fedor Indutny gyp: preserve v8dbg syms on freebsd too
indutny authored
165 ['OS in "linux freebsd"', {
9f36c0d Fedor Indutny gyp: do not rm unused openssl syms on osx/linux
indutny authored
166 'ldflags': [
167 '-Wl,--whole-archive <(PRODUCT_DIR)/libopenssl.a -Wl,--no-whole-archive',
168 ],
169 }],
170 ],
9f98698 Ben Noordhuis build: configure node, v8, cares and openssl
bnoordhuis authored
171 }]]
a979ab9 ry Improve gyp build - now works kind of
ry authored
172 }, {
173 'defines': [ 'HAVE_OPENSSL=0' ]
174 }],
64b4168 Peter Bright Add headers to improve the IDE experience.
DrPizza authored
175 [ 'node_use_dtrace=="true"', {
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
176 'defines': [ 'HAVE_DTRACE=1' ],
b940e0f Fedor Indutny gyp: specialize node.d for freebsd
indutny authored
177 'dependencies': [
178 'node_dtrace_header',
179 'specialize_node_d',
180 ],
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
181 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
b940e0f Fedor Indutny gyp: specialize node.d for freebsd
indutny authored
182
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
183 #
ec69fcf David Pacheco build: allow building with dtrace on osx
davepacheco authored
184 # DTrace is supported on solaris, mac, and bsd. There are three
185 # object files associated with DTrace support, but they're not all
186 # used all the time:
187 #
188 # node_dtrace.o all configurations
189 # node_dtrace_ustack.o not supported on OS X
190 # node_dtrace_provider.o All except OS X. "dtrace -G" is not
191 # used on OS X.
192 #
193 # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
194 # actually exist. They're listed here to trick GYP into linking the
195 # corresponding object files into the final "node" executable. These
196 # object files are generated by "dtrace -G" using custom actions
197 # below, and the GYP-generated Makefiles will properly build them when
198 # needed.
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
199 #
64b4168 Peter Bright Add headers to improve the IDE experience.
DrPizza authored
200 'sources': [
b3ddb89 ry Don't compile in node_dtrace.cc when not supported
ry authored
201 'src/node_dtrace.cc',
64b4168 Peter Bright Add headers to improve the IDE experience.
DrPizza authored
202 ],
ec69fcf David Pacheco build: allow building with dtrace on osx
davepacheco authored
203 'conditions': [ [
204 'OS!="mac"', {
205 'sources': [
206 'src/node_dtrace_ustack.cc',
207 'src/node_dtrace_provider.cc',
208 ]
209 }
210 ] ]
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
211 } ],
06810b2 tracing: add systemtap support
Jan Wynholds authored
212 [ 'node_use_systemtap=="true"', {
213 'defines': [ 'HAVE_SYSTEMTAP=1', 'STAP_SDT_V1=1' ],
214 'dependencies': [ 'node_systemtap_header' ],
215 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
216 'sources': [
217 'src/node_dtrace.cc',
218 '<(SHARED_INTERMEDIATE_DIR)/node_systemtap.h',
219 ],
220 } ],
35a1421 Windows: Enable ETW events.
Igor Zinkovsky authored
221 [ 'node_use_etw=="true"', {
222 'defines': [ 'HAVE_ETW=1' ],
223 'dependencies': [ 'node_etw' ],
224 'sources': [
225 'src/node_win32_etw_provider.h',
226 'src/node_win32_etw_provider-inl.h',
227 'src/node_win32_etw_provider.cc',
228 'src/node_dtrace.cc',
a616774 Scott Blomquist windows: improve Visual Studio Express build support
sblom authored
229 'tools/msvs/genfiles/node_etw_provider.h',
230 'tools/msvs/genfiles/node_etw_provider.rc',
35a1421 Windows: Enable ETW events.
Igor Zinkovsky authored
231 ]
232 } ],
f657ce6 Scott Blomquist windows: add tracing with performance counters
sblom authored
233 [ 'node_use_perfctr=="true"', {
234 'defines': [ 'HAVE_PERFCTR=1' ],
235 'dependencies': [ 'node_perfctr' ],
236 'sources': [
237 'src/node_win32_perfctr_provider.h',
238 'src/node_win32_perfctr_provider.cc',
239 'src/node_counters.cc',
240 'src/node_counters.h',
a616774 Scott Blomquist windows: improve Visual Studio Express build support
sblom authored
241 'tools/msvs/genfiles/node_perfctr_provider.rc',
f657ce6 Scott Blomquist windows: add tracing with performance counters
sblom authored
242 ]
243 } ],
f00c8bc Ben Noordhuis build: fix --shared-v8 option
bnoordhuis authored
244 [ 'node_shared_v8=="false"', {
59ecf2c isaacs Revert "Revert "build: support shared V8 properly""
isaacs authored
245 'sources': [
246 'deps/v8/include/v8.h',
247 'deps/v8/include/v8-debug.h',
248 ],
249 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
250 }],
251
d03b848 T.C. Hollingsworth build: support shared zlib
tchollingsworth authored
252 [ 'node_shared_zlib=="false"', {
253 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
254 }],
255
bfd78b6 Stephen Gallagher build: allow linking against system http_parser
sgallagher authored
256 [ 'node_shared_http_parser=="false"', {
257 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
258 }],
259
73ff653 Stephen Gallagher build: allow linking against system c-ares
sgallagher authored
260 [ 'node_shared_cares=="false"', {
261 'dependencies': [ 'deps/cares/cares.gyp:cares' ],
262 }],
38809e3 Stephen Gallagher build: allow linking against system libuv
sgallagher authored
263
264 [ 'node_shared_libuv=="false"', {
265 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
266 }],
73ff653 Stephen Gallagher build: allow linking against system c-ares
sgallagher authored
267
4f3c8b3 ry WIP
ry authored
268 [ 'OS=="win"', {
6ac8c55 Peter Bright Make MSVS build.
DrPizza authored
269 'sources': [
0187b65 Bert Belder Move resource files to src/res.
piscisaureus authored
270 'src/res/node.rc',
6ac8c55 Peter Bright Make MSVS build.
DrPizza authored
271 ],
4f3c8b3 ry WIP
ry authored
272 'defines': [
6ac8c55 Peter Bright Make MSVS build.
DrPizza authored
273 'FD_SETSIZE=1024',
79d9f62 Peter Bright Fix bad platform name.
DrPizza authored
274 # we need to use node's preferred "win32" rather than gyp's preferred "win"
275 'PLATFORM="win32"',
d52f502 Bert Belder Windows: another attempt to support unicode argv
piscisaureus authored
276 '_UNICODE=1',
4f3c8b3 ry WIP
ry authored
277 ],
1976288 ry win: link to psapi.lib
ry authored
278 'libraries': [ '-lpsapi.lib' ]
acbfc40 Ben Noordhuis build: fix add-on loading on freebsd
bnoordhuis authored
279 }, { # POSIX
a979ab9 ry Improve gyp build - now works kind of
ry authored
280 'defines': [ '__POSIX__' ],
4f3c8b3 ry WIP
ry authored
281 }],
282 [ 'OS=="mac"', {
a979ab9 ry Improve gyp build - now works kind of
ry authored
283 'libraries': [ '-framework Carbon' ],
f2ba4ce Nathan Rajlich build: remove the old -DPLATFORM="mac" define
TooTallNate authored
284 'defines!': [
285 'PLATFORM="mac"',
286 ],
9ff86a2 Nathan Rajlich build: set `process.platform` to "darwin" on OS X
TooTallNate authored
287 'defines': [
288 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
289 'PLATFORM="darwin"',
290 ],
b433c42 ry gyp: Support Linux
ry authored
291 }],
1d3d8c0 Fedor Indutny gyp: do not let `v8dbg_` slip away on osx
indutny authored
292 [ 'OS=="mac" and v8_postmortem_support=="true"', {
293 # Do not let `v8dbg_` symbols slip away
294 'xcode_settings': {
295 'OTHER_LDFLAGS': [
296 '-Wl,-force_load,<(V8_BASE)',
297 ],
298 },
299 }],
decd818 Ben Noordhuis build: fix freebsd gyp build
bnoordhuis authored
300 [ 'OS=="freebsd"', {
301 'libraries': [
302 '-lutil',
303 '-lkvm',
304 ],
305 }],
13871fa Ben Noordhuis build: fix sunos gyp build, include platform file
bnoordhuis authored
306 [ 'OS=="solaris"', {
307 'libraries': [
308 '-lkstat',
f70b138 Trent Mick always link sunos builds with libumem
trentm authored
309 '-lumem',
13871fa Ben Noordhuis build: fix sunos gyp build, include platform file
bnoordhuis authored
310 ],
606a933 Nathan Rajlich build: set `process.platform` to "sunos" on SunOS
TooTallNate authored
311 'defines!': [
312 'PLATFORM="solaris"',
313 ],
314 'defines': [
315 # we need to use node's preferred "sunos"
316 # rather than gyp's preferred "solaris"
317 'PLATFORM="sunos"',
318 ],
13871fa Ben Noordhuis build: fix sunos gyp build, include platform file
bnoordhuis authored
319 }],
6877e64 Timothy J Fontaine build: include postmortem symbols on linux
tjfontaine authored
320 [
d1dd0d6 Fedor Indutny gyp: preserve v8dbg syms on freebsd too
indutny authored
321 'OS in "linux freebsd" and node_shared_v8=="false"', {
6877e64 Timothy J Fontaine build: include postmortem symbols on linux
tjfontaine authored
322 'ldflags': [
61c0d57 Fedor Indutny gyp: fix `ninja` build on linux
indutny authored
323 '-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
6877e64 Timothy J Fontaine build: include postmortem symbols on linux
tjfontaine authored
324 ],
325 }],
16788f4 Peter Bright Rename gyp files to produce useful solution names.
DrPizza authored
326 ],
5691e8a Bert Belder windows: fix typo in node.gyp
piscisaureus authored
327 'msvs_settings': {
16788f4 Peter Bright Rename gyp files to produce useful solution names.
DrPizza authored
328 'VCLinkerTool': {
329 'SubSystem': 1, # /subsystem:console
330 },
331 },
4f3c8b3 ry WIP
ry authored
332 },
35a1421 Windows: Enable ETW events.
Igor Zinkovsky authored
333 # generate ETW header and resource files
334 {
335 'target_name': 'node_etw',
336 'type': 'none',
337 'conditions': [
841b7f5 Scott Blomquist Ease building with VS Express by checking in generated files.
sblom authored
338 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
35a1421 Windows: Enable ETW events.
Igor Zinkovsky authored
339 'actions': [
340 {
341 'action_name': 'node_etw',
342 'inputs': [ 'src/res/node_etw_provider.man' ],
953b049 Scott Blomquist windows: correct outputs list in "node_etw" gyp target
sblom authored
343 'outputs': [
a616774 Scott Blomquist windows: improve Visual Studio Express build support
sblom authored
344 'tools/msvs/genfiles/node_etw_provider.rc',
345 'tools/msvs/genfiles/node_etw_provider.h',
346 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
953b049 Scott Blomquist windows: correct outputs list in "node_etw" gyp target
sblom authored
347 ],
a616774 Scott Blomquist windows: improve Visual Studio Express build support
sblom authored
348 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
35a1421 Windows: Enable ETW events.
Igor Zinkovsky authored
349 }
350 ]
351 } ]
352 ]
353 },
f657ce6 Scott Blomquist windows: add tracing with performance counters
sblom authored
354 # generate perf counter header and resource files
355 {
356 'target_name': 'node_perfctr',
357 'type': 'none',
358 'conditions': [
841b7f5 Scott Blomquist Ease building with VS Express by checking in generated files.
sblom authored
359 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
f657ce6 Scott Blomquist windows: add tracing with performance counters
sblom authored
360 'actions': [
361 {
362 'action_name': 'node_perfctr_man',
363 'inputs': [ 'src/res/node_perfctr_provider.man' ],
364 'outputs': [
a616774 Scott Blomquist windows: improve Visual Studio Express build support
sblom authored
365 'tools/msvs/genfiles/node_perfctr_provider.h',
366 'tools/msvs/genfiles/node_perfctr_provider.rc',
367 'tools/msvs/genfiles/MSG00001.BIN',
f657ce6 Scott Blomquist windows: add tracing with performance counters
sblom authored
368 ],
369 'action': [ 'ctrpp <@(_inputs) '
a616774 Scott Blomquist windows: improve Visual Studio Express build support
sblom authored
370 '-o tools/msvs/genfiles/node_perfctr_provider.h '
371 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
f657ce6 Scott Blomquist windows: add tracing with performance counters
sblom authored
372 ]
373 },
374 ],
375 } ]
376 ]
377 },
4f3c8b3 ry WIP
ry authored
378 {
379 'target_name': 'node_js2c',
380 'type': 'none',
381 'toolsets': ['host'],
382 'actions': [
383 {
384 'action_name': 'node_js2c',
385 'inputs': [
386 '<@(library_files)',
95fd517 Nathan Rajlich node.gyp: include the config.gypi file in the js2c inputs list
TooTallNate authored
387 './config.gypi',
4f3c8b3 ry WIP
ry authored
388 ],
389 'outputs': [
390 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
391 ],
a979ab9 ry Improve gyp build - now works kind of
ry authored
392 'conditions': [
f657ce6 Scott Blomquist windows: add tracing with performance counters
sblom authored
393 [ 'node_use_dtrace=="false"'
394 ' and node_use_etw=="false"'
395 ' and node_use_systemtap=="false"',
06810b2 tracing: add systemtap support
Jan Wynholds authored
396 {
f657ce6 Scott Blomquist windows: add tracing with performance counters
sblom authored
397 'inputs': ['src/macros.py']
398 }
a979ab9 ry Improve gyp build - now works kind of
ry authored
399 ],
f657ce6 Scott Blomquist windows: add tracing with performance counters
sblom authored
400 [ 'node_use_perfctr=="false"', {
401 'inputs': [ 'src/perfctr_macros.py' ]
402 }]
403 ],
a979ab9 ry Improve gyp build - now works kind of
ry authored
404 'action': [
1e738c5 Ben Noordhuis build: make python executable configurable
bnoordhuis authored
405 '<(python)',
db1bf67 ry Move GYP file to the project root
ry authored
406 'tools/js2c.py',
a979ab9 ry Improve gyp build - now works kind of
ry authored
407 '<@(_outputs)',
95fd517 Nathan Rajlich node.gyp: include the config.gypi file in the js2c inputs list
TooTallNate authored
408 '<@(_inputs)',
a979ab9 ry Improve gyp build - now works kind of
ry authored
409 ],
4f3c8b3 ry WIP
ry authored
410 },
411 ],
412 }, # end node_js2c
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
413 {
414 'target_name': 'node_dtrace_header',
415 'type': 'none',
416 'conditions': [
417 [ 'node_use_dtrace=="true"', {
418 'actions': [
419 {
420 'action_name': 'node_dtrace_header',
421 'inputs': [ 'src/node_provider.d' ],
422 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
423 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
424 '-o', '<@(_outputs)' ]
425 }
426 ]
427 } ]
428 ]
429 },
430 {
06810b2 tracing: add systemtap support
Jan Wynholds authored
431 'target_name': 'node_systemtap_header',
432 'type': 'none',
433 'conditions': [
434 [ 'node_use_systemtap=="true"', {
435 'actions': [
436 {
437 'action_name': 'node_systemtap_header',
438 'inputs': [ 'src/node_systemtap.d' ],
439 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_systemtap.h' ],
440 'action': [ 'dtrace', '-h', '-C', '-s', '<@(_inputs)',
441 '-o', '<@(_outputs)' ]
442 }
443 ]
444 } ]
445 ]
446 },
447 {
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
448 'target_name': 'node_dtrace_provider',
449 'type': 'none',
450 'conditions': [
ec69fcf David Pacheco build: allow building with dtrace on osx
davepacheco authored
451 [ 'node_use_dtrace=="true" and OS!="mac"', {
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
452 'actions': [
453 {
454 'action_name': 'node_dtrace_provider_o',
455 'inputs': [
456 'src/node_provider.d',
61c0d57 Fedor Indutny gyp: fix `ninja` build on linux
indutny authored
457 '<(OBJ_DIR)/node/src/node_dtrace.o'
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
458 ],
459 'outputs': [
61c0d57 Fedor Indutny gyp: fix `ninja` build on linux
indutny authored
460 '<(OBJ_DIR)/node/src/node_dtrace_provider.o'
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
461 ],
462 'action': [ 'dtrace', '-G', '-xnolibs', '-s', '<@(_inputs)',
463 '-o', '<@(_outputs)' ]
464 }
465 ]
466 } ]
467 ]
468 },
469 {
470 'target_name': 'node_dtrace_ustack',
471 'type': 'none',
472 'conditions': [
ec69fcf David Pacheco build: allow building with dtrace on osx
davepacheco authored
473 [ 'node_use_dtrace=="true" and OS!="mac"', {
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
474 'actions': [
475 {
476 'action_name': 'node_dtrace_ustack_constants',
477 'inputs': [
61c0d57 Fedor Indutny gyp: fix `ninja` build on linux
indutny authored
478 '<(V8_BASE)'
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
479 ],
480 'outputs': [
481 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
482 ],
483 'action': [
484 'tools/genv8constants.py',
485 '<@(_outputs)',
486 '<@(_inputs)'
487 ]
488 },
489 {
490 'action_name': 'node_dtrace_ustack',
491 'inputs': [
492 'src/v8ustack.d',
493 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
494 ],
495 'outputs': [
61c0d57 Fedor Indutny gyp: fix `ninja` build on linux
indutny authored
496 '<(OBJ_DIR)/node/src/node_dtrace_ustack.o'
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
497 ],
3d913fe Fedor Indutny Revert "sunos: unbreak build after v8 downgrade"
indutny authored
498 'conditions': [
499 [ 'target_arch=="ia32"', {
500 'action': [
501 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
502 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
503 ]
504 } ],
505 [ 'target_arch=="x64"', {
506 'action': [
507 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
508 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
509 ]
510 } ],
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
511 ]
b940e0f Fedor Indutny gyp: specialize node.d for freebsd
indutny authored
512 },
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
513 ]
514 } ],
515 ]
b940e0f Fedor Indutny gyp: specialize node.d for freebsd
indutny authored
516 },
517 {
518 'target_name': 'specialize_node_d',
519 'type': 'none',
520 'conditions': [
521 [ 'node_use_dtrace=="true"', {
522 'actions': [
523 {
524 'action_name': 'specialize_node_d',
525 'inputs': [
526 'src/node.d'
527 ],
528 'outputs': [
529 '<(PRODUCT_DIR)/node.d',
530 ],
531 'action': [
532 'tools/specialize_node_d.py',
533 '<@(_outputs)',
534 '<@(_inputs)',
535 '<@(OS)',
536 '<@(target_arch)',
537 ],
538 },
539 ],
540 } ],
541 ]
cc15299 David Pacheco build: add support for DTrace and postmortem
davepacheco authored
542 }
4f3c8b3 ry WIP
ry authored
543 ] # end targets
544 }
Something went wrong with that request. Please try again.