Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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