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-node.gyp:v8',
60 'deps/zlib/zlib.gyp:zlib',
67 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
71 'src/fs_event_wrap.cc',
76 'src/node_constants.cc',
78 'src/node_extensions.cc',
80 'src/node_http_parser.cc',
81 'src/node_javascript.cc',
92 'src/process_wrap.cc',
93 'src/v8_typed_array.cc',
95 # headers to make for a more pleasant IDE experience
99 'src/node_constants.h',
102 'src/node_extensions.h',
104 'src/node_http_parser.h',
105 'src/node_javascript.h',
107 'src/node_root_certs.h',
110 'src/node_version.h',
115 'src/v8_typed_array.h',
116 'deps/http_parser/http_parser.h',
117 'deps/v8/include/v8.h',
118 'deps/v8/include/v8-debug.h',
119 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
120 # javascript files to make for an even more pleasant IDE experience
125 'ARCH="<(target_arch)"',
128 '_FILE_OFFSET_BITS=64',
132 [ 'node_use_openssl=="true"', {
133 'defines': [ 'HAVE_OPENSSL=1' ],
134 'sources': [ 'src/node_crypto.cc' ],
136 [ 'node_use_system_openssl=="false"', {
137 'dependencies': [ './deps/openssl/openssl.gyp:openssl' ],
140 'defines': [ 'HAVE_OPENSSL=0' ]
143 [ 'node_use_dtrace=="true"', {
145 'src/node_provider.h', # why does this get generated into src and not SHARED_INTERMEDIATE_DIR?
151 'src/platform_win32.cc',
152 # headers to make for a more pleasant IDE experience
153 'src/platform_win32.h',
157 # we need to use node's preferred "win32" rather than gyp's preferred "win"
160 'libraries': [ '-lpsapi.lib' ]
162 'defines': [ '__POSIX__' ],
164 'src/node_signal_watcher.cc',
165 'src/node_stat_watcher.cc',
166 'src/node_io_watcher.cc',
170 'sources': [ 'src/platform_darwin.cc' ],
171 'libraries': [ '-framework Carbon' ],
174 'sources': [ 'src/platform_linux.cc' ],
177 '-lutil' # needed for openpty
181 'sources': [ 'src/platform_freebsd.cc' ],
190 'SubSystem': 1, # /subsystem:console
196 'target_name': 'node_js2c',
198 'toolsets': ['host'],
204 'action_name': 'node_js2c',
212 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
215 # FIXME can the following conditions be shorted by just setting
216 # macros.py into some variable which then gets included in the
220 [ 'node_use_dtrace=="true"', {