Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 260 lines (244 sloc) 6.919 kb
4f3c8b3 @ry WIP
ry authored
1 {
bea4827 @ry More progress with gyp
ry authored
2 'variables': {
3 'v8_use_snapshot': 'true',
d2ab314 @ry Turn off V8's -Werror in GYP
ry authored
4 # Turn off -Werror in V8
5 # See http://codereview.chromium.org/8159015
6 'werror': '',
71333b3 @DrPizza Modify GYP scripts for VC build
DrPizza authored
7 'target_arch': 'ia32',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
8 'node_use_dtrace': 'false',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
9 'node_use_openssl%': 'true',
cb6b9eb @ry Fix windows build
ry authored
10 'node_use_system_openssl%': 'false',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
11 'library_files': [
12 'src/node.js',
13 'lib/_debugger.js',
14 'lib/_linklist.js',
15 'lib/assert.js',
16 'lib/buffer.js',
17 'lib/buffer_ieee754.js',
18 'lib/child_process_legacy.js',
19 'lib/child_process_uv.js',
20 'lib/console.js',
21 'lib/constants.js',
22 'lib/crypto.js',
23 'lib/dgram_legacy.js',
24 'lib/dgram_uv.js',
25 'lib/dns_legacy.js',
26 'lib/dns_uv.js',
27 'lib/events.js',
28 'lib/freelist.js',
29 'lib/fs.js',
30 'lib/http.js',
31 'lib/https.js',
32 'lib/module.js',
33 'lib/net_legacy.js',
34 'lib/net_uv.js',
35 'lib/os.js',
36 'lib/path.js',
37 'lib/punycode.js',
38 'lib/querystring.js',
39 'lib/readline.js',
40 'lib/repl.js',
41 'lib/stream.js',
42 'lib/string_decoder.js',
43 'lib/sys.js',
44 'lib/timers_legacy.js',
45 'lib/timers_uv.js',
46 'lib/tls.js',
73fcd43 @piscisaureus Add new tty js files to node.gyp
piscisaureus authored
47 'lib/tty_legacy.js',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
48 'lib/tty_posix.js',
73fcd43 @piscisaureus Add new tty js files to node.gyp
piscisaureus authored
49 'lib/tty_uv.js',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
50 'lib/tty_win32.js',
51 'lib/url.js',
52 'lib/util.js',
53 'lib/vm.js',
5b8e1da @isaacs Initial pass at zlib bindings
isaacs authored
54 'lib/zlib.js',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
55 ],
bea4827 @ry More progress with gyp
ry authored
56 },
57
4f3c8b3 @ry WIP
ry authored
58 'targets': [
59 {
60 'target_name': 'node',
61 'type': 'executable',
bea4827 @ry More progress with gyp
ry authored
62
4f3c8b3 @ry WIP
ry authored
63 'dependencies': [
db1bf67 @ry Move GYP file to the project root
ry authored
64 'deps/http_parser/http_parser.gyp:http_parser',
16788f4 @DrPizza Rename gyp files to produce useful solution names.
DrPizza authored
65 'deps/v8/tools/gyp/v8-node.gyp:v8',
66 'deps/uv/uv.gyp:uv',
5b8e1da @isaacs Initial pass at zlib bindings
isaacs authored
67 'deps/zlib/zlib.gyp:zlib',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
68 'node_js2c#host',
4f3c8b3 @ry WIP
ry authored
69 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
70
71 'include_dirs': [
db1bf67 @ry Move GYP file to the project root
ry authored
72 'src',
73 'deps/uv/src/ares',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
74 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
75 ],
76
4f3c8b3 @ry WIP
ry authored
77 'sources': [
8fe5712 fs watcher binding
Igor Zinkovsky authored
78 'src/fs_event_wrap.cc',
db1bf67 @ry Move GYP file to the project root
ry authored
79 'src/cares_wrap.cc',
80 'src/handle_wrap.cc',
81 'src/node.cc',
82 'src/node_buffer.cc',
83 'src/node_constants.cc',
84 'src/node_dtrace.cc',
85 'src/node_extensions.cc',
86 'src/node_file.cc',
87 'src/node_http_parser.cc',
88 'src/node_javascript.cc',
89 'src/node_main.cc',
90 'src/node_os.cc',
91 'src/node_script.cc',
92 'src/node_string.cc',
5b8e1da @isaacs Initial pass at zlib bindings
isaacs authored
93 'src/node_zlib.cc',
db1bf67 @ry Move GYP file to the project root
ry authored
94 'src/pipe_wrap.cc',
95 'src/stream_wrap.cc',
96 'src/tcp_wrap.cc',
97 'src/timer_wrap.cc',
c1ae6ea @ry Add TTYWrap
ry authored
98 'src/tty_wrap.cc',
db1bf67 @ry Move GYP file to the project root
ry authored
99 'src/process_wrap.cc',
97b0000 @bnoordhuis build: add src/v8_typed_array.cc to gyp sources list
bnoordhuis authored
100 'src/v8_typed_array.cc',
06f750c @ry fix windows build
ry authored
101 'src/udp_wrap.cc',
64b4168 @DrPizza Add headers to improve the IDE experience.
DrPizza authored
102 # headers to make for a more pleasant IDE experience
103 'src/handle_wrap.h',
104 'src/node.h',
105 'src/node_buffer.h',
106 'src/node_cares.h',
107 'src/node_child_process.h',
108 'src/node_constants.h',
109 'src/node_crypto.h',
110 'src/node_dtrace.h',
111 'src/node_extensions.h',
112 'src/node_file.h',
113 'src/node_http_parser.h',
114 'src/node_javascript.h',
115 'src/node_net.h',
116 'src/node_os.h',
117 'src/node_root_certs.h',
118 'src/node_script.h',
119 'src/node_stdio.h',
120 'src/node_string.h',
121 'src/node_version.h',
122 'src/pipe_wrap.h',
123 'src/platform.h',
124 'src/req_wrap.h',
125 'src/stream_wrap.h',
126 'src/v8_typed_array.h',
127 'deps/http_parser/http_parser.h',
128 'deps/v8/include/v8.h',
129 'deps/v8/include/v8-debug.h',
130 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
131 # javascript files to make for an even more pleasant IDE experience
132 '<@(library_files)',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
133 ],
134
135 'defines': [
136 'ARCH="<(target_arch)"',
137 'PLATFORM="<(OS)"',
138 '_LARGEFILE_SOURCE',
139 '_FILE_OFFSET_BITS=64',
4f3c8b3 @ry WIP
ry authored
140 ],
141
142 'conditions': [
a979ab9 @ry Improve gyp build - now works kind of
ry authored
143 [ 'node_use_openssl=="true"', {
71333b3 @DrPizza Modify GYP scripts for VC build
DrPizza authored
144 'defines': [ 'HAVE_OPENSSL=1' ],
db1bf67 @ry Move GYP file to the project root
ry authored
145 'sources': [ 'src/node_crypto.cc' ],
9f98698 @bnoordhuis build: configure node, v8, cares and openssl
bnoordhuis authored
146 'conditions': [
147 [ 'node_use_system_openssl=="false"', {
148 'dependencies': [ './deps/openssl/openssl.gyp:openssl' ],
149 }]]
a979ab9 @ry Improve gyp build - now works kind of
ry authored
150 }, {
151 'defines': [ 'HAVE_OPENSSL=0' ]
152 }],
153
64b4168 @DrPizza Add headers to improve the IDE experience.
DrPizza authored
154 [ 'node_use_dtrace=="true"', {
155 'sources': [
156 'src/node_provider.h', # why does this get generated into src and not SHARED_INTERMEDIATE_DIR?
157 ],
158 }],
159
4f3c8b3 @ry WIP
ry authored
160 [ 'OS=="win"', {
6ac8c55 @DrPizza Make MSVS build.
DrPizza authored
161 'sources': [
db1bf67 @ry Move GYP file to the project root
ry authored
162 'src/platform_win32.cc',
163 'src/node_stdio_win32.cc',
64b4168 @DrPizza Add headers to improve the IDE experience.
DrPizza authored
164 # headers to make for a more pleasant IDE experience
165 'src/platform_win32.h',
6ac8c55 @DrPizza Make MSVS build.
DrPizza authored
166 ],
4f3c8b3 @ry WIP
ry authored
167 'defines': [
6ac8c55 @DrPizza Make MSVS build.
DrPizza authored
168 'FD_SETSIZE=1024',
79d9f62 @DrPizza Fix bad platform name.
DrPizza authored
169 # we need to use node's preferred "win32" rather than gyp's preferred "win"
170 'PLATFORM="win32"',
4f3c8b3 @ry WIP
ry authored
171 ],
1976288 @ry win: link to psapi.lib
ry authored
172 'libraries': [ '-lpsapi.lib' ]
4f3c8b3 @ry WIP
ry authored
173 },{ # POSIX
a979ab9 @ry Improve gyp build - now works kind of
ry authored
174 'defines': [ '__POSIX__' ],
4f3c8b3 @ry WIP
ry authored
175 'sources': [
db1bf67 @ry Move GYP file to the project root
ry authored
176 'src/node_cares.cc',
177 'src/node_net.cc',
178 'src/node_signal_watcher.cc',
179 'src/node_stat_watcher.cc',
180 'src/node_io_watcher.cc',
181 'src/node_stdio.cc',
182 'src/node_child_process.cc',
183 'src/node_timer.cc'
4f3c8b3 @ry WIP
ry authored
184 ]
185 }],
186 [ 'OS=="mac"', {
db1bf67 @ry Move GYP file to the project root
ry authored
187 'sources': [ 'src/platform_darwin.cc' ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
188 'libraries': [ '-framework Carbon' ],
b433c42 @ry gyp: Support Linux
ry authored
189 }],
190 [ 'OS=="linux"', {
191 'sources': [ 'src/platform_linux.cc' ],
192 'libraries': [
c2ae39b @ry gyp: -ldl on linux
ry authored
193 '-ldl',
b433c42 @ry gyp: Support Linux
ry authored
194 '-lutil' # needed for openpty
195 ],
decd818 @bnoordhuis build: fix freebsd gyp build
bnoordhuis authored
196 }],
197 [ 'OS=="freebsd"', {
198 'sources': [ 'src/platform_freebsd.cc' ],
199 'libraries': [
200 '-lutil',
201 '-lkvm',
202 ],
203 }],
16788f4 @DrPizza Rename gyp files to produce useful solution names.
DrPizza authored
204 ],
205 'msvs-settings': {
206 'VCLinkerTool': {
207 'SubSystem': 1, # /subsystem:console
208 },
209 },
4f3c8b3 @ry WIP
ry authored
210 },
211
212 {
213 'target_name': 'node_js2c',
214 'type': 'none',
215 'toolsets': ['host'],
216 'variables': {
217 },
a979ab9 @ry Improve gyp build - now works kind of
ry authored
218
4f3c8b3 @ry WIP
ry authored
219 'actions': [
220 {
221 'action_name': 'node_js2c',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
222
4f3c8b3 @ry WIP
ry authored
223 'inputs': [
db1bf67 @ry Move GYP file to the project root
ry authored
224 './tools/js2c.py',
4f3c8b3 @ry WIP
ry authored
225 '<@(library_files)',
226 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
227
4f3c8b3 @ry WIP
ry authored
228 'outputs': [
229 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
230 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
231
232 # FIXME can the following conditions be shorted by just setting
233 # macros.py into some variable which then gets included in the
234 # action?
235
236 'conditions': [
237 [ 'node_use_dtrace=="true"', {
238 'action': [
239 'python',
db1bf67 @ry Move GYP file to the project root
ry authored
240 'tools/js2c.py',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
241 '<@(_outputs)',
242 '<@(library_files)'
243 ],
244 }, { # No Dtrace
245 'action': [
246 'python',
db1bf67 @ry Move GYP file to the project root
ry authored
247 'tools/js2c.py',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
248 '<@(_outputs)',
249 '<@(library_files)',
db1bf67 @ry Move GYP file to the project root
ry authored
250 'src/macros.py'
a979ab9 @ry Improve gyp build - now works kind of
ry authored
251 ],
252 }]
71333b3 @DrPizza Modify GYP scripts for VC build
DrPizza authored
253 ],
4f3c8b3 @ry WIP
ry authored
254 },
255 ],
256 }, # end node_js2c
257 ] # end targets
258 }
259
Something went wrong with that request. Please try again.