3 'v8_use_snapshot%': 'true',
4 'node_use_dtrace%': 'false',
5 'node_use_etw%': 'false',
6 'node_use_perfctr%': 'false',
7 'node_has_winsdk%': 'false',
8 'node_shared_v8%': 'false',
9 'node_shared_zlib%': 'false',
10 'node_shared_http_parser%': 'false',
11 'node_shared_cares%': 'false',
12 'node_shared_libuv%': 'false',
13 'node_use_openssl%': 'true',
14 'node_shared_openssl%': 'false',
15 'node_use_mdb%': 'false',
16 'node_v8_options%': '',
23 'lib/child_process.js',
36 'lib/_http_client.js',
37 'lib/_http_common.js',
38 'lib/_http_incoming.js',
39 'lib/_http_outgoing.js',
40 'lib/_http_server.js',
52 'lib/_stream_readable.js',
53 'lib/_stream_writable.js',
54 'lib/_stream_duplex.js',
55 'lib/_stream_transform.js',
56 'lib/_stream_passthrough.js',
57 'lib/string_decoder.js',
75 'target_name': 'node',
84 'tools/msvs/genfiles',
86 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
90 'src/fs_event_wrap.cc',
95 'src/node_constants.cc',
96 'src/node_contextify.cc',
98 'src/node_http_parser.cc',
99 'src/node_javascript.cc',
103 'src/node_stat_watcher.cc',
104 'src/node_watchdog.cc',
107 'src/signal_wrap.cc',
110 'src/string_bytes.cc',
111 'src/stream_wrap.cc',
115 'src/process_wrap.cc',
118 # headers to make for a more pleasant IDE experience
120 'src/async-wrap-inl.h',
122 'src/base-object-inl.h',
128 'src/node_constants.h',
130 'src/node_http_parser.h',
131 'src/node_internals.h',
132 'src/node_javascript.h',
133 'src/node_root_certs.h',
134 'src/node_version.h',
135 'src/node_watchdog.h',
144 'src/string_bytes.h',
150 'deps/http_parser/http_parser.h',
151 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
152 # javascript files to make for an even more pleasant IDE experience
154 # node.gyp is added to the project by default.
159 'NODE_WANT_INTERNALS=1',
160 'ARCH="<(target_arch)"',
162 'NODE_TAG="<(node_tag)"',
163 'NODE_V8_OPTIONS="<(node_v8_options)"',
167 [ 'node_use_openssl=="true"', {
168 'defines': [ 'HAVE_OPENSSL=1' ],
170 'src/node_crypto.cc',
171 'src/node_crypto_bio.cc',
172 'src/node_crypto_clienthello.cc',
174 'src/node_crypto_bio.h',
175 'src/node_crypto_clienthello.h',
180 [ 'node_shared_openssl=="false"', {
182 './deps/openssl/openssl.gyp:openssl',
185 './deps/openssl/openssl.gyp:openssl-cli',
189 'defines': [ 'HAVE_OPENSSL=0' ]
191 [ 'node_use_dtrace=="true"', {
192 'defines': [ 'HAVE_DTRACE=1' ],
194 'node_dtrace_header',
197 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
200 # DTrace is supported on linux, solaris, mac, and bsd. There are
201 # three object files associated with DTrace support, but they're
202 # not all used all the time:
204 # node_dtrace.o all configurations
205 # node_dtrace_ustack.o not supported on mac and linux
206 # node_dtrace_provider.o All except OS X. "dtrace -G" is not
209 # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
210 # actually exist. They're listed here to trick GYP into linking the
211 # corresponding object files into the final "node" executable. These
212 # object files are generated by "dtrace -G" using custom actions
213 # below, and the GYP-generated Makefiles will properly build them when
216 'sources': [ 'src/node_dtrace.cc' ],
220 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o',
221 '<(SHARED_INTERMEDIATE_DIR)/libuv_dtrace_provider.o',
224 [ 'OS!="mac" and OS!="linux"', {
226 'src/node_dtrace_ustack.cc',
227 'src/node_dtrace_provider.cc',
232 [ 'node_use_mdb=="true"', {
233 'dependencies': [ 'node_mdb' ],
234 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
239 [ 'node_use_etw=="true"', {
240 'defines': [ 'HAVE_ETW=1' ],
241 'dependencies': [ 'node_etw' ],
243 'src/node_win32_etw_provider.h',
244 'src/node_win32_etw_provider-inl.h',
245 'src/node_win32_etw_provider.cc',
246 'src/node_dtrace.cc',
247 'tools/msvs/genfiles/node_etw_provider.h',
248 'tools/msvs/genfiles/node_etw_provider.rc',
251 [ 'node_use_perfctr=="true"', {
252 'defines': [ 'HAVE_PERFCTR=1' ],
253 'dependencies': [ 'node_perfctr' ],
255 'src/node_win32_perfctr_provider.h',
256 'src/node_win32_perfctr_provider.cc',
257 'src/node_counters.cc',
258 'src/node_counters.h',
259 'tools/msvs/genfiles/node_perfctr_provider.rc',
262 [ 'v8_postmortem_support=="true"', {
263 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:postmortem-metadata' ],
266 '-Wl,-force_load,<(V8_BASE)',
270 [ 'node_shared_v8=="false"', {
272 'deps/v8/include/v8.h',
273 'deps/v8/include/v8-debug.h',
275 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
278 [ 'node_shared_zlib=="false"', {
279 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
282 [ 'node_shared_http_parser=="false"', {
283 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
286 [ 'node_shared_cares=="false"', {
287 'dependencies': [ 'deps/cares/cares.gyp:cares' ],
290 [ 'node_shared_libuv=="false"', {
291 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
300 # we need to use node's preferred "win32" rather than gyp's preferred "win"
304 'libraries': [ '-lpsapi.lib' ]
306 'defines': [ '__POSIX__' ],
313 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
329 'PLATFORM="solaris"',
332 # we need to use node's preferred "sunos"
333 # rather than gyp's preferred "solaris"
338 'OS=="linux" and node_shared_v8=="false"', {
340 '-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
346 'SubSystem': 1, # /subsystem:console
350 # generate ETW header and resource files
352 'target_name': 'node_etw',
355 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
358 'action_name': 'node_etw',
359 'inputs': [ 'src/res/node_etw_provider.man' ],
361 'tools/msvs/genfiles/node_etw_provider.rc',
362 'tools/msvs/genfiles/node_etw_provider.h',
363 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
365 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
371 # generate perf counter header and resource files
373 'target_name': 'node_perfctr',
376 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
379 'action_name': 'node_perfctr_man',
380 'inputs': [ 'src/res/node_perfctr_provider.man' ],
382 'tools/msvs/genfiles/node_perfctr_provider.h',
383 'tools/msvs/genfiles/node_perfctr_provider.rc',
384 'tools/msvs/genfiles/MSG00001.BIN',
386 'action': [ 'ctrpp <@(_inputs) '
387 '-o tools/msvs/genfiles/node_perfctr_provider.h '
388 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
396 'target_name': 'node_js2c',
398 'toolsets': ['host'],
401 'action_name': 'node_js2c',
407 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
410 [ 'node_use_dtrace=="false" and node_use_etw=="false"', {
411 'inputs': [ 'src/notrace_macros.py' ]
413 [ 'node_use_perfctr=="false"', {
414 'inputs': [ 'src/perfctr_macros.py' ]
427 'target_name': 'node_dtrace_header',
430 [ 'node_use_dtrace=="true"', {
433 'action_name': 'node_dtrace_header',
434 'inputs': [ 'src/node_provider.d' ],
435 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
436 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
437 '-o', '<@(_outputs)' ]
444 'target_name': 'node_mdb',
447 [ 'node_use_mdb=="true"',
449 'dependencies': [ 'deps/mdb_v8/mdb_v8.gyp:mdb_v8' ],
452 'action_name': 'node_mdb',
453 'inputs': [ '<(PRODUCT_DIR)/obj.target/deps/mdb_v8/mdb_v8.so' ],
454 'outputs': [ '<(PRODUCT_DIR)/obj.target/node/src/node_mdb.o' ],
456 [ 'target_arch=="ia32"', {
457 'action': [ 'elfwrap', '-o', '<@(_outputs)', '<@(_inputs)' ],
459 [ 'target_arch=="x64"', {
460 'action': [ 'elfwrap', '-64', '-o', '<@(_outputs)', '<@(_inputs)' ],
470 'target_name': 'node_dtrace_provider',
473 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
476 'action_name': 'node_dtrace_provider_o',
478 '<(OBJ_DIR)/libuv/deps/uv/src/unix/core.o',
479 '<(OBJ_DIR)/node/src/node_dtrace.o',
482 '<(OBJ_DIR)/node/src/node_dtrace_provider.o'
484 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
485 '-s', 'deps/uv/src/unix/uv-dtrace.d', '<@(_inputs)',
486 '-o', '<@(_outputs)' ]
490 [ 'node_use_dtrace=="true" and OS=="linux"', {
493 'action_name': 'node_dtrace_provider_o',
494 'inputs': [ 'src/node_provider.d' ],
496 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
499 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
503 'action_name': 'libuv_dtrace_provider_o',
504 'inputs': [ 'deps/uv/src/unix/uv-dtrace.d' ],
506 '<(SHARED_INTERMEDIATE_DIR)/libuv_dtrace_provider.o'
509 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
517 'target_name': 'node_dtrace_ustack',
520 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
523 'action_name': 'node_dtrace_ustack_constants',
528 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
531 'tools/genv8constants.py',
537 'action_name': 'node_dtrace_ustack',
540 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
543 '<(OBJ_DIR)/node/src/node_dtrace_ustack.o'
546 [ 'target_arch=="ia32"', {
548 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
549 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
552 [ 'target_arch=="x64"', {
554 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
555 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
565 'target_name': 'specialize_node_d',
568 [ 'node_use_dtrace=="true"', {
571 'action_name': 'specialize_node_d',
576 '<(PRODUCT_DIR)/node.d',
579 'tools/specialize_node_d.py',