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',
129 'src/node_contextify.h',
131 'src/node_http_parser.h',
132 'src/node_internals.h',
133 'src/node_javascript.h',
134 'src/node_root_certs.h',
135 'src/node_version.h',
136 'src/node_watchdog.h',
145 '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' ],
265 [ 'node_shared_v8=="false"', {
267 'deps/v8/include/v8.h',
268 'deps/v8/include/v8-debug.h',
270 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
273 [ 'node_shared_zlib=="false"', {
274 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
277 [ 'node_shared_http_parser=="false"', {
278 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
281 [ 'node_shared_cares=="false"', {
282 'dependencies': [ 'deps/cares/cares.gyp:cares' ],
285 [ 'node_shared_libuv=="false"', {
286 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
295 # we need to use node's preferred "win32" rather than gyp's preferred "win"
299 'libraries': [ '-lpsapi.lib' ]
301 'defines': [ '__POSIX__' ],
308 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
324 'PLATFORM="solaris"',
327 # we need to use node's preferred "sunos"
328 # rather than gyp's preferred "solaris"
333 'OS=="linux" and node_shared_v8=="false"', {
335 '-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
341 'SubSystem': 1, # /subsystem:console
345 # generate ETW header and resource files
347 'target_name': 'node_etw',
350 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
353 'action_name': 'node_etw',
354 'inputs': [ 'src/res/node_etw_provider.man' ],
356 'tools/msvs/genfiles/node_etw_provider.rc',
357 'tools/msvs/genfiles/node_etw_provider.h',
358 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
360 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
366 # generate perf counter header and resource files
368 'target_name': 'node_perfctr',
371 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
374 'action_name': 'node_perfctr_man',
375 'inputs': [ 'src/res/node_perfctr_provider.man' ],
377 'tools/msvs/genfiles/node_perfctr_provider.h',
378 'tools/msvs/genfiles/node_perfctr_provider.rc',
379 'tools/msvs/genfiles/MSG00001.BIN',
381 'action': [ 'ctrpp <@(_inputs) '
382 '-o tools/msvs/genfiles/node_perfctr_provider.h '
383 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
391 'target_name': 'node_js2c',
393 'toolsets': ['host'],
396 'action_name': 'node_js2c',
402 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
405 [ 'node_use_dtrace=="false" and node_use_etw=="false"', {
406 'inputs': [ 'src/notrace_macros.py' ]
408 [ 'node_use_perfctr=="false"', {
409 'inputs': [ 'src/perfctr_macros.py' ]
422 'target_name': 'node_dtrace_header',
425 [ 'node_use_dtrace=="true"', {
428 'action_name': 'node_dtrace_header',
429 'inputs': [ 'src/node_provider.d' ],
430 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
431 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
432 '-o', '<@(_outputs)' ]
439 'target_name': 'node_mdb',
442 [ 'node_use_mdb=="true"',
444 'dependencies': [ 'deps/mdb_v8/mdb_v8.gyp:mdb_v8' ],
447 'action_name': 'node_mdb',
448 'inputs': [ '<(PRODUCT_DIR)/obj.target/deps/mdb_v8/mdb_v8.so' ],
449 'outputs': [ '<(PRODUCT_DIR)/obj.target/node/src/node_mdb.o' ],
451 [ 'target_arch=="ia32"', {
452 'action': [ 'elfwrap', '-o', '<@(_outputs)', '<@(_inputs)' ],
454 [ 'target_arch=="x64"', {
455 'action': [ 'elfwrap', '-64', '-o', '<@(_outputs)', '<@(_inputs)' ],
465 'target_name': 'node_dtrace_provider',
468 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
471 'action_name': 'node_dtrace_provider_o',
473 '<(OBJ_DIR)/libuv/deps/uv/src/unix/core.o',
474 '<(OBJ_DIR)/node/src/node_dtrace.o',
477 '<(OBJ_DIR)/node/src/node_dtrace_provider.o'
479 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
480 '-s', 'deps/uv/src/unix/uv-dtrace.d', '<@(_inputs)',
481 '-o', '<@(_outputs)' ]
485 [ 'node_use_dtrace=="true" and OS=="linux"', {
488 'action_name': 'node_dtrace_provider_o',
489 'inputs': [ 'src/node_provider.d' ],
491 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
494 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
498 'action_name': 'libuv_dtrace_provider_o',
499 'inputs': [ 'deps/uv/src/unix/uv-dtrace.d' ],
501 '<(SHARED_INTERMEDIATE_DIR)/libuv_dtrace_provider.o'
504 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
512 'target_name': 'node_dtrace_ustack',
515 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
518 'action_name': 'node_dtrace_ustack_constants',
523 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
526 'tools/genv8constants.py',
532 'action_name': 'node_dtrace_ustack',
535 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
538 '<(OBJ_DIR)/node/src/node_dtrace_ustack.o'
541 [ 'target_arch=="ia32"', {
543 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
544 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
547 [ 'target_arch=="x64"', {
549 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
550 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
560 'target_name': 'specialize_node_d',
563 [ 'node_use_dtrace=="true"', {
566 'action_name': 'specialize_node_d',
571 '<(PRODUCT_DIR)/node.d',
574 'tools/specialize_node_d.py',