Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 250 lines (233 sloc) 6.551 kb
4f3c8b3 @ry WIP
ry authored
1 {
bea4827 @ry More progress with gyp
ry authored
2 'variables': {
3 'v8_use_snapshot': 'true',
71333b3 @DrPizza Modify GYP scripts for VC build
DrPizza authored
4 'target_arch': 'ia32',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
5 'node_use_dtrace': 'false',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
6 'node_use_openssl%': 'true',
7 'library_files': [
8 'src/node.js',
9 'lib/_debugger.js',
10 'lib/_linklist.js',
11 'lib/assert.js',
12 'lib/buffer.js',
13 'lib/buffer_ieee754.js',
14 'lib/child_process_legacy.js',
15 'lib/child_process_uv.js',
16 'lib/console.js',
17 'lib/constants.js',
18 'lib/crypto.js',
19 'lib/dgram_legacy.js',
20 'lib/dgram_uv.js',
21 'lib/dns_legacy.js',
22 'lib/dns_uv.js',
23 'lib/events.js',
24 'lib/freelist.js',
25 'lib/fs.js',
26 'lib/http.js',
27 'lib/http2.js',
28 'lib/https.js',
29 'lib/https2.js',
30 'lib/module.js',
31 'lib/net_legacy.js',
32 'lib/net_uv.js',
33 'lib/os.js',
34 'lib/path.js',
35 'lib/punycode.js',
36 'lib/querystring.js',
37 'lib/readline.js',
38 'lib/repl.js',
39 'lib/stream.js',
40 'lib/string_decoder.js',
41 'lib/sys.js',
42 'lib/timers_legacy.js',
43 'lib/timers_uv.js',
44 'lib/tls.js',
45 'lib/tty.js',
46 'lib/tty_posix.js',
47 'lib/tty_win32.js',
48 'lib/url.js',
49 'lib/util.js',
50 'lib/vm.js',
51 ],
bea4827 @ry More progress with gyp
ry authored
52 },
53
9f98698 @bnoordhuis build: configure node, v8, cares and openssl
bnoordhuis authored
54 'includes': [
55 './options.gypi'
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',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
67 'node_js2c#host',
4f3c8b3 @ry WIP
ry authored
68 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
69
70 'include_dirs': [
db1bf67 @ry Move GYP file to the project root
ry authored
71 'src',
72 'deps/uv/src/ares',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
73 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
74 ],
75
4f3c8b3 @ry WIP
ry authored
76 'sources': [
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',
91 'src/pipe_wrap.cc',
92 'src/stdio_wrap.cc',
93 'src/stream_wrap.cc',
94 'src/tcp_wrap.cc',
95 'src/timer_wrap.cc',
96 'src/process_wrap.cc',
97b0000 @bnoordhuis build: add src/v8_typed_array.cc to gyp sources list
bnoordhuis authored
97 'src/v8_typed_array.cc',
06f750c @ry fix windows build
ry authored
98 'src/udp_wrap.cc',
64b4168 @DrPizza Add headers to improve the IDE experience.
DrPizza authored
99 # headers to make for a more pleasant IDE experience
100 'src/handle_wrap.h',
101 'src/node.h',
102 'src/node_buffer.h',
103 'src/node_cares.h',
104 'src/node_child_process.h',
105 'src/node_constants.h',
106 'src/node_crypto.h',
107 'src/node_dtrace.h',
108 'src/node_extensions.h',
109 'src/node_file.h',
110 'src/node_http_parser.h',
111 'src/node_javascript.h',
112 'src/node_net.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_net.cc',
175 'src/node_signal_watcher.cc',
176 'src/node_stat_watcher.cc',
177 'src/node_io_watcher.cc',
178 'src/node_stdio.cc',
179 'src/node_child_process.cc',
180 'src/node_timer.cc'
4f3c8b3 @ry WIP
ry authored
181 ]
182 }],
183 [ 'OS=="mac"', {
db1bf67 @ry Move GYP file to the project root
ry authored
184 'sources': [ 'src/platform_darwin.cc' ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
185 'libraries': [ '-framework Carbon' ],
b433c42 @ry gyp: Support Linux
ry authored
186 }],
187 [ 'OS=="linux"', {
188 'sources': [ 'src/platform_linux.cc' ],
189 'libraries': [
c2ae39b @ry gyp: -ldl on linux
ry authored
190 '-ldl',
b433c42 @ry gyp: Support Linux
ry authored
191 '-lutil' # needed for openpty
192 ],
4f3c8b3 @ry WIP
ry authored
193 }]
16788f4 @DrPizza Rename gyp files to produce useful solution names.
DrPizza authored
194 ],
195 'msvs-settings': {
196 'VCLinkerTool': {
197 'SubSystem': 1, # /subsystem:console
198 },
199 },
4f3c8b3 @ry WIP
ry authored
200 },
201
202 {
203 'target_name': 'node_js2c',
204 'type': 'none',
205 'toolsets': ['host'],
206 'variables': {
207 },
a979ab9 @ry Improve gyp build - now works kind of
ry authored
208
4f3c8b3 @ry WIP
ry authored
209 'actions': [
210 {
211 'action_name': 'node_js2c',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
212
4f3c8b3 @ry WIP
ry authored
213 'inputs': [
db1bf67 @ry Move GYP file to the project root
ry authored
214 './tools/js2c.py',
4f3c8b3 @ry WIP
ry authored
215 '<@(library_files)',
216 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
217
4f3c8b3 @ry WIP
ry authored
218 'outputs': [
219 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
220 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
221
222 # FIXME can the following conditions be shorted by just setting
223 # macros.py into some variable which then gets included in the
224 # action?
225
226 'conditions': [
227 [ 'node_use_dtrace=="true"', {
228 'action': [
229 'python',
db1bf67 @ry Move GYP file to the project root
ry authored
230 'tools/js2c.py',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
231 '<@(_outputs)',
232 '<@(library_files)'
233 ],
234 }, { # No Dtrace
235 'action': [
236 'python',
db1bf67 @ry Move GYP file to the project root
ry authored
237 'tools/js2c.py',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
238 '<@(_outputs)',
239 '<@(library_files)',
db1bf67 @ry Move GYP file to the project root
ry authored
240 'src/macros.py'
a979ab9 @ry Improve gyp build - now works kind of
ry authored
241 ],
242 }]
71333b3 @DrPizza Modify GYP scripts for VC build
DrPizza authored
243 ],
4f3c8b3 @ry WIP
ry authored
244 },
245 ],
246 }, # end node_js2c
247 ] # end targets
248 }
249
Something went wrong with that request. Please try again.