Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 212 lines (197 sloc) 5.93 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',
6 'node_use_openssl': 'true'
bea4827 @ry More progress with gyp
ry authored
7 },
8
4f3c8b3 @ry WIP
ry authored
9 'targets': [
10 {
11 'target_name': 'node',
12 'type': 'executable',
bea4827 @ry More progress with gyp
ry authored
13
4f3c8b3 @ry WIP
ry authored
14 'dependencies': [
db1bf67 @ry Move GYP file to the project root
ry authored
15 'deps/http_parser/http_parser.gyp:http_parser',
16788f4 @DrPizza Rename gyp files to produce useful solution names.
DrPizza authored
16 'deps/v8/tools/gyp/v8-node.gyp:v8',
17 'deps/uv/uv.gyp:uv',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
18 'node_js2c#host',
4f3c8b3 @ry WIP
ry authored
19 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
20
21 'include_dirs': [
db1bf67 @ry Move GYP file to the project root
ry authored
22 'src',
23 'deps/uv/src/ares',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
24 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
25 ],
26
4f3c8b3 @ry WIP
ry authored
27 'sources': [
db1bf67 @ry Move GYP file to the project root
ry authored
28 'src/cares_wrap.cc',
29 'src/handle_wrap.cc',
30 'src/node.cc',
31 'src/node_buffer.cc',
32 'src/node_constants.cc',
33 'src/node_dtrace.cc',
34 'src/node_extensions.cc',
35 'src/node_file.cc',
36 'src/node_http_parser.cc',
37 'src/node_javascript.cc',
38 'src/node_main.cc',
39 'src/node_os.cc',
40 'src/node_script.cc',
41 'src/node_string.cc',
42 'src/pipe_wrap.cc',
43 'src/stdio_wrap.cc',
44 'src/stream_wrap.cc',
45 'src/tcp_wrap.cc',
46 'src/timer_wrap.cc',
47 'src/process_wrap.cc',
97b0000 @bnoordhuis build: add src/v8_typed_array.cc to gyp sources list
bnoordhuis authored
48 'src/v8_typed_array.cc',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
49 ],
50
51 'defines': [
52 'ARCH="<(target_arch)"',
53 'PLATFORM="<(OS)"',
54 '_LARGEFILE_SOURCE',
55 '_FILE_OFFSET_BITS=64',
4f3c8b3 @ry WIP
ry authored
56 ],
57
58 'conditions': [
a979ab9 @ry Improve gyp build - now works kind of
ry authored
59 [ 'node_use_openssl=="true"', {
60 'libraries': [ '-lssl', '-lcrypto' ],
71333b3 @DrPizza Modify GYP scripts for VC build
DrPizza authored
61 'defines': [ 'HAVE_OPENSSL=1' ],
db1bf67 @ry Move GYP file to the project root
ry authored
62 'sources': [ 'src/node_crypto.cc' ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
63 }, {
64 'defines': [ 'HAVE_OPENSSL=0' ]
65 }],
66
4f3c8b3 @ry WIP
ry authored
67 [ 'OS=="win"', {
6ac8c55 @DrPizza Make MSVS build.
DrPizza authored
68 'dependencies': [
16788f4 @DrPizza Rename gyp files to produce useful solution names.
DrPizza authored
69 'deps/uv/deps/pthread-win32/pthread-win32.gyp:pthread-win32',
6ac8c55 @DrPizza Make MSVS build.
DrPizza authored
70 ],
71 # openssl is not built using gyp, and needs to be
72 # built separately and placed outside the hierarchy.
73 # the dependencies aren't set up yet to put it in
74 # place, so I'm going to force it off indiscrimately
75 # for the time being. Because the above condition has
76 # already kicked in, it's not enough simply to turn
77 # 'node_use_openssl' off; I need to undo its effects
71333b3 @DrPizza Modify GYP scripts for VC build
DrPizza authored
78 'node_use_openssl': 'false',
6ac8c55 @DrPizza Make MSVS build.
DrPizza authored
79 'defines!': [ 'HAVE_OPENSSL=1' ],
80 'defines': [ 'HAVE_OPENSSL=0' ],
81 'libraries!': [ '-lssl', '-lcrypto' ],
db1bf67 @ry Move GYP file to the project root
ry authored
82 'sources!': [ 'src/node_crypto.cc' ],
6ac8c55 @DrPizza Make MSVS build.
DrPizza authored
83 'sources': [
db1bf67 @ry Move GYP file to the project root
ry authored
84 'src/platform_win32.cc',
85 'src/node_stdio_win32.cc',
79d9f62 @DrPizza Fix bad platform name.
DrPizza authored
86 # file operations depend on eio to link. uv contains eio in unix builds, but not win32. So we need to compile it here instead.
db1bf67 @ry Move GYP file to the project root
ry authored
87 'deps/uv/src/eio/eio.c',
6ac8c55 @DrPizza Make MSVS build.
DrPizza authored
88 ],
4f3c8b3 @ry WIP
ry authored
89 'defines': [
79d9f62 @DrPizza Fix bad platform name.
DrPizza authored
90 'PTW32_STATIC_LIB',
6ac8c55 @DrPizza Make MSVS build.
DrPizza authored
91 'FD_SETSIZE=1024',
79d9f62 @DrPizza Fix bad platform name.
DrPizza authored
92 # we need to use node's preferred "win32" rather than gyp's preferred "win"
93 'PLATFORM="win32"',
4f3c8b3 @ry WIP
ry authored
94 ],
95 },{ # POSIX
a979ab9 @ry Improve gyp build - now works kind of
ry authored
96 'defines': [ '__POSIX__' ],
4f3c8b3 @ry WIP
ry authored
97 'sources': [
db1bf67 @ry Move GYP file to the project root
ry authored
98 'src/node_cares.cc',
99 'src/node_net.cc',
100 'src/node_signal_watcher.cc',
101 'src/node_stat_watcher.cc',
102 'src/node_io_watcher.cc',
103 'src/node_stdio.cc',
104 'src/node_child_process.cc',
105 'src/node_timer.cc'
4f3c8b3 @ry WIP
ry authored
106 ]
107 }],
108 [ 'OS=="mac"', {
db1bf67 @ry Move GYP file to the project root
ry authored
109 'sources': [ 'src/platform_darwin.cc' ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
110 'libraries': [ '-framework Carbon' ],
4f3c8b3 @ry WIP
ry authored
111 }]
16788f4 @DrPizza Rename gyp files to produce useful solution names.
DrPizza authored
112 ],
113 'msvs-settings': {
114 'VCLinkerTool': {
115 'SubSystem': 1, # /subsystem:console
116 },
117 },
4f3c8b3 @ry WIP
ry authored
118 },
119
120 {
121 'target_name': 'node_js2c',
122 'type': 'none',
123 'toolsets': ['host'],
124 'variables': {
125 'library_files': [
db1bf67 @ry Move GYP file to the project root
ry authored
126 'src/node.js',
127 'lib/_debugger.js',
128 'lib/_linklist.js',
129 'lib/assert.js',
130 'lib/buffer.js',
131 'lib/buffer_ieee754.js',
132 'lib/child_process_legacy.js',
133 'lib/child_process_uv.js',
134 'lib/console.js',
135 'lib/constants.js',
136 'lib/crypto.js',
137 'lib/dgram.js',
138 'lib/dns_legacy.js',
139 'lib/dns_uv.js',
140 'lib/events.js',
141 'lib/freelist.js',
142 'lib/fs.js',
143 'lib/http.js',
144 'lib/http2.js',
145 'lib/https.js',
146 'lib/https2.js',
147 'lib/module.js',
148 'lib/net_legacy.js',
149 'lib/net_uv.js',
150 'lib/os.js',
151 'lib/path.js',
152 'lib/punycode.js',
153 'lib/querystring.js',
154 'lib/readline.js',
155 'lib/repl.js',
156 'lib/stream.js',
157 'lib/string_decoder.js',
158 'lib/sys.js',
159 'lib/timers_legacy.js',
160 'lib/timers_uv.js',
161 'lib/tls.js',
162 'lib/tty.js',
163 'lib/tty_posix.js',
164 'lib/tty_win32.js',
165 'lib/url.js',
166 'lib/util.js',
167 'lib/vm.js',
4f3c8b3 @ry WIP
ry authored
168 ],
169 },
a979ab9 @ry Improve gyp build - now works kind of
ry authored
170
4f3c8b3 @ry WIP
ry authored
171 'actions': [
172 {
173 'action_name': 'node_js2c',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
174
4f3c8b3 @ry WIP
ry authored
175 'inputs': [
db1bf67 @ry Move GYP file to the project root
ry authored
176 './tools/js2c.py',
4f3c8b3 @ry WIP
ry authored
177 '<@(library_files)',
178 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
179
4f3c8b3 @ry WIP
ry authored
180 'outputs': [
181 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
182 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
183
184 # FIXME can the following conditions be shorted by just setting
185 # macros.py into some variable which then gets included in the
186 # action?
187
188 'conditions': [
189 [ 'node_use_dtrace=="true"', {
190 'action': [
191 'python',
db1bf67 @ry Move GYP file to the project root
ry authored
192 'tools/js2c.py',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
193 '<@(_outputs)',
194 '<@(library_files)'
195 ],
196 }, { # No Dtrace
197 'action': [
198 'python',
db1bf67 @ry Move GYP file to the project root
ry authored
199 'tools/js2c.py',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
200 '<@(_outputs)',
201 '<@(library_files)',
db1bf67 @ry Move GYP file to the project root
ry authored
202 'src/macros.py'
a979ab9 @ry Improve gyp build - now works kind of
ry authored
203 ],
204 }]
71333b3 @DrPizza Modify GYP scripts for VC build
DrPizza authored
205 ],
4f3c8b3 @ry WIP
ry authored
206 },
207 ],
208 }, # end node_js2c
209 ] # end targets
210 }
211
Something went wrong with that request. Please try again.