3 'v8_use_snapshot%': 'true',
4 # Turn off -Werror in V8
5 # See http://codereview.chromium.org/8159015
7 'node_use_dtrace%': 'false',
8 'node_use_etw%': 'false',
9 'node_use_perfctr%': 'false',
10 'node_has_winsdk%': 'false',
11 'node_shared_v8%': 'false',
12 'node_shared_zlib%': 'false',
13 'node_shared_http_parser%': 'false',
14 'node_shared_cares%': 'false',
15 'node_shared_libuv%': 'false',
16 'node_use_openssl%': 'true',
17 'node_shared_openssl%': 'false',
18 'node_use_mdb%': 'false',
25 'lib/child_process.js',
38 'lib/_http_client.js',
39 'lib/_http_common.js',
40 'lib/_http_incoming.js',
41 'lib/_http_outgoing.js',
42 '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/string_decoder.js',
75 'target_name': 'node',
84 'tools/msvs/genfiles',
86 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
90 'src/fs_event_wrap.cc',
95 'src/node_constants.cc',
96 'src/node_contextify.cc',
97 'src/node_extensions.cc',
99 'src/node_http_parser.cc',
100 'src/node_javascript.cc',
103 'src/node_stat_watcher.cc',
104 'src/node_watchdog.cc',
107 'src/signal_wrap.cc',
109 'src/string_bytes.cc',
110 'src/stream_wrap.cc',
114 'src/process_wrap.cc',
117 # headers to make for a more pleasant IDE experience
123 'src/node_constants.h',
124 'src/node_contextify.h',
125 'src/node_extensions.h',
127 'src/node_http_parser.h',
128 'src/node_internals.h',
129 'src/node_javascript.h',
130 'src/node_root_certs.h',
131 'src/node_version.h',
132 'src/node_watchdog.h',
141 'src/string_bytes.h',
147 'src/weak-object-inl.h',
148 'deps/http_parser/http_parser.h',
149 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
150 # javascript files to make for an even more pleasant IDE experience
152 # node.gyp is added to the project by default.
157 'NODE_WANT_INTERNALS=1',
158 'ARCH="<(target_arch)"',
160 'NODE_TAG="<(node_tag)"',
164 [ 'node_use_openssl=="true"', {
165 'defines': [ 'HAVE_OPENSSL=1' ],
167 'src/node_crypto.cc',
168 'src/node_crypto_bio.cc',
169 'src/node_crypto_clienthello.cc',
171 'src/node_crypto_bio.h',
172 'src/node_crypto_clienthello.h',
177 [ 'node_shared_openssl=="false"', {
178 'dependencies': [ './deps/openssl/openssl.gyp:openssl' ],
181 'defines': [ 'HAVE_OPENSSL=0' ]
183 [ 'node_use_dtrace=="true"', {
184 'defines': [ 'HAVE_DTRACE=1' ],
185 'dependencies': [ 'node_dtrace_header' ],
186 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
188 # DTrace is supported on linux, solaris, mac, and bsd. There are
189 # three object files associated with DTrace support, but they're
190 # not all used all the time:
192 # node_dtrace.o all configurations
193 # node_dtrace_ustack.o not supported on mac and linux
194 # node_dtrace_provider.o All except OS X. "dtrace -G" is not
197 # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
198 # actually exist. They're listed here to trick GYP into linking the
199 # corresponding object files into the final "node" executable. These
200 # object files are generated by "dtrace -G" using custom actions
201 # below, and the GYP-generated Makefiles will properly build them when
204 'sources': [ 'src/node_dtrace.cc' ],
208 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o',
209 '<(SHARED_INTERMEDIATE_DIR)/libuv_dtrace_provider.o',
212 [ 'OS!="mac" and OS!="linux"', {
214 'src/node_dtrace_ustack.cc',
215 'src/node_dtrace_provider.cc',
220 [ 'node_use_mdb=="true"', {
221 'dependencies': [ 'node_mdb' ],
222 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
227 [ 'node_use_etw=="true"', {
228 'defines': [ 'HAVE_ETW=1' ],
229 'dependencies': [ 'node_etw' ],
231 'src/node_win32_etw_provider.h',
232 'src/node_win32_etw_provider-inl.h',
233 'src/node_win32_etw_provider.cc',
234 'src/node_dtrace.cc',
235 'tools/msvs/genfiles/node_etw_provider.h',
236 'tools/msvs/genfiles/node_etw_provider.rc',
239 [ 'node_use_perfctr=="true"', {
240 'defines': [ 'HAVE_PERFCTR=1' ],
241 'dependencies': [ 'node_perfctr' ],
243 'src/node_win32_perfctr_provider.h',
244 'src/node_win32_perfctr_provider.cc',
245 'src/node_counters.cc',
246 'src/node_counters.h',
247 'tools/msvs/genfiles/node_perfctr_provider.rc',
250 [ 'v8_postmortem_support=="true"', {
251 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:postmortem-metadata' ],
253 [ 'node_shared_v8=="false"', {
255 'deps/v8/include/v8.h',
256 'deps/v8/include/v8-debug.h',
258 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
261 [ 'node_shared_zlib=="false"', {
262 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
265 [ 'node_shared_http_parser=="false"', {
266 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
269 [ 'node_shared_cares=="false"', {
270 'dependencies': [ 'deps/cares/cares.gyp:cares' ],
273 [ 'node_shared_libuv=="false"', {
274 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
283 # we need to use node's preferred "win32" rather than gyp's preferred "win"
287 'libraries': [ '-lpsapi.lib' ]
289 'defines': [ '__POSIX__' ],
296 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
312 'PLATFORM="solaris"',
315 # we need to use node's preferred "sunos"
316 # rather than gyp's preferred "solaris"
323 'SubSystem': 1, # /subsystem:console
327 # generate ETW header and resource files
329 'target_name': 'node_etw',
332 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
335 'action_name': 'node_etw',
336 'inputs': [ 'src/res/node_etw_provider.man' ],
338 'tools/msvs/genfiles/node_etw_provider.rc',
339 'tools/msvs/genfiles/node_etw_provider.h',
340 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
342 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
348 # generate perf counter header and resource files
350 'target_name': 'node_perfctr',
353 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
356 'action_name': 'node_perfctr_man',
357 'inputs': [ 'src/res/node_perfctr_provider.man' ],
359 'tools/msvs/genfiles/node_perfctr_provider.h',
360 'tools/msvs/genfiles/node_perfctr_provider.rc',
361 'tools/msvs/genfiles/MSG00001.BIN',
363 'action': [ 'ctrpp <@(_inputs) '
364 '-o tools/msvs/genfiles/node_perfctr_provider.h '
365 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
373 'target_name': 'node_js2c',
375 'toolsets': ['host'],
378 'action_name': 'node_js2c',
384 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
387 [ 'node_use_dtrace=="false" and node_use_etw=="false"', {
388 'inputs': [ 'src/notrace_macros.py' ]
390 [ 'node_use_perfctr=="false"', {
391 'inputs': [ 'src/perfctr_macros.py' ]
404 'target_name': 'node_dtrace_header',
407 [ 'node_use_dtrace=="true"', {
410 'action_name': 'node_dtrace_header',
411 'inputs': [ 'src/node_provider.d' ],
412 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
413 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
414 '-o', '<@(_outputs)' ]
421 'target_name': 'node_mdb',
424 [ 'node_use_mdb=="true"',
426 'dependencies': [ 'deps/mdb_v8/mdb_v8.gyp:mdb_v8' ],
429 'action_name': 'node_mdb',
430 'inputs': [ '<(PRODUCT_DIR)/obj.target/deps/mdb_v8/mdb_v8.so' ],
431 'outputs': [ '<(PRODUCT_DIR)/obj.target/node/src/node_mdb.o' ],
433 [ 'target_arch=="ia32"', {
434 'action': [ 'elfwrap', '-o', '<@(_outputs)', '<@(_inputs)' ],
436 [ 'target_arch=="x64"', {
437 'action': [ 'elfwrap', '-64', '-o', '<@(_outputs)', '<@(_inputs)' ],
447 'target_name': 'node_dtrace_provider',
450 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
453 'action_name': 'node_dtrace_provider_o',
455 '<(PRODUCT_DIR)/obj.target/libuv/deps/uv/src/unix/core.o',
456 '<(PRODUCT_DIR)/obj.target/node/src/node_dtrace.o',
459 '<(PRODUCT_DIR)/obj.target/node/src/node_dtrace_provider.o'
461 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
462 '-s', 'deps/uv/src/unix/uv-dtrace.d', '<@(_inputs)',
463 '-o', '<@(_outputs)' ]
467 [ 'node_use_dtrace=="true" and OS=="linux"', {
470 'action_name': 'node_dtrace_provider_o',
471 'inputs': [ 'src/node_provider.d' ],
473 '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o'
476 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
480 'action_name': 'libuv_dtrace_provider_o',
481 'inputs': [ 'deps/uv/src/unix/uv-dtrace.d' ],
483 '<(SHARED_INTERMEDIATE_DIR)/libuv_dtrace_provider.o'
486 'dtrace', '-C', '-G', '-s', '<@(_inputs)', '-o', '<@(_outputs)'
494 'target_name': 'node_dtrace_ustack',
497 [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', {
500 'action_name': 'node_dtrace_ustack_constants',
502 '<(PRODUCT_DIR)/obj.target/deps/v8/tools/gyp/libv8_base.<(target_arch).a'
505 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
508 'tools/genv8constants.py',
514 'action_name': 'node_dtrace_ustack',
517 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
520 '<(PRODUCT_DIR)/obj.target/node/src/node_dtrace_ustack.o'
523 [ 'target_arch=="ia32"', {
525 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
526 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
529 [ 'target_arch=="x64"', {
531 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
532 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',