3 'v8_use_snapshot%': 'false',
4 'node_use_dtrace%': 'false',
5 'node_use_lttng%': 'false',
6 'node_use_etw%': 'false',
7 'node_use_perfctr%': 'false',
8 'node_has_winsdk%': 'false',
9 'node_shared_v8%': 'false',
10 'node_shared_zlib%': 'false',
11 'node_shared_http_parser%': 'false',
12 'node_shared_libuv%': 'false',
13 'node_use_openssl%': 'true',
14 'node_shared_openssl%': 'false',
15 'node_v8_options%': '',
18 'lib/_debug_agent.js',
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',
53 'lib/_stream_readable.js',
54 'lib/_stream_writable.js',
55 'lib/_stream_duplex.js',
56 'lib/_stream_transform.js',
57 'lib/_stream_passthrough.js',
58 'lib/_stream_wrap.js',
59 'lib/string_decoder.js',
77 'target_name': 'iojs',
82 'deps/cares/cares.gyp:cares'
87 'tools/msvs/genfiles',
89 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
95 'src/fs_event_wrap.cc',
100 'src/node_buffer.cc',
101 'src/node_constants.cc',
102 'src/node_contextify.cc',
104 'src/node_http_parser.cc',
105 'src/node_javascript.cc',
109 'src/node_v8_platform.cc',
110 'src/node_stat_watcher.cc',
111 'src/node_watchdog.cc',
115 'src/signal_wrap.cc',
118 'src/string_bytes.cc',
119 'src/stream_base.cc',
120 'src/stream_wrap.cc',
124 'src/process_wrap.cc',
127 # headers to make for a more pleasant IDE experience
129 'src/async-wrap-inl.h',
131 'src/base-object-inl.h',
139 'src/node_constants.h',
141 'src/node_http_parser.h',
142 'src/node_internals.h',
143 'src/node_javascript.h',
144 'src/node_root_certs.h',
145 'src/node_version.h',
146 'src/node_watchdog.h',
155 'src/req-wrap-inl.h',
156 'src/string_bytes.h',
158 'src/stream_base-inl.h',
164 'deps/http_parser/http_parser.h',
165 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
166 # javascript files to make for an even more pleasant IDE experience
168 # node.gyp is added to the project by default.
173 'NODE_ARCH="<(target_arch)"',
174 'NODE_PLATFORM="<(OS)"',
175 'NODE_TAG="<(node_tag)"',
176 'NODE_V8_OPTIONS="<(node_v8_options)"',
177 'NODE_WANT_INTERNALS=1',
181 [ 'v8_enable_i18n_support==1', {
182 'defines': [ 'NODE_HAVE_I18N_SUPPORT=1' ],
184 '<(icu_gyp_path):icui18n',
185 '<(icu_gyp_path):icuuc',
188 [ 'icu_small=="true"', {
189 'defines': [ 'NODE_HAVE_SMALL_ICU=1' ],
192 [ 'node_use_openssl=="true"', {
193 'defines': [ 'HAVE_OPENSSL=1' ],
195 'src/node_crypto.cc',
196 'src/node_crypto_bio.cc',
197 'src/node_crypto_clienthello.cc',
199 'src/node_crypto_bio.h',
200 'src/node_crypto_clienthello.h',
205 [ 'node_shared_openssl=="false"', {
207 './deps/openssl/openssl.gyp:openssl',
210 './deps/openssl/openssl.gyp:openssl-cli',
212 # Do not let unused OpenSSL symbols to slip away
215 '-Wl,-force_load,<(PRODUCT_DIR)/libopenssl.a',
219 ['OS in "linux freebsd"', {
221 '-Wl,--whole-archive <(PRODUCT_DIR)/libopenssl.a -Wl,--no-whole-archive',
227 'defines': [ 'HAVE_OPENSSL=0' ]
229 [ 'node_use_dtrace=="true"', {
230 'defines': [ 'HAVE_DTRACE=1' ],
232 'node_dtrace_header',
235 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
238 # DTrace is supported on linux, solaris, mac, and bsd. There are
239 # three object files associated with DTrace support, but they're
240 # not all used all the time:
242 # node_dtrace.o all configurations
243 # node_dtrace_ustack.o not supported on mac and linux
244 # node_dtrace_provider.o All except OS X. "dtrace -G" is not
247 # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
248 # actually exist. They're listed here to trick GYP into linking the
249 # corresponding object files into the final "node" executable. These
250 # object files are generated by "dtrace -G" using custom actions
251 # below, and the GYP-generated Makefiles will properly build them when
254 'sources': [ 'src/node_dtrace.cc' ],
258 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
261 [ 'OS!="mac" and OS!="linux"', {
263 'src/node_dtrace_ustack.cc',
264 'src/node_dtrace_provider.cc',
269 [ 'node_use_lttng=="true"', {
270 'defines': [ 'HAVE_LTTNG=1' ],
271 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
272 'libraries': [ '-llttng-ust' ],
277 [ 'node_use_etw=="true"', {
278 'defines': [ 'HAVE_ETW=1' ],
279 'dependencies': [ 'node_etw' ],
281 'src/node_win32_etw_provider.h',
282 'src/node_win32_etw_provider-inl.h',
283 'src/node_win32_etw_provider.cc',
284 'src/node_dtrace.cc',
285 'tools/msvs/genfiles/node_etw_provider.h',
286 'tools/msvs/genfiles/node_etw_provider.rc',
289 [ 'node_use_perfctr=="true"', {
290 'defines': [ 'HAVE_PERFCTR=1' ],
291 'dependencies': [ 'node_perfctr' ],
293 'src/node_win32_perfctr_provider.h',
294 'src/node_win32_perfctr_provider.cc',
295 'src/node_counters.cc',
296 'src/node_counters.h',
297 'tools/msvs/genfiles/node_perfctr_provider.rc',
300 [ 'v8_postmortem_support=="true"', {
301 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:postmortem-metadata' ],
304 '-Wl,-force_load,<(V8_BASE)',
308 [ 'node_shared_v8=="false"', {
310 'deps/v8/include/v8.h',
311 'deps/v8/include/v8-debug.h',
313 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
316 [ 'node_shared_zlib=="false"', {
317 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
320 [ 'node_shared_http_parser=="false"', {
321 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
324 [ 'node_shared_libuv=="false"', {
325 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
333 'NODE_PLATFORM="win"',
337 # we need to use node's preferred "win32" rather than gyp's preferred "win"
338 'NODE_PLATFORM="win32"',
341 'libraries': [ '-lpsapi.lib' ]
343 'defines': [ '__POSIX__' ],
346 # linking Corefoundation is needed since certain OSX debugging tools
347 # like Instruments require it for some features
348 'libraries': [ '-framework CoreFoundation' ],
350 'NODE_PLATFORM="mac"',
353 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
354 'NODE_PLATFORM="darwin"',
369 'NODE_PLATFORM="solaris"',
372 # we need to use node's preferred "sunos"
373 # rather than gyp's preferred "solaris"
374 'NODE_PLATFORM="sunos"',
377 [ 'OS=="freebsd" or OS=="linux"', {
378 'ldflags': [ '-Wl,-z,noexecstack' ],
381 'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],
384 'OS in "linux freebsd" and node_shared_v8=="false"', {
386 '-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
392 'EmbedManifest': 'true',
393 'AdditionalManifestFiles': 'src/res/node.exe.extra.manifest'
397 # generate ETW header and resource files
399 'target_name': 'node_etw',
402 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
405 'action_name': 'node_etw',
406 'inputs': [ 'src/res/node_etw_provider.man' ],
408 'tools/msvs/genfiles/node_etw_provider.rc',
409 'tools/msvs/genfiles/node_etw_provider.h',
410 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
412 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
418 # generate perf counter header and resource files
420 'target_name': 'node_perfctr',
423 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
426 'action_name': 'node_perfctr_man',
427 'inputs': [ 'src/res/node_perfctr_provider.man' ],
429 'tools/msvs/genfiles/node_perfctr_provider.h',
430 'tools/msvs/genfiles/node_perfctr_provider.rc',
431 'tools/msvs/genfiles/MSG00001.BIN',
433 'action': [ 'ctrpp <@(_inputs) '
434 '-o tools/msvs/genfiles/node_perfctr_provider.h '
435 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
443 'target_name': 'node_js2c',
445 'toolsets': ['host'],
448 'action_name': 'node_js2c',
454 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
457 [ 'node_use_dtrace=="false" and node_use_etw=="false"', {
458 'inputs': [ 'src/notrace_macros.py' ]
460 ['node_use_lttng=="false"', {
461 'inputs': [ 'src/nolttng_macros.py' ]
463 [ 'node_use_perfctr=="false"', {
464 'inputs': [ 'src/perfctr_macros.py' ]
477 'target_name': 'node_dtrace_header',
480 [ 'node_use_dtrace=="true" and OS!="linux"', {
483 'action_name': 'node_dtrace_header',
484 'inputs': [ 'src/node_provider.d' ],
485 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
486 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
487 '-o', '<@(_outputs)' ]
491 [ 'node_use_dtrace=="true" and OS=="linux"', {
494 'action_name': 'node_dtrace_header',
495 'inputs': [ 'src/node_provider.d' ],
496 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
497 'action': [ 'dtrace', '-h', '-s', '<@(_inputs)',
498 '-o', '<@(_outputs)' ]
505 'target_name': 'node_dtrace_provider',
508 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
511 'action_name': 'node_dtrace_provider_o',
513 '<(OBJ_DIR)/iojs/src/node_dtrace.o',
516 '<(OBJ_DIR)/iojs/src/node_dtrace_provider.o'
518 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
519 '<@(_inputs)', '-o', '<@(_outputs)' ]
523 [ 'node_use_dtrace=="true" and OS=="linux"', {
526 'action_name': 'node_dtrace_provider_o',
527 'inputs': [ 'src/node_provider.d' ],
529 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
532 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
540 'target_name': 'node_dtrace_ustack',
543 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
546 'action_name': 'node_dtrace_ustack_constants',
551 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
554 'tools/genv8constants.py',
560 'action_name': 'node_dtrace_ustack',
563 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
566 '<(OBJ_DIR)/iojs/src/node_dtrace_ustack.o'
569 [ 'target_arch=="ia32"', {
571 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
572 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
575 [ 'target_arch=="x64"', {
577 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
578 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
588 'target_name': 'specialize_node_d',
591 [ 'node_use_dtrace=="true"', {
594 'action_name': 'specialize_node_d',
599 '<(PRODUCT_DIR)/node.d',
602 'tools/specialize_node_d.py',