Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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