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_shared_v8%': 'false',
9 'node_shared_zlib%': 'false',
10 'node_use_openssl%': 'true',
11 'node_use_system_openssl%': 'false',
18 'lib/buffer_ieee754.js',
19 'lib/child_process.js',
40 'lib/string_decoder.js',
54 'target_name': 'node',
58 'deps/http_parser/http_parser.gyp:http_parser',
66 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
70 'src/fs_event_wrap.cc',
75 'src/node_constants.cc',
76 'src/node_extensions.cc',
78 'src/node_http_parser.cc',
79 'src/node_javascript.cc',
90 'src/process_wrap.cc',
91 'src/v8_typed_array.cc',
93 # headers to make for a more pleasant IDE experience
97 'src/node_constants.h',
99 'src/node_extensions.h',
101 'src/node_http_parser.h',
102 'src/node_javascript.h',
104 'src/node_root_certs.h',
107 'src/node_version.h',
111 'src/v8_typed_array.h',
112 'deps/http_parser/http_parser.h',
113 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
114 # javascript files to make for an even more pleasant IDE experience
116 # node.gyp is added to the project by default.
121 'NODE_WANT_INTERNALS=1',
122 'ARCH="<(target_arch)"',
127 [ 'node_use_openssl=="true"', {
128 'defines': [ 'HAVE_OPENSSL=1' ],
129 'sources': [ 'src/node_crypto.cc' ],
131 [ 'node_use_system_openssl=="false"', {
132 'dependencies': [ './deps/openssl/openssl.gyp:openssl' ],
135 'defines': [ 'HAVE_OPENSSL=0' ]
138 [ 'node_use_dtrace=="true"', {
140 'src/node_dtrace.cc',
142 # why does node_provider.h get generated into src and not
143 # SHARED_INTERMEDIATE_DIR?
144 'src/node_provider.h',
148 [ 'node_shared_v8=="true"', {
150 '<(node_shared_v8_includes)/v8.h',
151 '<(node_shared_v8_includes)/v8-debug.h',
155 'deps/v8/include/v8.h',
156 'deps/v8/include/v8-debug.h',
158 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
161 [ 'node_shared_zlib=="false"', {
162 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
167 'tools/msvs/res/node.rc',
171 # we need to use node's preferred "win32" rather than gyp's preferred "win"
175 'libraries': [ '-lpsapi.lib' ]
177 'defines': [ '__POSIX__' ],
179 'src/node_signal_watcher.cc',
180 'src/node_stat_watcher.cc',
181 'src/node_io_watcher.cc',
185 'libraries': [ '-framework Carbon' ],
190 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
197 '-lutil' # needed for openpty
214 'SubSystem': 1, # /subsystem:console
220 'target_name': 'node_js2c',
222 'toolsets': ['host'],
225 'action_name': 'node_js2c',
233 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
236 # FIXME can the following conditions be shorted by just setting
237 # macros.py into some variable which then gets included in the
241 [ 'node_use_dtrace=="true"', {