Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 485 lines (473 sloc) 14.782 kb
4f3c8b3 @ry WIP
ry authored
1 {
bea4827 @ry More progress with gyp
ry authored
2 'variables': {
bca88b2 @ry support nosnapshot in vcbuild.bat
ry authored
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': '',
cc15299 @davepacheco build: add support for DTrace and postmortem
davepacheco authored
7 'node_use_dtrace%': 'false',
35a1421 Windows: Enable ETW events.
Igor Zinkovsky authored
8 'node_use_etw%': 'false',
f657ce6 @sblom windows: add tracing with performance counters
sblom authored
9 'node_use_perfctr%': 'false',
841b7f5 @sblom Ease building with VS Express by checking in generated files.
sblom authored
10 'node_has_winsdk%': 'false',
a84adad @TooTallNate Default node_shared_v8 to false.
TooTallNate authored
11 'node_shared_v8%': 'false',
d03b848 @tchollingsworth build: support shared zlib
tchollingsworth authored
12 'node_shared_zlib%': 'false',
bfd78b6 @sgallagher build: allow linking against system http_parser
sgallagher authored
13 'node_shared_http_parser%': 'false',
73ff653 @sgallagher build: allow linking against system c-ares
sgallagher authored
14 'node_shared_cares%': 'false',
38809e3 @sgallagher build: allow linking against system libuv
sgallagher authored
15 'node_shared_libuv%': 'false',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
16 'node_use_openssl%': 'true',
06810b2 tracing: add systemtap support
Jan Wynholds authored
17 'node_use_systemtap%': 'false',
fe464a2 @ry Rename GYP variable node_use_system_openssl to be consistent
ry authored
18 'node_shared_openssl%': 'false',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
19 'library_files': [
20 'src/node.js',
21 'lib/_debugger.js',
22 'lib/_linklist.js',
23 'lib/assert.js',
24 'lib/buffer.js',
96e423a @ry Remove child_process_legacy
ry authored
25 'lib/child_process.js',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
26 'lib/console.js',
27 'lib/constants.js',
28 'lib/crypto.js',
73b4b86 @ry Add cluster.js to node.gyp
ry authored
29 'lib/cluster.js',
71cce3f @ry Remove dgram_legacy
ry authored
30 'lib/dgram.js',
58e892d @ry Remove dns_legacy
ry authored
31 'lib/dns.js',
963459d @isaacs Domain feature
isaacs authored
32 'lib/domain.js',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
33 'lib/events.js',
34 'lib/freelist.js',
35 'lib/fs.js',
36 'lib/http.js',
62e4f89 @tjfontaine http: split Agent into its own file
tjfontaine authored
37 'lib/_http_agent.js',
951e0b6 @tjfontaine http: split Client into _http_client.js
tjfontaine authored
38 'lib/_http_client.js',
bb56489 @tjfontaine http: move parsers into _http_common.js
tjfontaine authored
39 'lib/_http_common.js',
5909a9c @tjfontaine http: move IncomingMessage into its own file
tjfontaine authored
40 'lib/_http_incoming.js',
dc9f97b @tjfontaine http: move OutgoingMessage into it's own file
tjfontaine authored
41 'lib/_http_outgoing.js',
6717fdc @tjfontaine http: move Server and ServerResponse out
tjfontaine authored
42 'lib/_http_server.js',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
43 'lib/https.js',
44 'lib/module.js',
be0bb2d @ry Remove net_legacy timers_legacy
ry authored
45 'lib/net.js',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
46 'lib/os.js',
47 'lib/path.js',
48 'lib/punycode.js',
49 'lib/querystring.js',
50 'lib/readline.js',
51 'lib/repl.js',
52 'lib/stream.js',
420e07c @isaacs streams2: The new stream base classes
isaacs authored
53 'lib/_stream_readable.js',
54 'lib/_stream_writable.js',
55 'lib/_stream_duplex.js',
56 'lib/_stream_transform.js',
57 'lib/_stream_passthrough.js',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
58 'lib/string_decoder.js',
59 'lib/sys.js',
be0bb2d @ry Remove net_legacy timers_legacy
ry authored
60 'lib/timers.js',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
61 'lib/tls.js',
af80e7b @indutny tls: introduce TLSSocket based on tls_wrap binding
indutny authored
62 'lib/_tls_legacy.js',
63 'lib/_tls_wrap.js',
cdf5d91 @ry Remove tty_legacy
ry authored
64 'lib/tty.js',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
65 'lib/url.js',
66 'lib/util.js',
67 'lib/vm.js',
5b8e1da @isaacs Initial pass at zlib bindings
isaacs authored
68 'lib/zlib.js',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
69 ],
bea4827 @ry More progress with gyp
ry authored
70 },
71
4f3c8b3 @ry WIP
ry authored
72 'targets': [
73 {
74 'target_name': 'node',
75 'type': 'executable',
bea4827 @ry More progress with gyp
ry authored
76
4f3c8b3 @ry WIP
ry authored
77 'dependencies': [
a979ab9 @ry Improve gyp build - now works kind of
ry authored
78 'node_js2c#host',
4f3c8b3 @ry WIP
ry authored
79 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
80
81 'include_dirs': [
db1bf67 @ry Move GYP file to the project root
ry authored
82 'src',
a616774 @sblom windows: improve Visual Studio Express build support
sblom authored
83 'tools/msvs/genfiles',
db1bf67 @ry Move GYP file to the project root
ry authored
84 'deps/uv/src/ares',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
85 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
86 ],
87
4f3c8b3 @ry WIP
ry authored
88 'sources': [
8fe5712 fs watcher binding
Igor Zinkovsky authored
89 'src/fs_event_wrap.cc',
db1bf67 @ry Move GYP file to the project root
ry authored
90 'src/cares_wrap.cc',
91 'src/handle_wrap.cc',
92 'src/node.cc',
93 'src/node_buffer.cc',
94 'src/node_constants.cc',
95 'src/node_extensions.cc',
96 'src/node_file.cc',
97 'src/node_http_parser.cc',
98 'src/node_javascript.cc',
99 'src/node_main.cc',
100 'src/node_os.cc',
101 'src/node_script.cc',
f0ce984 @bnoordhuis fs: make fs.watchFile() work on windows
bnoordhuis authored
102 'src/node_stat_watcher.cc',
db1bf67 @ry Move GYP file to the project root
ry authored
103 'src/node_string.cc',
c081809 @apaprocki vm: add support for timeout argument
apaprocki authored
104 'src/node_watchdog.cc',
5b8e1da @isaacs Initial pass at zlib bindings
isaacs authored
105 'src/node_zlib.cc',
db1bf67 @ry Move GYP file to the project root
ry authored
106 'src/pipe_wrap.cc',
600a646 @piscisaureus process: use uv_signal instead of ev_signal
piscisaureus authored
107 'src/signal_wrap.cc',
8f3f9f7 @trevnorris smalloc: initial implementation
trevnorris authored
108 'src/smalloc.cc',
64fc34b @isaacs src: Add StringBytes static util class
isaacs authored
109 'src/string_bytes.cc',
db1bf67 @ry Move GYP file to the project root
ry authored
110 'src/stream_wrap.cc',
111 'src/tcp_wrap.cc',
112 'src/timer_wrap.cc',
c1ae6ea @ry Add TTYWrap
ry authored
113 'src/tty_wrap.cc',
db1bf67 @ry Move GYP file to the project root
ry authored
114 'src/process_wrap.cc',
06f750c @ry fix windows build
ry authored
115 'src/udp_wrap.cc',
64b4168 @DrPizza Add headers to improve the IDE experience.
DrPizza authored
116 # headers to make for a more pleasant IDE experience
117 'src/handle_wrap.h',
118 'src/node.h',
119 'src/node_buffer.h',
120 'src/node_constants.h',
121 'src/node_extensions.h',
122 'src/node_file.h',
123 'src/node_http_parser.h',
124 'src/node_javascript.h',
125 'src/node_os.h',
126 'src/node_root_certs.h',
127 'src/node_script.h',
128 'src/node_string.h',
129 'src/node_version.h',
c081809 @apaprocki vm: add support for timeout argument
apaprocki authored
130 'src/node_watchdog.h',
6978e99 @indutny process: abstract out HandleToStream
indutny authored
131 'src/node_wrap.h',
64b4168 @DrPizza Add headers to improve the IDE experience.
DrPizza authored
132 'src/pipe_wrap.h',
a7820a1 @bnoordhuis src: replace ngx-queue.h with queue.h
bnoordhuis authored
133 'src/queue.h',
8f3f9f7 @trevnorris smalloc: initial implementation
trevnorris authored
134 'src/smalloc.h',
af98fc9 @indutny child_process: new stdio API for .spawn() method
indutny authored
135 'src/tty_wrap.h',
136 'src/tcp_wrap.h',
137 'src/udp_wrap.h',
64b4168 @DrPizza Add headers to improve the IDE experience.
DrPizza authored
138 'src/req_wrap.h',
64fc34b @isaacs src: Add StringBytes static util class
isaacs authored
139 'src/string_bytes.h',
64b4168 @DrPizza Add headers to improve the IDE experience.
DrPizza authored
140 'src/stream_wrap.h',
9e55ba7 @piscisaureus dns: don't rely on libuv for c-ares integration
piscisaureus authored
141 'src/tree.h',
64b4168 @DrPizza Add headers to improve the IDE experience.
DrPizza authored
142 'deps/http_parser/http_parser.h',
143 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
ae2ac4f @piscisaureus gyp: add js files to node project
piscisaureus authored
144 # javascript files to make for an even more pleasant IDE experience
145 '<@(library_files)',
c0c4bd4 @piscisaureus Add common.gypi to gyp output
piscisaureus authored
146 # node.gyp is added to the project by default.
147 'common.gypi',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
148 ],
149
150 'defines': [
09dc577 @bnoordhuis build: move internals to separate header file
bnoordhuis authored
151 'NODE_WANT_INTERNALS=1',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
152 'ARCH="<(target_arch)"',
153 'PLATFORM="<(OS)"',
f84bf5b @mmalecki build: allow to specify custom tags
mmalecki authored
154 'NODE_TAG="<(node_tag)"',
4f3c8b3 @ry WIP
ry authored
155 ],
156
157 'conditions': [
a979ab9 @ry Improve gyp build - now works kind of
ry authored
158 [ 'node_use_openssl=="true"', {
71333b3 @DrPizza Modify GYP scripts for VC build
DrPizza authored
159 'defines': [ 'HAVE_OPENSSL=1' ],
03e008d @indutny tls_wrap: embed TLS encryption into streamwrap
indutny authored
160 'sources': [
161 'src/node_crypto.cc',
162 'src/node_crypto_bio.cc',
567c72b @TooTallNate configure: fix the --without-ssl option
TooTallNate authored
163 'src/node_crypto.h',
164 'src/node_crypto_bio.h',
03e008d @indutny tls_wrap: embed TLS encryption into streamwrap
indutny authored
165 'src/tls_wrap.cc',
166 'src/tls_wrap.h'
167 ],
9f98698 @bnoordhuis build: configure node, v8, cares and openssl
bnoordhuis authored
168 'conditions': [
fe464a2 @ry Rename GYP variable node_use_system_openssl to be consistent
ry authored
169 [ 'node_shared_openssl=="false"', {
9f98698 @bnoordhuis build: configure node, v8, cares and openssl
bnoordhuis authored
170 'dependencies': [ './deps/openssl/openssl.gyp:openssl' ],
171 }]]
a979ab9 @ry Improve gyp build - now works kind of
ry authored
172 }, {
173 'defines': [ 'HAVE_OPENSSL=0' ]
174 }],
64b4168 @DrPizza Add headers to improve the IDE experience.
DrPizza authored
175 [ 'node_use_dtrace=="true"', {
cc15299 @davepacheco build: add support for DTrace and postmortem
davepacheco authored
176 'defines': [ 'HAVE_DTRACE=1' ],
177 'dependencies': [ 'node_dtrace_header' ],
178 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
179 #
fe7440c @davepacheco build: allow building with dtrace on osx
davepacheco authored
180 # DTrace is supported on solaris, mac, and bsd. There are three
181 # object files associated with DTrace support, but they're not all
182 # used all the time:
183 #
184 # node_dtrace.o all configurations
185 # node_dtrace_ustack.o not supported on OS X
186 # node_dtrace_provider.o All except OS X. "dtrace -G" is not
187 # used on OS X.
188 #
189 # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
190 # actually exist. They're listed here to trick GYP into linking the
191 # corresponding object files into the final "node" executable. These
192 # object files are generated by "dtrace -G" using custom actions
193 # below, and the GYP-generated Makefiles will properly build them when
194 # needed.
cc15299 @davepacheco build: add support for DTrace and postmortem
davepacheco authored
195 #
64b4168 @DrPizza Add headers to improve the IDE experience.
DrPizza authored
196 'sources': [
b3ddb89 @ry Don't compile in node_dtrace.cc when not supported
ry authored
197 'src/node_dtrace.cc',
64b4168 @DrPizza Add headers to improve the IDE experience.
DrPizza authored
198 ],
fe7440c @davepacheco build: allow building with dtrace on osx
davepacheco authored
199 'conditions': [ [
200 'OS!="mac"', {
201 'sources': [
202 'src/node_dtrace_ustack.cc',
203 'src/node_dtrace_provider.cc',
204 ]
205 }
206 ] ]
cc15299 @davepacheco build: add support for DTrace and postmortem
davepacheco authored
207 } ],
06810b2 tracing: add systemtap support
Jan Wynholds authored
208 [ 'node_use_systemtap=="true"', {
209 'defines': [ 'HAVE_SYSTEMTAP=1', 'STAP_SDT_V1=1' ],
210 'sources': [
211 'src/node_dtrace.cc',
212 ],
213 } ],
35a1421 Windows: Enable ETW events.
Igor Zinkovsky authored
214 [ 'node_use_etw=="true"', {
215 'defines': [ 'HAVE_ETW=1' ],
216 'dependencies': [ 'node_etw' ],
217 'sources': [
218 'src/node_win32_etw_provider.h',
219 'src/node_win32_etw_provider-inl.h',
220 'src/node_win32_etw_provider.cc',
221 'src/node_dtrace.cc',
a616774 @sblom windows: improve Visual Studio Express build support
sblom authored
222 'tools/msvs/genfiles/node_etw_provider.h',
223 'tools/msvs/genfiles/node_etw_provider.rc',
35a1421 Windows: Enable ETW events.
Igor Zinkovsky authored
224 ]
225 } ],
f657ce6 @sblom windows: add tracing with performance counters
sblom authored
226 [ 'node_use_perfctr=="true"', {
227 'defines': [ 'HAVE_PERFCTR=1' ],
228 'dependencies': [ 'node_perfctr' ],
229 'sources': [
230 'src/node_win32_perfctr_provider.h',
231 'src/node_win32_perfctr_provider.cc',
232 'src/node_counters.cc',
233 'src/node_counters.h',
a616774 @sblom windows: improve Visual Studio Express build support
sblom authored
234 'tools/msvs/genfiles/node_perfctr_provider.rc',
f657ce6 @sblom windows: add tracing with performance counters
sblom authored
235 ]
236 } ],
d8852aa @paddybyers build: depend on v8 postmortem-metadata if enabled
paddybyers authored
237 [ 'v8_postmortem_support=="true"', {
238 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:postmortem-metadata' ],
239 }],
f00c8bc @bnoordhuis build: fix --shared-v8 option
bnoordhuis authored
240 [ 'node_shared_v8=="false"', {
59ecf2c @isaacs Revert "Revert "build: support shared V8 properly""
isaacs authored
241 'sources': [
242 'deps/v8/include/v8.h',
243 'deps/v8/include/v8-debug.h',
244 ],
245 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
246 }],
247
d03b848 @tchollingsworth build: support shared zlib
tchollingsworth authored
248 [ 'node_shared_zlib=="false"', {
249 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
250 }],
251
bfd78b6 @sgallagher build: allow linking against system http_parser
sgallagher authored
252 [ 'node_shared_http_parser=="false"', {
253 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
254 }],
255
73ff653 @sgallagher build: allow linking against system c-ares
sgallagher authored
256 [ 'node_shared_cares=="false"', {
257 'dependencies': [ 'deps/cares/cares.gyp:cares' ],
258 }],
38809e3 @sgallagher build: allow linking against system libuv
sgallagher authored
259
260 [ 'node_shared_libuv=="false"', {
261 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
262 }],
73ff653 @sgallagher build: allow linking against system c-ares
sgallagher authored
263
4f3c8b3 @ry WIP
ry authored
264 [ 'OS=="win"', {
6ac8c55 @DrPizza Make MSVS build.
DrPizza authored
265 'sources': [
0187b65 @piscisaureus Move resource files to src/res.
piscisaureus authored
266 'src/res/node.rc',
6ac8c55 @DrPizza Make MSVS build.
DrPizza authored
267 ],
4f3c8b3 @ry WIP
ry authored
268 'defines': [
6ac8c55 @DrPizza Make MSVS build.
DrPizza authored
269 'FD_SETSIZE=1024',
79d9f62 @DrPizza Fix bad platform name.
DrPizza authored
270 # we need to use node's preferred "win32" rather than gyp's preferred "win"
271 'PLATFORM="win32"',
d52f502 @piscisaureus Windows: another attempt to support unicode argv
piscisaureus authored
272 '_UNICODE=1',
4f3c8b3 @ry WIP
ry authored
273 ],
1976288 @ry win: link to psapi.lib
ry authored
274 'libraries': [ '-lpsapi.lib' ]
acbfc40 @bnoordhuis build: fix add-on loading on freebsd
bnoordhuis authored
275 }, { # POSIX
a979ab9 @ry Improve gyp build - now works kind of
ry authored
276 'defines': [ '__POSIX__' ],
4f3c8b3 @ry WIP
ry authored
277 }],
278 [ 'OS=="mac"', {
a979ab9 @ry Improve gyp build - now works kind of
ry authored
279 'libraries': [ '-framework Carbon' ],
f2ba4ce @TooTallNate build: remove the old -DPLATFORM="mac" define
TooTallNate authored
280 'defines!': [
281 'PLATFORM="mac"',
282 ],
9ff86a2 @TooTallNate build: set `process.platform` to "darwin" on OS X
TooTallNate authored
283 'defines': [
284 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
285 'PLATFORM="darwin"',
286 ],
b433c42 @ry gyp: Support Linux
ry authored
287 }],
decd818 @bnoordhuis build: fix freebsd gyp build
bnoordhuis authored
288 [ 'OS=="freebsd"', {
289 'libraries': [
290 '-lutil',
291 '-lkvm',
292 ],
293 }],
13871fa @bnoordhuis build: fix sunos gyp build, include platform file
bnoordhuis authored
294 [ 'OS=="solaris"', {
295 'libraries': [
296 '-lkstat',
f70b138 @trentm always link sunos builds with libumem
trentm authored
297 '-lumem',
13871fa @bnoordhuis build: fix sunos gyp build, include platform file
bnoordhuis authored
298 ],
606a933 @TooTallNate build: set `process.platform` to "sunos" on SunOS
TooTallNate authored
299 'defines!': [
300 'PLATFORM="solaris"',
301 ],
302 'defines': [
303 # we need to use node's preferred "sunos"
304 # rather than gyp's preferred "solaris"
305 'PLATFORM="sunos"',
306 ],
13871fa @bnoordhuis build: fix sunos gyp build, include platform file
bnoordhuis authored
307 }],
16788f4 @DrPizza Rename gyp files to produce useful solution names.
DrPizza authored
308 ],
5691e8a @piscisaureus windows: fix typo in node.gyp
piscisaureus authored
309 'msvs_settings': {
16788f4 @DrPizza Rename gyp files to produce useful solution names.
DrPizza authored
310 'VCLinkerTool': {
311 'SubSystem': 1, # /subsystem:console
312 },
313 },
4f3c8b3 @ry WIP
ry authored
314 },
35a1421 Windows: Enable ETW events.
Igor Zinkovsky authored
315 # generate ETW header and resource files
316 {
317 'target_name': 'node_etw',
318 'type': 'none',
319 'conditions': [
841b7f5 @sblom Ease building with VS Express by checking in generated files.
sblom authored
320 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
35a1421 Windows: Enable ETW events.
Igor Zinkovsky authored
321 'actions': [
322 {
323 'action_name': 'node_etw',
324 'inputs': [ 'src/res/node_etw_provider.man' ],
953b049 @sblom windows: correct outputs list in "node_etw" gyp target
sblom authored
325 'outputs': [
a616774 @sblom windows: improve Visual Studio Express build support
sblom authored
326 'tools/msvs/genfiles/node_etw_provider.rc',
327 'tools/msvs/genfiles/node_etw_provider.h',
328 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
953b049 @sblom windows: correct outputs list in "node_etw" gyp target
sblom authored
329 ],
a616774 @sblom windows: improve Visual Studio Express build support
sblom authored
330 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
35a1421 Windows: Enable ETW events.
Igor Zinkovsky authored
331 }
332 ]
333 } ]
334 ]
335 },
f657ce6 @sblom windows: add tracing with performance counters
sblom authored
336 # generate perf counter header and resource files
337 {
338 'target_name': 'node_perfctr',
339 'type': 'none',
340 'conditions': [
841b7f5 @sblom Ease building with VS Express by checking in generated files.
sblom authored
341 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
f657ce6 @sblom windows: add tracing with performance counters
sblom authored
342 'actions': [
343 {
344 'action_name': 'node_perfctr_man',
345 'inputs': [ 'src/res/node_perfctr_provider.man' ],
346 'outputs': [
a616774 @sblom windows: improve Visual Studio Express build support
sblom authored
347 'tools/msvs/genfiles/node_perfctr_provider.h',
348 'tools/msvs/genfiles/node_perfctr_provider.rc',
349 'tools/msvs/genfiles/MSG00001.BIN',
f657ce6 @sblom windows: add tracing with performance counters
sblom authored
350 ],
351 'action': [ 'ctrpp <@(_inputs) '
a616774 @sblom windows: improve Visual Studio Express build support
sblom authored
352 '-o tools/msvs/genfiles/node_perfctr_provider.h '
353 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
f657ce6 @sblom windows: add tracing with performance counters
sblom authored
354 ]
355 },
356 ],
357 } ]
358 ]
359 },
4f3c8b3 @ry WIP
ry authored
360 {
361 'target_name': 'node_js2c',
362 'type': 'none',
363 'toolsets': ['host'],
364 'actions': [
365 {
366 'action_name': 'node_js2c',
367 'inputs': [
368 '<@(library_files)',
95fd517 @TooTallNate node.gyp: include the config.gypi file in the js2c inputs list
TooTallNate authored
369 './config.gypi',
4f3c8b3 @ry WIP
ry authored
370 ],
371 'outputs': [
372 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
373 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
374 'conditions': [
f657ce6 @sblom windows: add tracing with performance counters
sblom authored
375 [ 'node_use_dtrace=="false"'
376 ' and node_use_etw=="false"'
377 ' and node_use_systemtap=="false"',
06810b2 tracing: add systemtap support
Jan Wynholds authored
378 {
f657ce6 @sblom windows: add tracing with performance counters
sblom authored
379 'inputs': ['src/macros.py']
380 }
a979ab9 @ry Improve gyp build - now works kind of
ry authored
381 ],
f657ce6 @sblom windows: add tracing with performance counters
sblom authored
382 [ 'node_use_perfctr=="false"', {
383 'inputs': [ 'src/perfctr_macros.py' ]
384 }]
385 ],
a979ab9 @ry Improve gyp build - now works kind of
ry authored
386 'action': [
1e738c5 @bnoordhuis build: make python executable configurable
bnoordhuis authored
387 '<(python)',
db1bf67 @ry Move GYP file to the project root
ry authored
388 'tools/js2c.py',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
389 '<@(_outputs)',
95fd517 @TooTallNate node.gyp: include the config.gypi file in the js2c inputs list
TooTallNate authored
390 '<@(_inputs)',
a979ab9 @ry Improve gyp build - now works kind of
ry authored
391 ],
4f3c8b3 @ry WIP
ry authored
392 },
393 ],
394 }, # end node_js2c
cc15299 @davepacheco build: add support for DTrace and postmortem
davepacheco authored
395 {
396 'target_name': 'node_dtrace_header',
397 'type': 'none',
398 'conditions': [
23509eb @tjfontaine dtrace: unify dtrace and systemtap interfaces
tjfontaine authored
399 [ 'node_use_dtrace=="true" or node_use_systemtap=="true"', {
cc15299 @davepacheco build: add support for DTrace and postmortem
davepacheco authored
400 'actions': [
401 {
402 'action_name': 'node_dtrace_header',
403 'inputs': [ 'src/node_provider.d' ],
404 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
405 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
406 '-o', '<@(_outputs)' ]
407 }
408 ]
409 } ]
410 ]
411 },
412 {
413 'target_name': 'node_dtrace_provider',
414 'type': 'none',
415 'conditions': [
fe7440c @davepacheco build: allow building with dtrace on osx
davepacheco authored
416 [ 'node_use_dtrace=="true" and OS!="mac"', {
cc15299 @davepacheco build: add support for DTrace and postmortem
davepacheco authored
417 'actions': [
418 {
419 'action_name': 'node_dtrace_provider_o',
420 'inputs': [
f0d80d7 @tjfontaine dtrace: enable uv's probes if enabled
tjfontaine authored
421 '<(PRODUCT_DIR)/obj.target/libuv/deps/uv/src/unix/core.o',
422 '<(PRODUCT_DIR)/obj.target/node/src/node_dtrace.o',
cc15299 @davepacheco build: add support for DTrace and postmortem
davepacheco authored
423 ],
424 'outputs': [
425 '<(PRODUCT_DIR)/obj.target/node/src/node_dtrace_provider.o'
426 ],
f0d80d7 @tjfontaine dtrace: enable uv's probes if enabled
tjfontaine authored
427 'action': [ 'dtrace', '-G', '-xnolibs', '-s', 'src/node_provider.d',
428 '-s', 'deps/uv/src/unix/uv-dtrace.d', '<@(_inputs)',
cc15299 @davepacheco build: add support for DTrace and postmortem
davepacheco authored
429 '-o', '<@(_outputs)' ]
430 }
431 ]
432 } ]
433 ]
434 },
435 {
436 'target_name': 'node_dtrace_ustack',
437 'type': 'none',
438 'conditions': [
fe7440c @davepacheco build: allow building with dtrace on osx
davepacheco authored
439 [ 'node_use_dtrace=="true" and OS!="mac"', {
cc15299 @davepacheco build: add support for DTrace and postmortem
davepacheco authored
440 'actions': [
441 {
442 'action_name': 'node_dtrace_ustack_constants',
443 'inputs': [
39dfe94 @tjfontaine build: libv8_base.a is now libv8_base.<arch>.a
tjfontaine authored
444 '<(PRODUCT_DIR)/obj.target/deps/v8/tools/gyp/libv8_base.<(target_arch).a'
cc15299 @davepacheco build: add support for DTrace and postmortem
davepacheco authored
445 ],
446 'outputs': [
447 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
448 ],
449 'action': [
450 'tools/genv8constants.py',
451 '<@(_outputs)',
452 '<@(_inputs)'
453 ]
454 },
455 {
456 'action_name': 'node_dtrace_ustack',
457 'inputs': [
458 'src/v8ustack.d',
459 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
460 ],
461 'outputs': [
462 '<(PRODUCT_DIR)/obj.target/node/src/node_dtrace_ustack.o'
463 ],
3d913fe @indutny Revert "sunos: unbreak build after v8 downgrade"
indutny authored
464 'conditions': [
465 [ 'target_arch=="ia32"', {
466 'action': [
467 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
468 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
469 ]
470 } ],
471 [ 'target_arch=="x64"', {
472 'action': [
473 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
474 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
475 ]
476 } ],
cc15299 @davepacheco build: add support for DTrace and postmortem
davepacheco authored
477 ]
478 }
479 ]
480 } ],
481 ]
482 }
4f3c8b3 @ry WIP
ry authored
483 ] # end targets
484 }
Something went wrong with that request. Please try again.