Skip to content

HTTPS clone URL

Subversion checkout URL

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