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_use_mdb%': 'false',
16 'node_v8_options%': '',
19 'lib/_debug_agent.js',
24 'lib/child_process.js',
37 'lib/_http_client.js',
38 'lib/_http_common.js',
39 'lib/_http_incoming.js',
40 'lib/_http_outgoing.js',
41 'lib/_http_server.js',
54 'lib/_stream_readable.js',
55 'lib/_stream_writable.js',
56 'lib/_stream_duplex.js',
57 'lib/_stream_transform.js',
58 'lib/_stream_passthrough.js',
59 'lib/_stream_wrap.js',
60 'lib/string_decoder.js',
78 'target_name': 'iojs',
83 'deps/cares/cares.gyp:cares'
88 'tools/msvs/genfiles',
90 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
96 'src/fs_event_wrap.cc',
101 'src/node_buffer.cc',
102 'src/node_constants.cc',
103 'src/node_contextify.cc',
105 'src/node_http_parser.cc',
106 'src/node_javascript.cc',
110 'src/node_v8_platform.cc',
111 'src/node_stat_watcher.cc',
112 'src/node_watchdog.cc',
116 'src/signal_wrap.cc',
119 'src/string_bytes.cc',
120 'src/stream_base.cc',
121 'src/stream_wrap.cc',
125 'src/process_wrap.cc',
128 # headers to make for a more pleasant IDE experience
130 'src/async-wrap-inl.h',
132 'src/base-object-inl.h',
140 'src/node_constants.h',
142 'src/node_http_parser.h',
143 'src/node_internals.h',
144 'src/node_javascript.h',
145 'src/node_root_certs.h',
146 'src/node_version.h',
147 'src/node_watchdog.h',
156 'src/req-wrap-inl.h',
157 'src/string_bytes.h',
159 'src/stream_base-inl.h',
165 'deps/http_parser/http_parser.h',
166 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
167 # javascript files to make for an even more pleasant IDE experience
169 # node.gyp is added to the project by default.
174 'NODE_ARCH="<(target_arch)"',
175 'NODE_PLATFORM="<(OS)"',
176 'NODE_TAG="<(node_tag)"',
177 'NODE_V8_OPTIONS="<(node_v8_options)"',
178 'NODE_WANT_INTERNALS=1',
182 [ 'v8_enable_i18n_support==1', {
183 'defines': [ 'NODE_HAVE_I18N_SUPPORT=1' ],
185 '<(icu_gyp_path):icui18n',
186 '<(icu_gyp_path):icuuc',
189 [ 'icu_small=="true"', {
190 'defines': [ 'NODE_HAVE_SMALL_ICU=1' ],
193 [ 'node_use_openssl=="true"', {
194 'defines': [ 'HAVE_OPENSSL=1' ],
196 'src/node_crypto.cc',
197 'src/node_crypto_bio.cc',
198 'src/node_crypto_clienthello.cc',
200 'src/node_crypto_bio.h',
201 'src/node_crypto_clienthello.h',
206 [ 'node_shared_openssl=="false"', {
208 './deps/openssl/openssl.gyp:openssl',
211 './deps/openssl/openssl.gyp:openssl-cli',
213 # Do not let unused OpenSSL symbols to slip away
216 '-Wl,-force_load,<(PRODUCT_DIR)/libopenssl.a',
220 ['OS in "linux freebsd"', {
222 '-Wl,--whole-archive <(PRODUCT_DIR)/libopenssl.a -Wl,--no-whole-archive',
228 'defines': [ 'HAVE_OPENSSL=0' ]
230 [ 'node_use_dtrace=="true"', {
231 'defines': [ 'HAVE_DTRACE=1' ],
233 'node_dtrace_header',
236 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
239 # DTrace is supported on linux, solaris, mac, and bsd. There are
240 # three object files associated with DTrace support, but they're
241 # not all used all the time:
243 # node_dtrace.o all configurations
244 # node_dtrace_ustack.o not supported on mac and linux
245 # node_dtrace_provider.o All except OS X. "dtrace -G" is not
248 # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
249 # actually exist. They're listed here to trick GYP into linking the
250 # corresponding object files into the final "node" executable. These
251 # object files are generated by "dtrace -G" using custom actions
252 # below, and the GYP-generated Makefiles will properly build them when
255 'sources': [ 'src/node_dtrace.cc' ],
259 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
262 [ 'OS!="mac" and OS!="linux"', {
264 'src/node_dtrace_ustack.cc',
265 'src/node_dtrace_provider.cc',
270 [ 'node_use_lttng=="true"', {
271 'defines': [ 'HAVE_LTTNG=1' ],
272 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
273 'libraries': [ '-llttng-ust' ],
278 [ 'node_use_mdb=="true"', {
279 'dependencies': [ 'node_mdb' ],
280 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
285 [ 'node_use_etw=="true"', {
286 'defines': [ 'HAVE_ETW=1' ],
287 'dependencies': [ 'node_etw' ],
289 'src/node_win32_etw_provider.h',
290 'src/node_win32_etw_provider-inl.h',
291 'src/node_win32_etw_provider.cc',
292 'src/node_dtrace.cc',
293 'tools/msvs/genfiles/node_etw_provider.h',
294 'tools/msvs/genfiles/node_etw_provider.rc',
297 [ 'node_use_perfctr=="true"', {
298 'defines': [ 'HAVE_PERFCTR=1' ],
299 'dependencies': [ 'node_perfctr' ],
301 'src/node_win32_perfctr_provider.h',
302 'src/node_win32_perfctr_provider.cc',
303 'src/node_counters.cc',
304 'src/node_counters.h',
305 'tools/msvs/genfiles/node_perfctr_provider.rc',
308 [ 'v8_postmortem_support=="true"', {
309 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:postmortem-metadata' ],
312 '-Wl,-force_load,<(V8_BASE)',
316 [ 'node_shared_v8=="false"', {
318 'deps/v8/include/v8.h',
319 'deps/v8/include/v8-debug.h',
321 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
324 [ 'node_shared_zlib=="false"', {
325 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
328 [ 'node_shared_http_parser=="false"', {
329 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
332 [ 'node_shared_libuv=="false"', {
333 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
341 'NODE_PLATFORM="win"',
345 # we need to use node's preferred "win32" rather than gyp's preferred "win"
346 'NODE_PLATFORM="win32"',
349 'libraries': [ '-lpsapi.lib' ]
351 'defines': [ '__POSIX__' ],
354 # linking Corefoundation is needed since certain OSX debugging tools
355 # like Instruments require it for some features
356 'libraries': [ '-framework CoreFoundation' ],
358 'NODE_PLATFORM="mac"',
361 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
362 'NODE_PLATFORM="darwin"',
377 'NODE_PLATFORM="solaris"',
380 # we need to use node's preferred "sunos"
381 # rather than gyp's preferred "solaris"
382 'NODE_PLATFORM="sunos"',
385 [ 'OS=="freebsd" or OS=="linux"', {
386 'ldflags': [ '-Wl,-z,noexecstack' ],
389 'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],
392 'OS in "linux freebsd" and node_shared_v8=="false"', {
394 '-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
400 'EmbedManifest': 'true',
401 'AdditionalManifestFiles': 'src/res/node.exe.extra.manifest'
405 # generate ETW header and resource files
407 'target_name': 'node_etw',
410 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
413 'action_name': 'node_etw',
414 'inputs': [ 'src/res/node_etw_provider.man' ],
416 'tools/msvs/genfiles/node_etw_provider.rc',
417 'tools/msvs/genfiles/node_etw_provider.h',
418 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
420 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
426 # generate perf counter header and resource files
428 'target_name': 'node_perfctr',
431 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
434 'action_name': 'node_perfctr_man',
435 'inputs': [ 'src/res/node_perfctr_provider.man' ],
437 'tools/msvs/genfiles/node_perfctr_provider.h',
438 'tools/msvs/genfiles/node_perfctr_provider.rc',
439 'tools/msvs/genfiles/MSG00001.BIN',
441 'action': [ 'ctrpp <@(_inputs) '
442 '-o tools/msvs/genfiles/node_perfctr_provider.h '
443 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
451 'target_name': 'node_js2c',
453 'toolsets': ['host'],
456 'action_name': 'node_js2c',
462 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
465 [ 'node_use_dtrace=="false" and node_use_etw=="false"', {
466 'inputs': [ 'src/notrace_macros.py' ]
468 ['node_use_lttng=="false"', {
469 'inputs': [ 'src/nolttng_macros.py' ]
471 [ 'node_use_perfctr=="false"', {
472 'inputs': [ 'src/perfctr_macros.py' ]
485 'target_name': 'node_dtrace_header',
488 [ 'node_use_dtrace=="true" and OS!="linux"', {
491 'action_name': 'node_dtrace_header',
492 'inputs': [ 'src/node_provider.d' ],
493 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
494 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
495 '-o', '<@(_outputs)' ]
499 [ 'node_use_dtrace=="true" and OS=="linux"', {
502 'action_name': 'node_dtrace_header',
503 'inputs': [ 'src/node_provider.d' ],
504 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
505 'action': [ 'dtrace', '-h', '-s', '<@(_inputs)',
506 '-o', '<@(_outputs)' ]
513 'target_name': 'node_mdb',
516 [ 'node_use_mdb=="true"',
518 'dependencies': [ 'deps/mdb_v8/mdb_v8.gyp:mdb_v8' ],
521 'action_name': 'node_mdb',
522 'inputs': [ '<(PRODUCT_DIR)/obj.target/deps/mdb_v8/mdb_v8.so' ],
523 'outputs': [ '<(PRODUCT_DIR)/obj.target/node/src/node_mdb.o' ],
525 [ 'target_arch=="ia32"', {
526 'action': [ 'elfwrap', '-o', '<@(_outputs)', '<@(_inputs)' ],
528 [ 'target_arch=="x64"', {
529 'action': [ 'elfwrap', '-64', '-o', '<@(_outputs)', '<@(_inputs)' ],
539 'target_name': 'node_dtrace_provider',
542 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
545 'action_name': 'node_dtrace_provider_o',
547 '<(OBJ_DIR)/iojs/src/node_dtrace.o',
550 '<(OBJ_DIR)/iojs/src/node_dtrace_provider.o'
552 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
553 '<@(_inputs)', '-o', '<@(_outputs)' ]
557 [ 'node_use_dtrace=="true" and OS=="linux"', {
560 'action_name': 'node_dtrace_provider_o',
561 'inputs': [ 'src/node_provider.d' ],
563 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
566 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
574 'target_name': 'node_dtrace_ustack',
577 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
580 'action_name': 'node_dtrace_ustack_constants',
585 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
588 'tools/genv8constants.py',
594 'action_name': 'node_dtrace_ustack',
597 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
600 '<(OBJ_DIR)/iojs/src/node_dtrace_ustack.o'
603 [ 'target_arch=="ia32"', {
605 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
606 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
609 [ 'target_arch=="x64"', {
611 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
612 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
622 'target_name': 'specialize_node_d',
625 [ 'node_use_dtrace=="true"', {
628 'action_name': 'specialize_node_d',
633 '<(PRODUCT_DIR)/node.d',
636 'tools/specialize_node_d.py',