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',
151 'deps/http_parser/http_parser.h',
152 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
153 # javascript files to make for an even more pleasant IDE experience
155 # node.gyp is added to the project by default.
160 'NODE_WANT_INTERNALS=1',
161 'ARCH="<(target_arch)"',
163 'NODE_TAG="<(node_tag)"',
164 'NODE_V8_OPTIONS="<(node_v8_options)"',
168 [ 'node_use_openssl=="true"', {
169 'defines': [ 'HAVE_OPENSSL=1' ],
171 'src/node_crypto.cc',
172 'src/node_crypto_bio.cc',
173 'src/node_crypto_clienthello.cc',
175 'src/node_crypto_bio.h',
176 'src/node_crypto_clienthello.h',
181 [ 'node_shared_openssl=="false"', {
183 './deps/openssl/openssl.gyp:openssl',
186 './deps/openssl/openssl.gyp:openssl-cli'
190 'defines': [ 'HAVE_OPENSSL=0' ]
192 [ 'node_use_dtrace=="true"', {
193 'defines': [ 'HAVE_DTRACE=1' ],
195 'node_dtrace_header',
198 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
201 # DTrace is supported on linux, solaris, mac, and bsd. There are
202 # three object files associated with DTrace support, but they're
203 # not all used all the time:
205 # node_dtrace.o all configurations
206 # node_dtrace_ustack.o not supported on mac and linux
207 # node_dtrace_provider.o All except OS X. "dtrace -G" is not
210 # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
211 # actually exist. They're listed here to trick GYP into linking the
212 # corresponding object files into the final "node" executable. These
213 # object files are generated by "dtrace -G" using custom actions
214 # below, and the GYP-generated Makefiles will properly build them when
217 'sources': [ 'src/node_dtrace.cc' ],
221 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o',
222 '<(SHARED_INTERMEDIATE_DIR)/libuv_dtrace_provider.o',
225 [ 'OS!="mac" and OS!="linux"', {
227 'src/node_dtrace_ustack.cc',
228 'src/node_dtrace_provider.cc',
233 [ 'node_use_mdb=="true"', {
234 'dependencies': [ 'node_mdb' ],
235 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
240 [ 'node_use_etw=="true"', {
241 'defines': [ 'HAVE_ETW=1' ],
242 'dependencies': [ 'node_etw' ],
244 'src/node_win32_etw_provider.h',
245 'src/node_win32_etw_provider-inl.h',
246 'src/node_win32_etw_provider.cc',
247 'src/node_dtrace.cc',
248 'tools/msvs/genfiles/node_etw_provider.h',
249 'tools/msvs/genfiles/node_etw_provider.rc',
252 [ 'node_use_perfctr=="true"', {
253 'defines': [ 'HAVE_PERFCTR=1' ],
254 'dependencies': [ 'node_perfctr' ],
256 'src/node_win32_perfctr_provider.h',
257 'src/node_win32_perfctr_provider.cc',
258 'src/node_counters.cc',
259 'src/node_counters.h',
260 'tools/msvs/genfiles/node_perfctr_provider.rc',
263 [ 'v8_postmortem_support=="true"', {
264 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:postmortem-metadata' ],
266 [ 'node_shared_v8=="false"', {
268 'deps/v8/include/v8.h',
269 'deps/v8/include/v8-debug.h',
271 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
274 [ 'node_shared_zlib=="false"', {
275 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
278 [ 'node_shared_http_parser=="false"', {
279 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
282 [ 'node_shared_cares=="false"', {
283 'dependencies': [ 'deps/cares/cares.gyp:cares' ],
286 [ 'node_shared_libuv=="false"', {
287 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
296 # we need to use node's preferred "win32" rather than gyp's preferred "win"
300 'libraries': [ '-lpsapi.lib' ]
302 'defines': [ '__POSIX__' ],
309 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
325 'PLATFORM="solaris"',
328 # we need to use node's preferred "sunos"
329 # rather than gyp's preferred "solaris"
334 'OS=="linux" and node_shared_v8=="false"', {
336 '-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
342 'SubSystem': 1, # /subsystem:console
346 # generate ETW header and resource files
348 'target_name': 'node_etw',
351 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
354 'action_name': 'node_etw',
355 'inputs': [ 'src/res/node_etw_provider.man' ],
357 'tools/msvs/genfiles/node_etw_provider.rc',
358 'tools/msvs/genfiles/node_etw_provider.h',
359 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
361 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
367 # generate perf counter header and resource files
369 'target_name': 'node_perfctr',
372 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
375 'action_name': 'node_perfctr_man',
376 'inputs': [ 'src/res/node_perfctr_provider.man' ],
378 'tools/msvs/genfiles/node_perfctr_provider.h',
379 'tools/msvs/genfiles/node_perfctr_provider.rc',
380 'tools/msvs/genfiles/MSG00001.BIN',
382 'action': [ 'ctrpp <@(_inputs) '
383 '-o tools/msvs/genfiles/node_perfctr_provider.h '
384 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
392 'target_name': 'node_js2c',
394 'toolsets': ['host'],
397 'action_name': 'node_js2c',
403 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
406 [ 'node_use_dtrace=="false" and node_use_etw=="false"', {
407 'inputs': [ 'src/notrace_macros.py' ]
409 [ 'node_use_perfctr=="false"', {
410 'inputs': [ 'src/perfctr_macros.py' ]
423 'target_name': 'node_dtrace_header',
426 [ 'node_use_dtrace=="true"', {
429 'action_name': 'node_dtrace_header',
430 'inputs': [ 'src/node_provider.d' ],
431 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
432 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
433 '-o', '<@(_outputs)' ]
440 'target_name': 'node_mdb',
443 [ 'node_use_mdb=="true"',
445 'dependencies': [ 'deps/mdb_v8/mdb_v8.gyp:mdb_v8' ],
448 'action_name': 'node_mdb',
449 'inputs': [ '<(PRODUCT_DIR)/obj.target/deps/mdb_v8/mdb_v8.so' ],
450 'outputs': [ '<(PRODUCT_DIR)/obj.target/node/src/node_mdb.o' ],
452 [ 'target_arch=="ia32"', {
453 'action': [ 'elfwrap', '-o', '<@(_outputs)', '<@(_inputs)' ],
455 [ 'target_arch=="x64"', {
456 'action': [ 'elfwrap', '-64', '-o', '<@(_outputs)', '<@(_inputs)' ],
466 'target_name': 'node_dtrace_provider',
469 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
472 'action_name': 'node_dtrace_provider_o',
474 '<(OBJ_DIR)/libuv/deps/uv/src/unix/core.o',
475 '<(OBJ_DIR)/node/src/node_dtrace.o',
478 '<(OBJ_DIR)/node/src/node_dtrace_provider.o'
480 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
481 '-s', 'deps/uv/src/unix/uv-dtrace.d', '<@(_inputs)',
482 '-o', '<@(_outputs)' ]
486 [ 'node_use_dtrace=="true" and OS=="linux"', {
489 'action_name': 'node_dtrace_provider_o',
490 'inputs': [ 'src/node_provider.d' ],
492 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
495 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
499 'action_name': 'libuv_dtrace_provider_o',
500 'inputs': [ 'deps/uv/src/unix/uv-dtrace.d' ],
502 '<(SHARED_INTERMEDIATE_DIR)/libuv_dtrace_provider.o'
505 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
513 'target_name': 'node_dtrace_ustack',
516 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
519 'action_name': 'node_dtrace_ustack_constants',
524 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
527 'tools/genv8constants.py',
533 'action_name': 'node_dtrace_ustack',
536 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
539 '<(OBJ_DIR)/node/src/node_dtrace_ustack.o'
542 [ 'target_arch=="ia32"', {
544 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
545 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
548 [ 'target_arch=="x64"', {
550 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
551 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
561 'target_name': 'specialize_node_d',
564 [ 'node_use_dtrace=="true"', {
567 'action_name': 'specialize_node_d',
572 '<(PRODUCT_DIR)/node.d',
575 'tools/specialize_node_d.py',