Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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