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',
73 'lib/internal/freelist.js',
79 'target_name': 'iojs',
84 'deps/cares/cares.gyp:cares'
89 'tools/msvs/genfiles',
91 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
97 'src/fs_event_wrap.cc',
102 'src/node_buffer.cc',
103 'src/node_constants.cc',
104 'src/node_contextify.cc',
106 'src/node_http_parser.cc',
107 'src/node_javascript.cc',
111 'src/node_v8_platform.cc',
112 'src/node_stat_watcher.cc',
113 'src/node_watchdog.cc',
117 'src/signal_wrap.cc',
120 'src/string_bytes.cc',
121 'src/stream_base.cc',
122 'src/stream_wrap.cc',
126 'src/process_wrap.cc',
129 # headers to make for a more pleasant IDE experience
131 'src/async-wrap-inl.h',
133 'src/base-object-inl.h',
141 'src/node_constants.h',
143 'src/node_http_parser.h',
144 'src/node_internals.h',
145 'src/node_javascript.h',
146 'src/node_root_certs.h',
147 'src/node_version.h',
148 'src/node_watchdog.h',
157 'src/req-wrap-inl.h',
158 'src/string_bytes.h',
160 'src/stream_base-inl.h',
166 'deps/http_parser/http_parser.h',
167 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
168 # javascript files to make for an even more pleasant IDE experience
170 # node.gyp is added to the project by default.
175 'NODE_ARCH="<(target_arch)"',
176 'NODE_PLATFORM="<(OS)"',
177 'NODE_TAG="<(node_tag)"',
178 'NODE_V8_OPTIONS="<(node_v8_options)"',
179 'NODE_WANT_INTERNALS=1',
183 [ 'v8_enable_i18n_support==1', {
184 'defines': [ 'NODE_HAVE_I18N_SUPPORT=1' ],
186 '<(icu_gyp_path):icui18n',
187 '<(icu_gyp_path):icuuc',
190 [ 'icu_small=="true"', {
191 'defines': [ 'NODE_HAVE_SMALL_ICU=1' ],
194 [ 'node_use_openssl=="true"', {
195 'defines': [ 'HAVE_OPENSSL=1' ],
197 'src/node_crypto.cc',
198 'src/node_crypto_bio.cc',
199 'src/node_crypto_clienthello.cc',
201 'src/node_crypto_bio.h',
202 'src/node_crypto_clienthello.h',
207 [ 'node_shared_openssl=="false"', {
209 './deps/openssl/openssl.gyp:openssl',
212 './deps/openssl/openssl.gyp:openssl-cli',
214 # Do not let unused OpenSSL symbols to slip away
217 '-Wl,-force_load,<(PRODUCT_DIR)/libopenssl.a',
221 ['OS in "linux freebsd"', {
223 '-Wl,--whole-archive <(PRODUCT_DIR)/libopenssl.a -Wl,--no-whole-archive',
229 'defines': [ 'HAVE_OPENSSL=0' ]
231 [ 'node_use_dtrace=="true"', {
232 'defines': [ 'HAVE_DTRACE=1' ],
234 'node_dtrace_header',
237 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
240 # DTrace is supported on linux, solaris, mac, and bsd. There are
241 # three object files associated with DTrace support, but they're
242 # not all used all the time:
244 # node_dtrace.o all configurations
245 # node_dtrace_ustack.o not supported on mac and linux
246 # node_dtrace_provider.o All except OS X. "dtrace -G" is not
249 # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
250 # actually exist. They're listed here to trick GYP into linking the
251 # corresponding object files into the final "node" executable. These
252 # object files are generated by "dtrace -G" using custom actions
253 # below, and the GYP-generated Makefiles will properly build them when
256 'sources': [ 'src/node_dtrace.cc' ],
260 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
263 [ 'OS!="mac" and OS!="linux"', {
265 'src/node_dtrace_ustack.cc',
266 'src/node_dtrace_provider.cc',
271 [ 'node_use_lttng=="true"', {
272 'defines': [ 'HAVE_LTTNG=1' ],
273 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
274 'libraries': [ '-llttng-ust' ],
279 [ 'node_use_etw=="true"', {
280 'defines': [ 'HAVE_ETW=1' ],
281 'dependencies': [ 'node_etw' ],
283 'src/node_win32_etw_provider.h',
284 'src/node_win32_etw_provider-inl.h',
285 'src/node_win32_etw_provider.cc',
286 'src/node_dtrace.cc',
287 'tools/msvs/genfiles/node_etw_provider.h',
288 'tools/msvs/genfiles/node_etw_provider.rc',
291 [ 'node_use_perfctr=="true"', {
292 'defines': [ 'HAVE_PERFCTR=1' ],
293 'dependencies': [ 'node_perfctr' ],
295 'src/node_win32_perfctr_provider.h',
296 'src/node_win32_perfctr_provider.cc',
297 'src/node_counters.cc',
298 'src/node_counters.h',
299 'tools/msvs/genfiles/node_perfctr_provider.rc',
302 [ 'v8_postmortem_support=="true"', {
303 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:postmortem-metadata' ],
306 '-Wl,-force_load,<(V8_BASE)',
310 [ 'node_shared_v8=="false"', {
312 'deps/v8/include/v8.h',
313 'deps/v8/include/v8-debug.h',
315 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
318 [ 'node_shared_zlib=="false"', {
319 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
322 [ 'node_shared_http_parser=="false"', {
323 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
326 [ 'node_shared_libuv=="false"', {
327 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
335 'NODE_PLATFORM="win"',
339 # we need to use node's preferred "win32" rather than gyp's preferred "win"
340 'NODE_PLATFORM="win32"',
343 'libraries': [ '-lpsapi.lib' ]
345 'defines': [ '__POSIX__' ],
348 # linking Corefoundation is needed since certain OSX debugging tools
349 # like Instruments require it for some features
350 'libraries': [ '-framework CoreFoundation' ],
352 'NODE_PLATFORM="mac"',
355 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
356 'NODE_PLATFORM="darwin"',
371 'NODE_PLATFORM="solaris"',
374 # we need to use node's preferred "sunos"
375 # rather than gyp's preferred "solaris"
376 'NODE_PLATFORM="sunos"',
379 [ 'OS=="freebsd" or OS=="linux"', {
380 'ldflags': [ '-Wl,-z,noexecstack' ],
383 'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],
386 'OS in "linux freebsd" and node_shared_v8=="false"', {
388 '-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
394 'EmbedManifest': 'true',
395 'AdditionalManifestFiles': 'src/res/node.exe.extra.manifest'
399 # generate ETW header and resource files
401 'target_name': 'node_etw',
404 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
407 'action_name': 'node_etw',
408 'inputs': [ 'src/res/node_etw_provider.man' ],
410 'tools/msvs/genfiles/node_etw_provider.rc',
411 'tools/msvs/genfiles/node_etw_provider.h',
412 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
414 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
420 # generate perf counter header and resource files
422 'target_name': 'node_perfctr',
425 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
428 'action_name': 'node_perfctr_man',
429 'inputs': [ 'src/res/node_perfctr_provider.man' ],
431 'tools/msvs/genfiles/node_perfctr_provider.h',
432 'tools/msvs/genfiles/node_perfctr_provider.rc',
433 'tools/msvs/genfiles/MSG00001.BIN',
435 'action': [ 'ctrpp <@(_inputs) '
436 '-o tools/msvs/genfiles/node_perfctr_provider.h '
437 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
445 'target_name': 'node_js2c',
447 'toolsets': ['host'],
450 'action_name': 'node_js2c',
456 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
459 [ 'node_use_dtrace=="false" and node_use_etw=="false"', {
460 'inputs': [ 'src/notrace_macros.py' ]
462 ['node_use_lttng=="false"', {
463 'inputs': [ 'src/nolttng_macros.py' ]
465 [ 'node_use_perfctr=="false"', {
466 'inputs': [ 'src/perfctr_macros.py' ]
479 'target_name': 'node_dtrace_header',
482 [ 'node_use_dtrace=="true" and OS!="linux"', {
485 'action_name': 'node_dtrace_header',
486 'inputs': [ 'src/node_provider.d' ],
487 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
488 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
489 '-o', '<@(_outputs)' ]
493 [ 'node_use_dtrace=="true" and OS=="linux"', {
496 'action_name': 'node_dtrace_header',
497 'inputs': [ 'src/node_provider.d' ],
498 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
499 'action': [ 'dtrace', '-h', '-s', '<@(_inputs)',
500 '-o', '<@(_outputs)' ]
507 'target_name': 'node_dtrace_provider',
510 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
513 'action_name': 'node_dtrace_provider_o',
515 '<(OBJ_DIR)/iojs/src/node_dtrace.o',
518 '<(OBJ_DIR)/iojs/src/node_dtrace_provider.o'
520 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
521 '<@(_inputs)', '-o', '<@(_outputs)' ]
525 [ 'node_use_dtrace=="true" and OS=="linux"', {
528 'action_name': 'node_dtrace_provider_o',
529 'inputs': [ 'src/node_provider.d' ],
531 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
534 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
542 'target_name': 'node_dtrace_ustack',
545 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
548 'action_name': 'node_dtrace_ustack_constants',
553 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
556 'tools/genv8constants.py',
562 'action_name': 'node_dtrace_ustack',
565 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
568 '<(OBJ_DIR)/iojs/src/node_dtrace_ustack.o'
571 [ 'target_arch=="ia32"', {
573 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
574 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
577 [ 'target_arch=="x64"', {
579 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
580 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
590 'target_name': 'specialize_node_d',
593 [ 'node_use_dtrace=="true"', {
596 'action_name': 'specialize_node_d',
601 '<(PRODUCT_DIR)/node.d',
604 'tools/specialize_node_d.py',