Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 207 lines (192 sloc) 5.479 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',
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 @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"', {
71333b3 @DrPizza 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 @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 'sources': [
db1bf67 @ry Move GYP file to the project root
ry authored
72 'src/platform_win32.cc',
73 'src/node_stdio_win32.cc',
79d9f62 @DrPizza 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 @DrPizza Make MSVS build.
DrPizza authored
76 ],
4f3c8b3 @ry WIP
ry authored
77 'defines': [
79d9f62 @DrPizza Fix bad platform name.
DrPizza authored
78 'PTW32_STATIC_LIB',
6ac8c55 @DrPizza Make MSVS build.
DrPizza authored
79 'FD_SETSIZE=1024',
79d9f62 @DrPizza 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': [
c2ae39b @ry gyp: -ldl on linux
ry authored
103 '-ldl',
b433c42 @ry gyp: Support Linux
ry authored
104 '-lutil' # needed for openpty
105 ],
4f3c8b3 @ry WIP
ry authored
106 }]
16788f4 @DrPizza Rename gyp files to produce useful solution names.
DrPizza authored
107 ],
108 'msvs-settings': {
109 'VCLinkerTool': {
110 'SubSystem': 1, # /subsystem:console
111 },
112 },
4f3c8b3 @ry WIP
ry authored
113 },
114
115 {
116 'target_name': 'node_js2c',
117 'type': 'none',
118 'toolsets': ['host'],
119 'variables': {
120 'library_files': [
db1bf67 @ry Move GYP file to the project root
ry authored
121 'src/node.js',
122 'lib/_debugger.js',
123 'lib/_linklist.js',
124 'lib/assert.js',
125 'lib/buffer.js',
126 'lib/buffer_ieee754.js',
127 'lib/child_process_legacy.js',
128 'lib/child_process_uv.js',
129 'lib/console.js',
130 'lib/constants.js',
131 'lib/crypto.js',
132 'lib/dgram.js',
133 'lib/dns_legacy.js',
134 'lib/dns_uv.js',
135 'lib/events.js',
136 'lib/freelist.js',
137 'lib/fs.js',
138 'lib/http.js',
139 'lib/http2.js',
140 'lib/https.js',
141 'lib/https2.js',
142 'lib/module.js',
143 'lib/net_legacy.js',
144 'lib/net_uv.js',
145 'lib/os.js',
146 'lib/path.js',
147 'lib/punycode.js',
148 'lib/querystring.js',
149 'lib/readline.js',
150 'lib/repl.js',
151 'lib/stream.js',
152 'lib/string_decoder.js',
153 'lib/sys.js',
154 'lib/timers_legacy.js',
155 'lib/timers_uv.js',
156 'lib/tls.js',
157 'lib/tty.js',
158 'lib/tty_posix.js',
159 'lib/tty_win32.js',
160 'lib/url.js',
161 'lib/util.js',
162 'lib/vm.js',
4f3c8b3 @ry WIP
ry authored
163 ],
164 },
a979ab9 @ry Improve gyp build - now works kind of
ry authored
165
4f3c8b3 @ry WIP
ry authored
166 'actions': [
167 {
168 'action_name': 'node_js2c',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
169
4f3c8b3 @ry WIP
ry authored
170 'inputs': [
db1bf67 @ry Move GYP file to the project root
ry authored
171 './tools/js2c.py',
4f3c8b3 @ry WIP
ry authored
172 '<@(library_files)',
173 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
174
4f3c8b3 @ry WIP
ry authored
175 'outputs': [
176 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
177 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
178
179 # FIXME can the following conditions be shorted by just setting
180 # macros.py into some variable which then gets included in the
181 # action?
182
183 'conditions': [
184 [ 'node_use_dtrace=="true"', {
185 'action': [
186 'python',
db1bf67 @ry Move GYP file to the project root
ry authored
187 'tools/js2c.py',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
188 '<@(_outputs)',
189 '<@(library_files)'
190 ],
191 }, { # No Dtrace
192 'action': [
193 'python',
db1bf67 @ry Move GYP file to the project root
ry authored
194 'tools/js2c.py',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
195 '<@(_outputs)',
196 '<@(library_files)',
db1bf67 @ry Move GYP file to the project root
ry authored
197 'src/macros.py'
a979ab9 @ry Improve gyp build - now works kind of
ry authored
198 ],
199 }]
71333b3 @DrPizza Modify GYP scripts for VC build
DrPizza authored
200 ],
4f3c8b3 @ry WIP
ry authored
201 },
202 ],
203 }, # end node_js2c
204 ] # end targets
205 }
206
Something went wrong with that request. Please try again.