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',
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_mdb=="true"', {
278 'dependencies': [ 'node_mdb' ],
279 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
284 [ 'node_use_etw=="true"', {
285 'defines': [ 'HAVE_ETW=1' ],
286 'dependencies': [ 'node_etw' ],
288 'src/node_win32_etw_provider.h',
289 'src/node_win32_etw_provider-inl.h',
290 'src/node_win32_etw_provider.cc',
291 'src/node_dtrace.cc',
292 'tools/msvs/genfiles/node_etw_provider.h',
293 'tools/msvs/genfiles/node_etw_provider.rc',
296 [ 'node_use_perfctr=="true"', {
297 'defines': [ 'HAVE_PERFCTR=1' ],
298 'dependencies': [ 'node_perfctr' ],
300 'src/node_win32_perfctr_provider.h',
301 'src/node_win32_perfctr_provider.cc',
302 'src/node_counters.cc',
303 'src/node_counters.h',
304 'tools/msvs/genfiles/node_perfctr_provider.rc',
307 [ 'v8_postmortem_support=="true"', {
308 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:postmortem-metadata' ],
311 '-Wl,-force_load,<(V8_BASE)',
315 [ 'node_shared_v8=="false"', {
317 'deps/v8/include/v8.h',
318 'deps/v8/include/v8-debug.h',
320 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
323 [ 'node_shared_zlib=="false"', {
324 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
327 [ 'node_shared_http_parser=="false"', {
328 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
331 [ 'node_shared_libuv=="false"', {
332 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
340 'NODE_PLATFORM="win"',
344 # we need to use node's preferred "win32" rather than gyp's preferred "win"
345 'NODE_PLATFORM="win32"',
348 'libraries': [ '-lpsapi.lib' ]
350 'defines': [ '__POSIX__' ],
353 # linking Corefoundation is needed since certain OSX debugging tools
354 # like Instruments require it for some features
355 'libraries': [ '-framework CoreFoundation' ],
357 'NODE_PLATFORM="mac"',
360 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
361 'NODE_PLATFORM="darwin"',
376 'NODE_PLATFORM="solaris"',
379 # we need to use node's preferred "sunos"
380 # rather than gyp's preferred "solaris"
381 'NODE_PLATFORM="sunos"',
384 [ 'OS=="freebsd" or OS=="linux"', {
385 'ldflags': [ '-Wl,-z,noexecstack' ],
388 'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],
391 'OS in "linux freebsd" and node_shared_v8=="false"', {
393 '-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
399 'EmbedManifest': 'true',
400 'AdditionalManifestFiles': 'src/res/node.exe.extra.manifest'
404 # generate ETW header and resource files
406 'target_name': 'node_etw',
409 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
412 'action_name': 'node_etw',
413 'inputs': [ 'src/res/node_etw_provider.man' ],
415 'tools/msvs/genfiles/node_etw_provider.rc',
416 'tools/msvs/genfiles/node_etw_provider.h',
417 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
419 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
425 # generate perf counter header and resource files
427 'target_name': 'node_perfctr',
430 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
433 'action_name': 'node_perfctr_man',
434 'inputs': [ 'src/res/node_perfctr_provider.man' ],
436 'tools/msvs/genfiles/node_perfctr_provider.h',
437 'tools/msvs/genfiles/node_perfctr_provider.rc',
438 'tools/msvs/genfiles/MSG00001.BIN',
440 'action': [ 'ctrpp <@(_inputs) '
441 '-o tools/msvs/genfiles/node_perfctr_provider.h '
442 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
450 'target_name': 'node_js2c',
452 'toolsets': ['host'],
455 'action_name': 'node_js2c',
461 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
464 [ 'node_use_dtrace=="false" and node_use_etw=="false"', {
465 'inputs': [ 'src/notrace_macros.py' ]
467 ['node_use_lttng=="false"', {
468 'inputs': [ 'src/nolttng_macros.py' ]
470 [ 'node_use_perfctr=="false"', {
471 'inputs': [ 'src/perfctr_macros.py' ]
484 'target_name': 'node_dtrace_header',
487 [ 'node_use_dtrace=="true" and OS!="linux"', {
490 'action_name': 'node_dtrace_header',
491 'inputs': [ 'src/node_provider.d' ],
492 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
493 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
494 '-o', '<@(_outputs)' ]
498 [ 'node_use_dtrace=="true" and OS=="linux"', {
501 'action_name': 'node_dtrace_header',
502 'inputs': [ 'src/node_provider.d' ],
503 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
504 'action': [ 'dtrace', '-h', '-s', '<@(_inputs)',
505 '-o', '<@(_outputs)' ]
512 'target_name': 'node_mdb',
515 [ 'node_use_mdb=="true"',
517 'dependencies': [ 'deps/mdb_v8/mdb_v8.gyp:mdb_v8' ],
520 'action_name': 'node_mdb',
521 'inputs': [ '<(PRODUCT_DIR)/obj.target/deps/mdb_v8/mdb_v8.so' ],
522 'outputs': [ '<(PRODUCT_DIR)/obj.target/node/src/node_mdb.o' ],
524 [ 'target_arch=="ia32"', {
525 'action': [ 'elfwrap', '-o', '<@(_outputs)', '<@(_inputs)' ],
527 [ 'target_arch=="x64"', {
528 'action': [ 'elfwrap', '-64', '-o', '<@(_outputs)', '<@(_inputs)' ],
538 'target_name': 'node_dtrace_provider',
541 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
544 'action_name': 'node_dtrace_provider_o',
546 '<(OBJ_DIR)/iojs/src/node_dtrace.o',
549 '<(OBJ_DIR)/iojs/src/node_dtrace_provider.o'
551 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
552 '<@(_inputs)', '-o', '<@(_outputs)' ]
556 [ 'node_use_dtrace=="true" and OS=="linux"', {
559 'action_name': 'node_dtrace_provider_o',
560 'inputs': [ 'src/node_provider.d' ],
562 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
565 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
573 'target_name': 'node_dtrace_ustack',
576 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
579 'action_name': 'node_dtrace_ustack_constants',
584 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
587 'tools/genv8constants.py',
593 'action_name': 'node_dtrace_ustack',
596 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
599 '<(OBJ_DIR)/iojs/src/node_dtrace_ustack.o'
602 [ 'target_arch=="ia32"', {
604 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
605 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
608 [ 'target_arch=="x64"', {
610 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
611 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
621 'target_name': 'specialize_node_d',
624 [ 'node_use_dtrace=="true"', {
627 'action_name': 'specialize_node_d',
632 '<(PRODUCT_DIR)/node.d',
635 'tools/specialize_node_d.py',