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',
107 'src/string_bytes.cc',
108 'src/stream_wrap.cc',
112 'src/process_wrap.cc',
115 # headers to make for a more pleasant IDE experience
117 'src/async-wrap-inl.h',
119 'src/base-object-inl.h',
125 'src/node_constants.h',
126 'src/node_contextify.h',
128 'src/node_http_parser.h',
129 'src/node_internals.h',
130 'src/node_javascript.h',
131 'src/node_root_certs.h',
132 'src/node_version.h',
133 'src/node_watchdog.h',
142 'src/string_bytes.h',
147 'deps/http_parser/http_parser.h',
148 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
149 # javascript files to make for an even more pleasant IDE experience
151 # node.gyp is added to the project by default.
156 'NODE_WANT_INTERNALS=1',
157 'ARCH="<(target_arch)"',
159 'NODE_TAG="<(node_tag)"',
163 [ 'node_use_openssl=="true"', {
164 'defines': [ 'HAVE_OPENSSL=1' ],
166 'src/node_crypto.cc',
167 'src/node_crypto_bio.cc',
168 'src/node_crypto_clienthello.cc',
170 'src/node_crypto_bio.h',
171 'src/node_crypto_clienthello.h',
176 [ 'node_shared_openssl=="false"', {
178 './deps/openssl/openssl.gyp:openssl',
181 './deps/openssl/openssl.gyp:openssl-cli'
185 'defines': [ 'HAVE_OPENSSL=0' ]
187 [ 'node_use_dtrace=="true"', {
188 'defines': [ 'HAVE_DTRACE=1' ],
189 'dependencies': [ 'node_dtrace_header' ],
190 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
192 # DTrace is supported on linux, solaris, mac, and bsd. There are
193 # three object files associated with DTrace support, but they're
194 # not all used all the time:
196 # node_dtrace.o all configurations
197 # node_dtrace_ustack.o not supported on mac and linux
198 # node_dtrace_provider.o All except OS X. "dtrace -G" is not
201 # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
202 # actually exist. They're listed here to trick GYP into linking the
203 # corresponding object files into the final "node" executable. These
204 # object files are generated by "dtrace -G" using custom actions
205 # below, and the GYP-generated Makefiles will properly build them when
208 'sources': [ 'src/node_dtrace.cc' ],
212 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o',
213 '<(SHARED_INTERMEDIATE_DIR)/libuv_dtrace_provider.o',
216 [ 'OS!="mac" and OS!="linux"', {
218 'src/node_dtrace_ustack.cc',
219 'src/node_dtrace_provider.cc',
224 [ 'node_use_mdb=="true"', {
225 'dependencies': [ 'node_mdb' ],
226 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
231 [ 'node_use_etw=="true"', {
232 'defines': [ 'HAVE_ETW=1' ],
233 'dependencies': [ 'node_etw' ],
235 'src/node_win32_etw_provider.h',
236 'src/node_win32_etw_provider-inl.h',
237 'src/node_win32_etw_provider.cc',
238 'src/node_dtrace.cc',
239 'tools/msvs/genfiles/node_etw_provider.h',
240 'tools/msvs/genfiles/node_etw_provider.rc',
243 [ 'node_use_perfctr=="true"', {
244 'defines': [ 'HAVE_PERFCTR=1' ],
245 'dependencies': [ 'node_perfctr' ],
247 'src/node_win32_perfctr_provider.h',
248 'src/node_win32_perfctr_provider.cc',
249 'src/node_counters.cc',
250 'src/node_counters.h',
251 'tools/msvs/genfiles/node_perfctr_provider.rc',
254 [ 'v8_postmortem_support=="true"', {
255 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:postmortem-metadata' ],
257 [ 'node_shared_v8=="false"', {
259 'deps/v8/include/v8.h',
260 'deps/v8/include/v8-debug.h',
262 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
265 [ 'node_shared_zlib=="false"', {
266 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
269 [ 'node_shared_http_parser=="false"', {
270 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
273 [ 'node_shared_cares=="false"', {
274 'dependencies': [ 'deps/cares/cares.gyp:cares' ],
277 [ 'node_shared_libuv=="false"', {
278 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
287 # we need to use node's preferred "win32" rather than gyp's preferred "win"
291 'libraries': [ '-lpsapi.lib' ]
293 'defines': [ '__POSIX__' ],
300 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
316 'PLATFORM="solaris"',
319 # we need to use node's preferred "sunos"
320 # rather than gyp's preferred "solaris"
325 'OS=="linux" and node_shared_v8=="false"', {
327 '-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
333 'SubSystem': 1, # /subsystem:console
337 # generate ETW header and resource files
339 'target_name': 'node_etw',
342 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
345 'action_name': 'node_etw',
346 'inputs': [ 'src/res/node_etw_provider.man' ],
348 'tools/msvs/genfiles/node_etw_provider.rc',
349 'tools/msvs/genfiles/node_etw_provider.h',
350 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
352 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
358 # generate perf counter header and resource files
360 'target_name': 'node_perfctr',
363 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
366 'action_name': 'node_perfctr_man',
367 'inputs': [ 'src/res/node_perfctr_provider.man' ],
369 'tools/msvs/genfiles/node_perfctr_provider.h',
370 'tools/msvs/genfiles/node_perfctr_provider.rc',
371 'tools/msvs/genfiles/MSG00001.BIN',
373 'action': [ 'ctrpp <@(_inputs) '
374 '-o tools/msvs/genfiles/node_perfctr_provider.h '
375 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
383 'target_name': 'node_js2c',
385 'toolsets': ['host'],
388 'action_name': 'node_js2c',
394 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
397 [ 'node_use_dtrace=="false" and node_use_etw=="false"', {
398 'inputs': [ 'src/notrace_macros.py' ]
400 [ 'node_use_perfctr=="false"', {
401 'inputs': [ 'src/perfctr_macros.py' ]
414 'target_name': 'node_dtrace_header',
417 [ 'node_use_dtrace=="true"', {
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)' ]
431 'target_name': 'node_mdb',
434 [ 'node_use_mdb=="true"',
436 'dependencies': [ 'deps/mdb_v8/mdb_v8.gyp:mdb_v8' ],
439 'action_name': 'node_mdb',
440 'inputs': [ '<(PRODUCT_DIR)/obj.target/deps/mdb_v8/mdb_v8.so' ],
441 'outputs': [ '<(PRODUCT_DIR)/obj.target/node/src/node_mdb.o' ],
443 [ 'target_arch=="ia32"', {
444 'action': [ 'elfwrap', '-o', '<@(_outputs)', '<@(_inputs)' ],
446 [ 'target_arch=="x64"', {
447 'action': [ 'elfwrap', '-64', '-o', '<@(_outputs)', '<@(_inputs)' ],
457 'target_name': 'node_dtrace_provider',
460 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
463 'action_name': 'node_dtrace_provider_o',
465 '<(OBJ_DIR)/libuv/deps/uv/src/unix/core.o',
466 '<(OBJ_DIR)/node/src/node_dtrace.o',
469 '<(OBJ_DIR)/node/src/node_dtrace_provider.o'
471 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
472 '-s', 'deps/uv/src/unix/uv-dtrace.d', '<@(_inputs)',
473 '-o', '<@(_outputs)' ]
477 [ 'node_use_dtrace=="true" and OS=="linux"', {
480 'action_name': 'node_dtrace_provider_o',
481 'inputs': [ 'src/node_provider.d' ],
483 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
486 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
490 'action_name': 'libuv_dtrace_provider_o',
491 'inputs': [ 'deps/uv/src/unix/uv-dtrace.d' ],
493 '<(SHARED_INTERMEDIATE_DIR)/libuv_dtrace_provider.o'
496 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
504 'target_name': 'node_dtrace_ustack',
507 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
510 'action_name': 'node_dtrace_ustack_constants',
515 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
518 'tools/genv8constants.py',
524 'action_name': 'node_dtrace_ustack',
527 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
530 '<(OBJ_DIR)/node/src/node_dtrace_ustack.o'
533 [ 'target_arch=="ia32"', {
535 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
536 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
539 [ 'target_arch=="x64"', {
541 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
542 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',