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_zlib%': 'false',
10 'node_shared_http_parser%': 'false',
11 'node_shared_libuv%': 'false',
12 'node_use_openssl%': 'true',
13 'node_shared_openssl%': 'false',
14 'node_v8_options%': '',
17 'lib/_debug_agent.js',
22 'lib/child_process.js',
35 'lib/_http_client.js',
36 'lib/_http_common.js',
37 'lib/_http_incoming.js',
38 'lib/_http_outgoing.js',
39 'lib/_http_server.js',
52 'lib/_stream_readable.js',
53 'lib/_stream_writable.js',
54 'lib/_stream_duplex.js',
55 'lib/_stream_transform.js',
56 'lib/_stream_passthrough.js',
57 'lib/_stream_wrap.js',
58 'lib/string_decoder.js',
72 'lib/internal/freelist.js',
78 'target_name': 'iojs',
83 'deps/cares/cares.gyp:cares',
84 'deps/v8/tools/gyp/v8.gyp:v8',
85 'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
90 'tools/msvs/genfiles',
92 '<(SHARED_INTERMEDIATE_DIR)', # for node_natives.h
93 'deps/v8' # include/v8_platform.h
99 'src/fs_event_wrap.cc',
101 'src/handle_wrap.cc',
104 'src/node_buffer.cc',
105 'src/node_constants.cc',
106 'src/node_contextify.cc',
108 'src/node_http_parser.cc',
109 'src/node_javascript.cc',
113 'src/node_stat_watcher.cc',
114 'src/node_watchdog.cc',
118 'src/signal_wrap.cc',
121 'src/string_bytes.cc',
122 'src/stream_base.cc',
123 'src/stream_wrap.cc',
127 'src/process_wrap.cc',
130 # headers to make for a more pleasant IDE experience
132 'src/async-wrap-inl.h',
134 'src/base-object-inl.h',
142 'src/node_constants.h',
144 'src/node_http_parser.h',
145 'src/node_internals.h',
146 'src/node_javascript.h',
147 'src/node_root_certs.h',
148 'src/node_version.h',
149 'src/node_watchdog.h',
158 'src/req-wrap-inl.h',
159 'src/string_bytes.h',
161 'src/stream_base-inl.h',
167 'deps/http_parser/http_parser.h',
168 'deps/v8/include/v8.h',
169 'deps/v8/include/v8-debug.h',
170 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
171 # javascript files to make for an even more pleasant IDE experience
173 # node.gyp is added to the project by default.
178 'NODE_ARCH="<(target_arch)"',
179 'NODE_PLATFORM="<(OS)"',
180 'NODE_TAG="<(node_tag)"',
181 'NODE_V8_OPTIONS="<(node_v8_options)"',
182 'NODE_WANT_INTERNALS=1',
186 [ 'v8_enable_i18n_support==1', {
187 'defines': [ 'NODE_HAVE_I18N_SUPPORT=1' ],
189 '<(icu_gyp_path):icui18n',
190 '<(icu_gyp_path):icuuc',
193 [ 'icu_small=="true"', {
194 'defines': [ 'NODE_HAVE_SMALL_ICU=1' ],
197 [ 'node_use_openssl=="true"', {
198 'defines': [ 'HAVE_OPENSSL=1' ],
200 'src/node_crypto.cc',
201 'src/node_crypto_bio.cc',
202 'src/node_crypto_clienthello.cc',
204 'src/node_crypto_bio.h',
205 'src/node_crypto_clienthello.h',
210 [ 'node_shared_openssl=="false"', {
212 './deps/openssl/openssl.gyp:openssl',
215 './deps/openssl/openssl.gyp:openssl-cli',
217 # Do not let unused OpenSSL symbols to slip away
220 '-Wl,-force_load,<(PRODUCT_DIR)/libopenssl.a',
224 ['OS in "linux freebsd"', {
226 '-Wl,--whole-archive <(PRODUCT_DIR)/libopenssl.a -Wl,--no-whole-archive',
232 'defines': [ 'HAVE_OPENSSL=0' ]
234 [ 'node_use_dtrace=="true"', {
235 'defines': [ 'HAVE_DTRACE=1' ],
237 'node_dtrace_header',
240 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
243 # DTrace is supported on linux, solaris, mac, and bsd. There are
244 # three object files associated with DTrace support, but they're
245 # not all used all the time:
247 # node_dtrace.o all configurations
248 # node_dtrace_ustack.o not supported on mac and linux
249 # node_dtrace_provider.o All except OS X. "dtrace -G" is not
252 # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
253 # actually exist. They're listed here to trick GYP into linking the
254 # corresponding object files into the final "node" executable. These
255 # object files are generated by "dtrace -G" using custom actions
256 # below, and the GYP-generated Makefiles will properly build them when
259 'sources': [ 'src/node_dtrace.cc' ],
263 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
266 [ 'OS!="mac" and OS!="linux"', {
268 'src/node_dtrace_ustack.cc',
269 'src/node_dtrace_provider.cc',
274 [ 'node_use_lttng=="true"', {
275 'defines': [ 'HAVE_LTTNG=1' ],
276 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
277 'libraries': [ '-llttng-ust' ],
282 [ 'node_use_etw=="true"', {
283 'defines': [ 'HAVE_ETW=1' ],
284 'dependencies': [ 'node_etw' ],
286 'src/node_win32_etw_provider.h',
287 'src/node_win32_etw_provider-inl.h',
288 'src/node_win32_etw_provider.cc',
289 'src/node_dtrace.cc',
290 'tools/msvs/genfiles/node_etw_provider.h',
291 'tools/msvs/genfiles/node_etw_provider.rc',
294 [ 'node_use_perfctr=="true"', {
295 'defines': [ 'HAVE_PERFCTR=1' ],
296 'dependencies': [ 'node_perfctr' ],
298 'src/node_win32_perfctr_provider.h',
299 'src/node_win32_perfctr_provider.cc',
300 'src/node_counters.cc',
301 'src/node_counters.h',
302 'tools/msvs/genfiles/node_perfctr_provider.rc',
305 [ 'v8_postmortem_support=="true"', {
306 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:postmortem-metadata' ],
309 '-Wl,-force_load,<(V8_BASE)',
313 [ 'node_shared_zlib=="false"', {
314 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
317 [ 'node_shared_http_parser=="false"', {
318 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
321 [ 'node_shared_libuv=="false"', {
322 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
330 'NODE_PLATFORM="win"',
334 # we need to use node's preferred "win32" rather than gyp's preferred "win"
335 'NODE_PLATFORM="win32"',
338 'libraries': [ '-lpsapi.lib' ]
340 'defines': [ '__POSIX__' ],
343 # linking Corefoundation is needed since certain OSX debugging tools
344 # like Instruments require it for some features
345 'libraries': [ '-framework CoreFoundation' ],
347 'NODE_PLATFORM="mac"',
350 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
351 'NODE_PLATFORM="darwin"',
366 'NODE_PLATFORM="solaris"',
369 # we need to use node's preferred "sunos"
370 # rather than gyp's preferred "solaris"
371 'NODE_PLATFORM="sunos"',
374 [ 'OS=="freebsd" or OS=="linux"', {
375 'ldflags': [ '-Wl,-z,noexecstack',
376 '-Wl,--whole-archive <(V8_BASE)',
377 '-Wl,--no-whole-archive' ]
380 'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],
385 'EmbedManifest': 'true',
386 'AdditionalManifestFiles': 'src/res/node.exe.extra.manifest'
390 # generate ETW header and resource files
392 'target_name': 'node_etw',
395 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
398 'action_name': 'node_etw',
399 'inputs': [ 'src/res/node_etw_provider.man' ],
401 'tools/msvs/genfiles/node_etw_provider.rc',
402 'tools/msvs/genfiles/node_etw_provider.h',
403 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
405 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
411 # generate perf counter header and resource files
413 'target_name': 'node_perfctr',
416 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
419 'action_name': 'node_perfctr_man',
420 'inputs': [ 'src/res/node_perfctr_provider.man' ],
422 'tools/msvs/genfiles/node_perfctr_provider.h',
423 'tools/msvs/genfiles/node_perfctr_provider.rc',
424 'tools/msvs/genfiles/MSG00001.BIN',
426 'action': [ 'ctrpp <@(_inputs) '
427 '-o tools/msvs/genfiles/node_perfctr_provider.h '
428 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
436 'target_name': 'node_js2c',
438 'toolsets': ['host'],
441 'action_name': 'node_js2c',
447 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
450 [ 'node_use_dtrace=="false" and node_use_etw=="false"', {
451 'inputs': [ 'src/notrace_macros.py' ]
453 ['node_use_lttng=="false"', {
454 'inputs': [ 'src/nolttng_macros.py' ]
456 [ 'node_use_perfctr=="false"', {
457 'inputs': [ 'src/perfctr_macros.py' ]
470 'target_name': 'node_dtrace_header',
473 [ 'node_use_dtrace=="true" and OS!="linux"', {
476 'action_name': 'node_dtrace_header',
477 'inputs': [ 'src/node_provider.d' ],
478 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
479 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
480 '-o', '<@(_outputs)' ]
484 [ 'node_use_dtrace=="true" and OS=="linux"', {
487 'action_name': 'node_dtrace_header',
488 'inputs': [ 'src/node_provider.d' ],
489 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
490 'action': [ 'dtrace', '-h', '-s', '<@(_inputs)',
491 '-o', '<@(_outputs)' ]
498 'target_name': 'node_dtrace_provider',
501 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
504 'action_name': 'node_dtrace_provider_o',
506 '<(OBJ_DIR)/iojs/src/node_dtrace.o',
509 '<(OBJ_DIR)/iojs/src/node_dtrace_provider.o'
511 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
512 '<@(_inputs)', '-o', '<@(_outputs)' ]
516 [ 'node_use_dtrace=="true" and OS=="linux"', {
519 'action_name': 'node_dtrace_provider_o',
520 'inputs': [ 'src/node_provider.d' ],
522 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
525 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
533 'target_name': 'node_dtrace_ustack',
536 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
539 'action_name': 'node_dtrace_ustack_constants',
544 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
547 'tools/genv8constants.py',
553 'action_name': 'node_dtrace_ustack',
556 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
559 '<(OBJ_DIR)/iojs/src/node_dtrace_ustack.o'
562 [ 'target_arch=="ia32"', {
564 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
565 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
568 [ 'target_arch=="x64"', {
570 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
571 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
581 'target_name': 'specialize_node_d',
584 [ 'node_use_dtrace=="true"', {
587 'action_name': 'specialize_node_d',
592 '<(PRODUCT_DIR)/node.d',
595 'tools/specialize_node_d.py',
607 'target_name': 'cctest',
608 'type': 'executable',
610 'deps/gtest/gtest.gyp:gtest',
611 'deps/v8/tools/gyp/v8.gyp:v8',
612 'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
619 # gtest's ASSERT macros conflict with our own.
620 'GTEST_DONT_DEFINE_ASSERT_EQ=1',
621 'GTEST_DONT_DEFINE_ASSERT_GE=1',
622 'GTEST_DONT_DEFINE_ASSERT_GT=1',
623 'GTEST_DONT_DEFINE_ASSERT_LE=1',
624 'GTEST_DONT_DEFINE_ASSERT_LT=1',
625 'GTEST_DONT_DEFINE_ASSERT_NE=1',
628 'test/cctest/util.cc',