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_use_systemtap%': 'false',
15 'node_shared_openssl%': 'false',
22 'lib/child_process.js',
44 'lib/_stream_readable.js',
45 'lib/_stream_writable.js',
46 'lib/_stream_duplex.js',
47 'lib/_stream_transform.js',
48 'lib/_stream_passthrough.js',
49 'lib/string_decoder.js',
63 'target_name': 'node',
72 'tools/msvs/genfiles',
74 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
78 'src/fs_event_wrap.cc',
83 'src/node_constants.cc',
84 'src/node_extensions.cc',
86 'src/node_http_parser.cc',
87 'src/node_javascript.cc',
91 'src/node_stat_watcher.cc',
96 'src/string_bytes.cc',
98 'src/slab_allocator.cc',
102 'src/process_wrap.cc',
103 'src/v8_typed_array.cc',
105 # headers to make for a more pleasant IDE experience
109 'src/node_constants.h',
111 'src/node_extensions.h',
113 'src/node_http_parser.h',
114 'src/node_javascript.h',
116 'src/node_root_certs.h',
119 'src/node_version.h',
126 'src/slab_allocator.h',
127 'src/string_bytes.h',
130 'src/v8_typed_array.h',
131 'deps/http_parser/http_parser.h',
132 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
133 # javascript files to make for an even more pleasant IDE experience
135 # node.gyp is added to the project by default.
140 'NODE_WANT_INTERNALS=1',
141 'ARCH="<(target_arch)"',
143 'NODE_TAG="<(node_tag)"',
147 [ 'node_use_openssl=="true"', {
148 'defines': [ 'HAVE_OPENSSL=1' ],
149 'sources': [ 'src/node_crypto.cc' ],
151 [ 'node_shared_openssl=="false"', {
152 'dependencies': [ './deps/openssl/openssl.gyp:openssl' ],
155 'defines': [ 'HAVE_OPENSSL=0' ]
157 [ 'node_use_dtrace=="true"', {
158 'defines': [ 'HAVE_DTRACE=1' ],
160 'node_dtrace_header',
163 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
166 # DTrace is supported on solaris, mac, and bsd. There are three
167 # object files associated with DTrace support, but they're not all
170 # node_dtrace.o all configurations
171 # node_dtrace_ustack.o not supported on OS X
172 # node_dtrace_provider.o All except OS X. "dtrace -G" is not
175 # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
176 # actually exist. They're listed here to trick GYP into linking the
177 # corresponding object files into the final "node" executable. These
178 # object files are generated by "dtrace -G" using custom actions
179 # below, and the GYP-generated Makefiles will properly build them when
183 'src/node_dtrace.cc',
188 'src/node_dtrace_ustack.cc',
189 'src/node_dtrace_provider.cc',
194 [ 'node_use_systemtap=="true"', {
195 'defines': [ 'HAVE_SYSTEMTAP=1', 'STAP_SDT_V1=1' ],
196 'dependencies': [ 'node_systemtap_header' ],
197 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
199 'src/node_dtrace.cc',
200 '<(SHARED_INTERMEDIATE_DIR)/node_systemtap.h',
203 [ 'node_use_etw=="true"', {
204 'defines': [ 'HAVE_ETW=1' ],
205 'dependencies': [ 'node_etw' ],
207 'src/node_win32_etw_provider.h',
208 'src/node_win32_etw_provider-inl.h',
209 'src/node_win32_etw_provider.cc',
210 'src/node_dtrace.cc',
211 'tools/msvs/genfiles/node_etw_provider.h',
212 'tools/msvs/genfiles/node_etw_provider.rc',
215 [ 'node_use_perfctr=="true"', {
216 'defines': [ 'HAVE_PERFCTR=1' ],
217 'dependencies': [ 'node_perfctr' ],
219 'src/node_win32_perfctr_provider.h',
220 'src/node_win32_perfctr_provider.cc',
221 'src/node_counters.cc',
222 'src/node_counters.h',
223 'tools/msvs/genfiles/node_perfctr_provider.rc',
226 [ 'node_shared_v8=="false"', {
228 'deps/v8/include/v8.h',
229 'deps/v8/include/v8-debug.h',
231 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
234 [ 'node_shared_zlib=="false"', {
235 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
238 [ 'node_shared_http_parser=="false"', {
239 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
242 [ 'node_shared_cares=="false"', {
243 'dependencies': [ 'deps/cares/cares.gyp:cares' ],
246 [ 'node_shared_libuv=="false"', {
247 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
256 # we need to use node's preferred "win32" rather than gyp's preferred "win"
260 'libraries': [ '-lpsapi.lib' ]
262 'defines': [ '__POSIX__' ],
265 'libraries': [ '-framework Carbon' ],
270 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
274 [ 'OS=="mac" and v8_postmortem_support=="true"', {
275 # Do not let `v8dbg_` symbols slip away
278 '-Wl,-force_load,<(V8_BASE)',
294 'PLATFORM="solaris"',
297 # we need to use node's preferred "sunos"
298 # rather than gyp's preferred "solaris"
303 'OS=="linux" and node_shared_v8=="false"', {
305 '-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
311 'SubSystem': 1, # /subsystem:console
315 # generate ETW header and resource files
317 'target_name': 'node_etw',
320 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
323 'action_name': 'node_etw',
324 'inputs': [ 'src/res/node_etw_provider.man' ],
326 'tools/msvs/genfiles/node_etw_provider.rc',
327 'tools/msvs/genfiles/node_etw_provider.h',
328 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
330 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
336 # generate perf counter header and resource files
338 'target_name': 'node_perfctr',
341 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
344 'action_name': 'node_perfctr_man',
345 'inputs': [ 'src/res/node_perfctr_provider.man' ],
347 'tools/msvs/genfiles/node_perfctr_provider.h',
348 'tools/msvs/genfiles/node_perfctr_provider.rc',
349 'tools/msvs/genfiles/MSG00001.BIN',
351 'action': [ 'ctrpp <@(_inputs) '
352 '-o tools/msvs/genfiles/node_perfctr_provider.h '
353 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
361 'target_name': 'node_js2c',
363 'toolsets': ['host'],
366 'action_name': 'node_js2c',
372 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
375 [ 'node_use_dtrace=="false"'
376 ' and node_use_etw=="false"'
377 ' and node_use_systemtap=="false"',
379 'inputs': ['src/macros.py']
382 [ 'node_use_perfctr=="false"', {
383 'inputs': [ 'src/perfctr_macros.py' ]
396 'target_name': 'node_dtrace_header',
399 [ 'node_use_dtrace=="true"', {
402 'action_name': 'node_dtrace_header',
403 'inputs': [ 'src/node_provider.d' ],
404 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
405 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
406 '-o', '<@(_outputs)' ]
413 'target_name': 'node_systemtap_header',
416 [ 'node_use_systemtap=="true"', {
419 'action_name': 'node_systemtap_header',
420 'inputs': [ 'src/node_systemtap.d' ],
421 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_systemtap.h' ],
422 'action': [ 'dtrace', '-h', '-C', '-s', '<@(_inputs)',
423 '-o', '<@(_outputs)' ]
430 'target_name': 'node_dtrace_provider',
433 [ 'node_use_dtrace=="true" and OS!="mac"', {
436 'action_name': 'node_dtrace_provider_o',
438 'src/node_provider.d',
439 '<(OBJ_DIR)/node/src/node_dtrace.o'
442 '<(OBJ_DIR)/node/src/node_dtrace_provider.o'
444 'action': [ 'dtrace', '-G', '-xnolibs', '-s', '<@(_inputs)',
445 '-o', '<@(_outputs)' ]
452 'target_name': 'node_dtrace_ustack',
455 [ 'node_use_dtrace=="true" and OS!="mac"', {
458 'action_name': 'node_dtrace_ustack_constants',
463 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
466 'tools/genv8constants.py',
472 'action_name': 'node_dtrace_ustack',
475 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
478 '<(OBJ_DIR)/node/src/node_dtrace_ustack.o'
481 [ 'target_arch=="ia32"', {
483 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
484 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
487 [ 'target_arch=="x64"', {
489 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
490 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
500 'target_name': 'specialize_node_d',
503 [ 'node_use_dtrace=="true"', {
506 'action_name': 'specialize_node_d',
511 '<(PRODUCT_DIR)/node.d',
514 'tools/specialize_node_d.py',