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