3 'v8_use_snapshot': 'true',
4 # Turn off -Werror in V8
5 # See http://codereview.chromium.org/8159015
8 'node_use_dtrace': 'false',
9 'node_use_openssl%': 'true',
10 'node_use_system_openssl%': 'false',
17 'lib/buffer_ieee754.js',
18 'lib/child_process.js',
39 'lib/string_decoder.js',
53 'target_name': 'node',
57 'deps/http_parser/http_parser.gyp:http_parser',
58 'deps/v8/tools/gyp/v8.gyp:v8',
60 'deps/zlib/zlib.gyp:zlib',
67 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
71 'src/fs_event_wrap.cc',
77 'src/node_isolate.cc',
78 'src/node_constants.cc',
79 'src/node_extensions.cc',
81 'src/node_http_parser.cc',
82 'src/node_javascript.cc',
93 'src/process_wrap.cc',
94 'src/v8_typed_array.cc',
96 # headers to make for a more pleasant IDE experience
101 'src/node_isolate.h',
102 'src/node_constants.h',
104 'src/node_extensions.h',
106 'src/node_http_parser.h',
107 'src/node_javascript.h',
109 'src/node_root_certs.h',
112 'src/node_version.h',
116 'src/v8_typed_array.h',
117 'deps/http_parser/http_parser.h',
118 'deps/v8/include/v8.h',
119 'deps/v8/include/v8-debug.h',
120 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
121 # javascript files to make for an even more pleasant IDE experience
123 # node.gyp is added to the project by default.
128 'NODE_WANT_INTERNALS=1',
129 'ARCH="<(target_arch)"',
134 [ 'node_use_isolates=="true"', {
135 'defines': [ 'HAVE_ISOLATES=1' ],
137 'defines': [ 'HAVE_ISOLATES=0' ],
140 [ 'node_use_openssl=="true"', {
141 'defines': [ 'HAVE_OPENSSL=1' ],
142 'sources': [ 'src/node_crypto.cc' ],
144 [ 'node_use_system_openssl=="false"', {
145 'dependencies': [ './deps/openssl/openssl.gyp:openssl' ],
148 'defines': [ 'HAVE_OPENSSL=0' ]
151 [ 'node_use_dtrace=="true"', {
153 'src/node_dtrace.cc',
155 # why does node_provider.h get generated into src and not
156 # SHARED_INTERMEDIATE_DIR?
157 'src/node_provider.h',
163 'tools/msvs/res/node.rc',
167 # we need to use node's preferred "win32" rather than gyp's preferred "win"
170 'libraries': [ '-lpsapi.lib' ]
172 'defines': [ '__POSIX__' ],
174 'src/node_signal_watcher.cc',
175 'src/node_stat_watcher.cc',
176 'src/node_io_watcher.cc',
180 'libraries': [ '-framework Carbon' ],
185 '-lutil' # needed for openpty
202 'SubSystem': 1, # /subsystem:console
208 'target_name': 'node_js2c',
210 'toolsets': ['host'],
213 'action_name': 'node_js2c',
221 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
224 # FIXME can the following conditions be shorted by just setting
225 # macros.py into some variable which then gets included in the
229 [ 'node_use_dtrace=="true"', {