Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 206 lines (191 sloc) 5.459 kb
4f3c8b3 ry WIP
ry authored
1 {
bea4827 ry More progress with gyp
ry authored
2 'variables': {
3 'v8_use_snapshot': 'true',
71333b3 Peter Bright 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',
e80cac6 ry import openssl from chrome
ry authored
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 Peter Bright 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 Ben Noordhuis 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"', {
71333b3 Peter Bright Modify GYP scripts for VC build
DrPizza authored
60 'defines': [ 'HAVE_OPENSSL=1' ],
db1bf67 ry Move GYP file to the project root
ry authored
61 'sources': [ 'src/node_crypto.cc' ],
e80cac6 ry import openssl from chrome
ry authored
62 'dependencies': [ './deps/openssl/openssl.gyp:openssl' ]
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 Peter Bright Make MSVS build.
DrPizza authored
68 'dependencies': [
16788f4 Peter Bright Rename gyp files to produce useful solution names.
DrPizza authored
69 'deps/uv/deps/pthread-win32/pthread-win32.gyp:pthread-win32',
6ac8c55 Peter Bright Make MSVS build.
DrPizza authored
70 ],
71 'sources': [
db1bf67 ry Move GYP file to the project root
ry authored
72 'src/platform_win32.cc',
73 'src/node_stdio_win32.cc',
79d9f62 Peter Bright Fix bad platform name.
DrPizza authored
74 # 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
75 'deps/uv/src/eio/eio.c',
6ac8c55 Peter Bright Make MSVS build.
DrPizza authored
76 ],
4f3c8b3 ry WIP
ry authored
77 'defines': [
79d9f62 Peter Bright Fix bad platform name.
DrPizza authored
78 'PTW32_STATIC_LIB',
6ac8c55 Peter Bright Make MSVS build.
DrPizza authored
79 'FD_SETSIZE=1024',
79d9f62 Peter Bright Fix bad platform name.
DrPizza authored
80 # we need to use node's preferred "win32" rather than gyp's preferred "win"
81 'PLATFORM="win32"',
4f3c8b3 ry WIP
ry authored
82 ],
83 },{ # POSIX
a979ab9 ry Improve gyp build - now works kind of
ry authored
84 'defines': [ '__POSIX__' ],
4f3c8b3 ry WIP
ry authored
85 'sources': [
db1bf67 ry Move GYP file to the project root
ry authored
86 'src/node_cares.cc',
87 'src/node_net.cc',
88 'src/node_signal_watcher.cc',
89 'src/node_stat_watcher.cc',
90 'src/node_io_watcher.cc',
91 'src/node_stdio.cc',
92 'src/node_child_process.cc',
93 'src/node_timer.cc'
4f3c8b3 ry WIP
ry authored
94 ]
95 }],
96 [ 'OS=="mac"', {
db1bf67 ry Move GYP file to the project root
ry authored
97 'sources': [ 'src/platform_darwin.cc' ],
a979ab9 ry Improve gyp build - now works kind of
ry authored
98 'libraries': [ '-framework Carbon' ],
b433c42 ry gyp: Support Linux
ry authored
99 }],
100 [ 'OS=="linux"', {
101 'sources': [ 'src/platform_linux.cc' ],
102 'libraries': [
103 '-lutil' # needed for openpty
104 ],
4f3c8b3 ry WIP
ry authored
105 }]
16788f4 Peter Bright Rename gyp files to produce useful solution names.
DrPizza authored
106 ],
107 'msvs-settings': {
108 'VCLinkerTool': {
109 'SubSystem': 1, # /subsystem:console
110 },
111 },
4f3c8b3 ry WIP
ry authored
112 },
113
114 {
115 'target_name': 'node_js2c',
116 'type': 'none',
117 'toolsets': ['host'],
118 'variables': {
119 'library_files': [
db1bf67 ry Move GYP file to the project root
ry authored
120 'src/node.js',
121 'lib/_debugger.js',
122 'lib/_linklist.js',
123 'lib/assert.js',
124 'lib/buffer.js',
125 'lib/buffer_ieee754.js',
126 'lib/child_process_legacy.js',
127 'lib/child_process_uv.js',
128 'lib/console.js',
129 'lib/constants.js',
130 'lib/crypto.js',
131 'lib/dgram.js',
132 'lib/dns_legacy.js',
133 'lib/dns_uv.js',
134 'lib/events.js',
135 'lib/freelist.js',
136 'lib/fs.js',
137 'lib/http.js',
138 'lib/http2.js',
139 'lib/https.js',
140 'lib/https2.js',
141 'lib/module.js',
142 'lib/net_legacy.js',
143 'lib/net_uv.js',
144 'lib/os.js',
145 'lib/path.js',
146 'lib/punycode.js',
147 'lib/querystring.js',
148 'lib/readline.js',
149 'lib/repl.js',
150 'lib/stream.js',
151 'lib/string_decoder.js',
152 'lib/sys.js',
153 'lib/timers_legacy.js',
154 'lib/timers_uv.js',
155 'lib/tls.js',
156 'lib/tty.js',
157 'lib/tty_posix.js',
158 'lib/tty_win32.js',
159 'lib/url.js',
160 'lib/util.js',
161 'lib/vm.js',
4f3c8b3 ry WIP
ry authored
162 ],
163 },
a979ab9 ry Improve gyp build - now works kind of
ry authored
164
4f3c8b3 ry WIP
ry authored
165 'actions': [
166 {
167 'action_name': 'node_js2c',
a979ab9 ry Improve gyp build - now works kind of
ry authored
168
4f3c8b3 ry WIP
ry authored
169 'inputs': [
db1bf67 ry Move GYP file to the project root
ry authored
170 './tools/js2c.py',
4f3c8b3 ry WIP
ry authored
171 '<@(library_files)',
172 ],
a979ab9 ry Improve gyp build - now works kind of
ry authored
173
4f3c8b3 ry WIP
ry authored
174 'outputs': [
175 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
176 ],
a979ab9 ry Improve gyp build - now works kind of
ry authored
177
178 # FIXME can the following conditions be shorted by just setting
179 # macros.py into some variable which then gets included in the
180 # action?
181
182 'conditions': [
183 [ 'node_use_dtrace=="true"', {
184 'action': [
185 'python',
db1bf67 ry Move GYP file to the project root
ry authored
186 'tools/js2c.py',
a979ab9 ry Improve gyp build - now works kind of
ry authored
187 '<@(_outputs)',
188 '<@(library_files)'
189 ],
190 }, { # No Dtrace
191 'action': [
192 'python',
db1bf67 ry Move GYP file to the project root
ry authored
193 'tools/js2c.py',
a979ab9 ry Improve gyp build - now works kind of
ry authored
194 '<@(_outputs)',
195 '<@(library_files)',
db1bf67 ry Move GYP file to the project root
ry authored
196 'src/macros.py'
a979ab9 ry Improve gyp build - now works kind of
ry authored
197 ],
198 }]
71333b3 Peter Bright Modify GYP scripts for VC build
DrPizza authored
199 ],
4f3c8b3 ry WIP
ry authored
200 },
201 ],
202 }, # end node_js2c
203 ] # end targets
204 }
205
Something went wrong with that request. Please try again.