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',
22 'lib/child_process.js',
35 'lib/_http_client.js',
36 'lib/_http_common.js',
37 'lib/_http_incoming.js',
38 'lib/_http_outgoing.js',
39 'lib/_http_server.js',
51 'lib/_stream_readable.js',
52 'lib/_stream_writable.js',
53 'lib/_stream_duplex.js',
54 'lib/_stream_transform.js',
55 'lib/_stream_passthrough.js',
56 'lib/string_decoder.js',
73 'target_name': 'node',
82 'tools/msvs/genfiles',
84 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
88 'src/fs_event_wrap.cc',
93 'src/node_constants.cc',
94 'src/node_contextify.cc',
96 'src/node_http_parser.cc',
97 'src/node_javascript.cc',
101 'src/node_stat_watcher.cc',
102 'src/node_watchdog.cc',
105 'src/signal_wrap.cc',
108 'src/string_bytes.cc',
109 'src/stream_wrap.cc',
113 'src/process_wrap.cc',
116 # headers to make for a more pleasant IDE experience
118 'src/async-wrap-inl.h',
120 'src/base-object-inl.h',
126 'src/node_constants.h',
127 'src/node_contextify.h',
129 'src/node_http_parser.h',
130 'src/node_internals.h',
131 'src/node_javascript.h',
132 'src/node_root_certs.h',
133 'src/node_version.h',
134 'src/node_watchdog.h',
143 'src/string_bytes.h',
148 'deps/http_parser/http_parser.h',
149 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
150 # javascript files to make for an even more pleasant IDE experience
152 # node.gyp is added to the project by default.
157 'NODE_WANT_INTERNALS=1',
158 'ARCH="<(target_arch)"',
160 'NODE_TAG="<(node_tag)"',
164 [ 'node_use_openssl=="true"', {
165 'defines': [ 'HAVE_OPENSSL=1' ],
167 'src/node_crypto.cc',
168 'src/node_crypto_bio.cc',
169 'src/node_crypto_clienthello.cc',
171 'src/node_crypto_bio.h',
172 'src/node_crypto_clienthello.h',
177 [ 'node_shared_openssl=="false"', {
179 './deps/openssl/openssl.gyp:openssl',
182 './deps/openssl/openssl.gyp:openssl-cli'
186 'defines': [ 'HAVE_OPENSSL=0' ]
188 [ 'node_use_dtrace=="true"', {
189 'defines': [ 'HAVE_DTRACE=1' ],
191 'node_dtrace_header',
194 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
197 # DTrace is supported on linux, solaris, mac, and bsd. There are
198 # three object files associated with DTrace support, but they're
199 # not all used all the time:
201 # node_dtrace.o all configurations
202 # node_dtrace_ustack.o not supported on mac and linux
203 # node_dtrace_provider.o All except OS X. "dtrace -G" is not
206 # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
207 # actually exist. They're listed here to trick GYP into linking the
208 # corresponding object files into the final "node" executable. These
209 # object files are generated by "dtrace -G" using custom actions
210 # below, and the GYP-generated Makefiles will properly build them when
213 'sources': [ 'src/node_dtrace.cc' ],
217 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o',
218 '<(SHARED_INTERMEDIATE_DIR)/libuv_dtrace_provider.o',
221 [ 'OS!="mac" and OS!="linux"', {
223 'src/node_dtrace_ustack.cc',
224 'src/node_dtrace_provider.cc',
229 [ 'node_use_mdb=="true"', {
230 'dependencies': [ 'node_mdb' ],
231 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
236 [ 'node_use_etw=="true"', {
237 'defines': [ 'HAVE_ETW=1' ],
238 'dependencies': [ 'node_etw' ],
240 'src/node_win32_etw_provider.h',
241 'src/node_win32_etw_provider-inl.h',
242 'src/node_win32_etw_provider.cc',
243 'src/node_dtrace.cc',
244 'tools/msvs/genfiles/node_etw_provider.h',
245 'tools/msvs/genfiles/node_etw_provider.rc',
248 [ 'node_use_perfctr=="true"', {
249 'defines': [ 'HAVE_PERFCTR=1' ],
250 'dependencies': [ 'node_perfctr' ],
252 'src/node_win32_perfctr_provider.h',
253 'src/node_win32_perfctr_provider.cc',
254 'src/node_counters.cc',
255 'src/node_counters.h',
256 'tools/msvs/genfiles/node_perfctr_provider.rc',
259 [ 'v8_postmortem_support=="true"', {
260 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:postmortem-metadata' ],
262 [ 'node_shared_v8=="false"', {
264 'deps/v8/include/v8.h',
265 'deps/v8/include/v8-debug.h',
267 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
270 [ 'node_shared_zlib=="false"', {
271 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
274 [ 'node_shared_http_parser=="false"', {
275 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
278 [ 'node_shared_cares=="false"', {
279 'dependencies': [ 'deps/cares/cares.gyp:cares' ],
282 [ 'node_shared_libuv=="false"', {
283 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
292 # we need to use node's preferred "win32" rather than gyp's preferred "win"
296 'libraries': [ '-lpsapi.lib' ]
298 'defines': [ '__POSIX__' ],
305 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
321 'PLATFORM="solaris"',
324 # we need to use node's preferred "sunos"
325 # rather than gyp's preferred "solaris"
330 'OS=="linux" and node_shared_v8=="false"', {
332 '-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
338 'SubSystem': 1, # /subsystem:console
342 # generate ETW header and resource files
344 'target_name': 'node_etw',
347 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
350 'action_name': 'node_etw',
351 'inputs': [ 'src/res/node_etw_provider.man' ],
353 'tools/msvs/genfiles/node_etw_provider.rc',
354 'tools/msvs/genfiles/node_etw_provider.h',
355 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
357 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
363 # generate perf counter header and resource files
365 'target_name': 'node_perfctr',
368 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
371 'action_name': 'node_perfctr_man',
372 'inputs': [ 'src/res/node_perfctr_provider.man' ],
374 'tools/msvs/genfiles/node_perfctr_provider.h',
375 'tools/msvs/genfiles/node_perfctr_provider.rc',
376 'tools/msvs/genfiles/MSG00001.BIN',
378 'action': [ 'ctrpp <@(_inputs) '
379 '-o tools/msvs/genfiles/node_perfctr_provider.h '
380 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
388 'target_name': 'node_js2c',
390 'toolsets': ['host'],
393 'action_name': 'node_js2c',
399 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
402 [ 'node_use_dtrace=="false" and node_use_etw=="false"', {
403 'inputs': [ 'src/notrace_macros.py' ]
405 [ 'node_use_perfctr=="false"', {
406 'inputs': [ 'src/perfctr_macros.py' ]
419 'target_name': 'node_dtrace_header',
422 [ 'node_use_dtrace=="true"', {
425 'action_name': 'node_dtrace_header',
426 'inputs': [ 'src/node_provider.d' ],
427 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
428 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
429 '-o', '<@(_outputs)' ]
436 'target_name': 'node_mdb',
439 [ 'node_use_mdb=="true"',
441 'dependencies': [ 'deps/mdb_v8/mdb_v8.gyp:mdb_v8' ],
444 'action_name': 'node_mdb',
445 'inputs': [ '<(PRODUCT_DIR)/obj.target/deps/mdb_v8/mdb_v8.so' ],
446 'outputs': [ '<(PRODUCT_DIR)/obj.target/node/src/node_mdb.o' ],
448 [ 'target_arch=="ia32"', {
449 'action': [ 'elfwrap', '-o', '<@(_outputs)', '<@(_inputs)' ],
451 [ 'target_arch=="x64"', {
452 'action': [ 'elfwrap', '-64', '-o', '<@(_outputs)', '<@(_inputs)' ],
462 'target_name': 'node_dtrace_provider',
465 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
468 'action_name': 'node_dtrace_provider_o',
470 '<(OBJ_DIR)/libuv/deps/uv/src/unix/core.o',
471 '<(OBJ_DIR)/node/src/node_dtrace.o',
474 '<(OBJ_DIR)/node/src/node_dtrace_provider.o'
476 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
477 '-s', 'deps/uv/src/unix/uv-dtrace.d', '<@(_inputs)',
478 '-o', '<@(_outputs)' ]
482 [ 'node_use_dtrace=="true" and OS=="linux"', {
485 'action_name': 'node_dtrace_provider_o',
486 'inputs': [ 'src/node_provider.d' ],
488 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
491 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
495 'action_name': 'libuv_dtrace_provider_o',
496 'inputs': [ 'deps/uv/src/unix/uv-dtrace.d' ],
498 '<(SHARED_INTERMEDIATE_DIR)/libuv_dtrace_provider.o'
501 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
509 'target_name': 'node_dtrace_ustack',
512 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
515 'action_name': 'node_dtrace_ustack_constants',
520 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
523 'tools/genv8constants.py',
529 'action_name': 'node_dtrace_ustack',
532 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
535 '<(OBJ_DIR)/node/src/node_dtrace_ustack.o'
538 [ 'target_arch=="ia32"', {
540 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
541 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
544 [ 'target_arch=="x64"', {
546 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
547 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
557 'target_name': 'specialize_node_d',
560 [ 'node_use_dtrace=="true"', {
563 'action_name': 'specialize_node_d',
568 '<(PRODUCT_DIR)/node.d',
571 'tools/specialize_node_d.py',