blob: 36c05cfe16a35eb7a0cfe0ed66606f7da06a6907 [file] [log] [blame]
Ryan Dahl4f3c8b32011-08-04 00:01:301{
Ryan Dahlbea48272011-08-04 06:36:272 'variables': {
Ryan Dahlbca88b22012-01-07 00:20:453 'v8_use_snapshot%': 'true',
Ryan Dahld2ab3142011-10-07 08:08:534 # Turn off -Werror in V8
5 # See http://codereview.chromium.org/8159015
6 'werror': '',
Dave Pachecocc152992012-03-28 17:26:107 'node_use_dtrace%': 'false',
Igor Zinkovsky35a14212012-06-11 23:23:178 'node_use_etw%': 'false',
Scott Blomquistf657ce62012-11-20 23:27:229 'node_use_perfctr%': 'false',
Scott Blomquist841b7f52012-12-21 08:06:2110 'node_has_winsdk%': 'false',
Nathan Rajlicha84adad2012-02-23 22:32:2411 'node_shared_v8%': 'false',
T.C. Hollingsworthd03b8482012-02-26 23:02:2112 'node_shared_zlib%': 'false',
Stephen Gallagherbfd78b62012-10-23 13:01:2613 'node_shared_http_parser%': 'false',
Stephen Gallagher73ff6532012-10-23 14:27:1914 'node_shared_cares%': 'false',
Stephen Gallagher38809e32012-10-23 23:54:2215 'node_shared_libuv%': 'false',
Bert Belderae2ac4f2011-09-04 23:01:5316 'node_use_openssl%': 'true',
Jan Wynholds06810b22012-10-09 22:09:0717 'node_use_systemtap%': 'false',
Ryan Dahlfe464a22012-06-20 20:31:4918 'node_shared_openssl%': 'false',
Bert Belderae2ac4f2011-09-04 23:01:5319 'library_files': [
20 'src/node.js',
21 'lib/_debugger.js',
22 'lib/_linklist.js',
23 'lib/assert.js',
24 'lib/buffer.js',
Ryan Dahl96e423a2011-10-11 20:16:3325 'lib/child_process.js',
Bert Belderae2ac4f2011-09-04 23:01:5326 'lib/console.js',
27 'lib/constants.js',
28 'lib/crypto.js',
Ryan Dahl73b4b862011-10-12 21:51:2529 'lib/cluster.js',
Ryan Dahl71cce3f2011-10-11 20:26:4130 'lib/dgram.js',
Ryan Dahl58e892d2011-10-11 20:21:3031 'lib/dns.js',
isaacs963459d2012-04-06 23:26:1832 'lib/domain.js',
Bert Belderae2ac4f2011-09-04 23:01:5333 'lib/events.js',
34 'lib/freelist.js',
35 'lib/fs.js',
36 'lib/http.js',
Timothy J Fontaine62e4f892013-04-11 21:47:1537 'lib/_http_agent.js',
Timothy J Fontainebb564892013-04-11 22:15:4138 'lib/_http_common.js',
Timothy J Fontaine5909a9c2013-04-11 22:00:4539 'lib/_http_incoming.js',
Bert Belderae2ac4f2011-09-04 23:01:5340 'lib/https.js',
Bert Belderae2ac4f2011-09-04 23:01:5341 'lib/module.js',
Ryan Dahlbe0bb2d2011-10-11 20:07:1442 'lib/net.js',
Bert Belderae2ac4f2011-09-04 23:01:5343 'lib/os.js',
44 'lib/path.js',
45 'lib/punycode.js',
46 'lib/querystring.js',
47 'lib/readline.js',
48 'lib/repl.js',
49 'lib/stream.js',
isaacs420e07c2012-10-02 22:44:5050 'lib/_stream_readable.js',
51 'lib/_stream_writable.js',
52 'lib/_stream_duplex.js',
53 'lib/_stream_transform.js',
54 'lib/_stream_passthrough.js',
Bert Belderae2ac4f2011-09-04 23:01:5355 'lib/string_decoder.js',
56 'lib/sys.js',
Ryan Dahlbe0bb2d2011-10-11 20:07:1457 'lib/timers.js',
Bert Belderae2ac4f2011-09-04 23:01:5358 'lib/tls.js',
Ryan Dahlcdf5d912011-10-11 20:41:3359 'lib/tty.js',
Bert Belderae2ac4f2011-09-04 23:01:5360 'lib/url.js',
61 'lib/util.js',
62 'lib/vm.js',
isaacs5b8e1da2011-09-06 23:13:0563 'lib/zlib.js',
Bert Belderae2ac4f2011-09-04 23:01:5364 ],
Ryan Dahlbea48272011-08-04 06:36:2765 },
66
Ryan Dahl4f3c8b32011-08-04 00:01:3067 'targets': [
68 {
69 'target_name': 'node',
70 'type': 'executable',
Ryan Dahlbea48272011-08-04 06:36:2771
Ryan Dahl4f3c8b32011-08-04 00:01:3072 'dependencies': [
Ryan Dahla979ab92011-08-04 23:40:0773 'node_js2c#host',
Ryan Dahl4f3c8b32011-08-04 00:01:3074 ],
Ryan Dahla979ab92011-08-04 23:40:0775
76 'include_dirs': [
Ryan Dahldb1bf672011-08-08 19:11:4877 'src',
Scott Blomquista6167742013-01-03 22:36:0478 'tools/msvs/genfiles',
Ryan Dahldb1bf672011-08-08 19:11:4879 'deps/uv/src/ares',
Ryan Dahla979ab92011-08-04 23:40:0780 '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
81 ],
82
Ryan Dahl4f3c8b32011-08-04 00:01:3083 'sources': [
Igor Zinkovsky8fe57122011-09-22 23:18:0884 'src/fs_event_wrap.cc',
Ryan Dahldb1bf672011-08-08 19:11:4885 'src/cares_wrap.cc',
86 'src/handle_wrap.cc',
87 'src/node.cc',
88 'src/node_buffer.cc',
89 'src/node_constants.cc',
Ryan Dahldb1bf672011-08-08 19:11:4890 'src/node_extensions.cc',
91 'src/node_file.cc',
92 'src/node_http_parser.cc',
93 'src/node_javascript.cc',
94 'src/node_main.cc',
95 'src/node_os.cc',
96 'src/node_script.cc',
Ben Noordhuisf0ce9842012-06-16 20:41:3797 'src/node_stat_watcher.cc',
Ryan Dahldb1bf672011-08-08 19:11:4898 'src/node_string.cc',
isaacs5b8e1da2011-09-06 23:13:0599 'src/node_zlib.cc',
Ryan Dahldb1bf672011-08-08 19:11:48100 'src/pipe_wrap.cc',
Bert Belder600a6462012-08-20 21:59:21101 'src/signal_wrap.cc',
Ryan Dahldb1bf672011-08-08 19:11:48102 'src/stream_wrap.cc',
Ben Noordhuis08032ef2012-03-28 00:21:56103 'src/slab_allocator.cc',
Ryan Dahldb1bf672011-08-08 19:11:48104 'src/tcp_wrap.cc',
105 'src/timer_wrap.cc',
Ryan Dahlc1ae6ea2011-09-20 20:38:07106 'src/tty_wrap.cc',
Ryan Dahldb1bf672011-08-08 19:11:48107 'src/process_wrap.cc',
Ben Noordhuis97b00002011-08-12 16:57:04108 'src/v8_typed_array.cc',
Ryan Dahl06f750c2011-08-24 23:20:08109 'src/udp_wrap.cc',
Peter Bright64b41682011-08-15 16:35:48110 # headers to make for a more pleasant IDE experience
111 'src/handle_wrap.h',
112 'src/node.h',
113 'src/node_buffer.h',
Peter Bright64b41682011-08-15 16:35:48114 'src/node_constants.h',
115 'src/node_crypto.h',
Fedor Indutny58f93ff2013-04-03 12:58:10116 'src/node_crypto_bio.h',
Peter Bright64b41682011-08-15 16:35:48117 'src/node_extensions.h',
118 'src/node_file.h',
119 'src/node_http_parser.h',
120 'src/node_javascript.h',
Peter Bright64b41682011-08-15 16:35:48121 'src/node_os.h',
122 'src/node_root_certs.h',
123 'src/node_script.h',
Peter Bright64b41682011-08-15 16:35:48124 'src/node_string.h',
125 'src/node_version.h',
Ben Noordhuis5f040652012-04-28 16:45:10126 'src/ngx-queue.h',
Peter Bright64b41682011-08-15 16:35:48127 'src/pipe_wrap.h',
Fedor Indutnyaf98fc92012-05-16 16:04:24128 'src/tty_wrap.h',
129 'src/tcp_wrap.h',
130 'src/udp_wrap.h',
Peter Bright64b41682011-08-15 16:35:48131 'src/req_wrap.h',
Ben Noordhuis08032ef2012-03-28 00:21:56132 'src/slab_allocator.h',
Peter Bright64b41682011-08-15 16:35:48133 'src/stream_wrap.h',
Bert Belder9e55ba72012-08-06 19:22:11134 'src/tree.h',
Peter Bright64b41682011-08-15 16:35:48135 'src/v8_typed_array.h',
Peter Bright64b41682011-08-15 16:35:48136 'deps/http_parser/http_parser.h',
Peter Bright64b41682011-08-15 16:35:48137 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
Bert Belderae2ac4f2011-09-04 23:01:53138 # javascript files to make for an even more pleasant IDE experience
139 '<@(library_files)',
Bert Belderc0c4bd42011-10-28 10:10:24140 # node.gyp is added to the project by default.
141 'common.gypi',
Ryan Dahla979ab92011-08-04 23:40:07142 ],
143
144 'defines': [
Ben Noordhuis09dc5772011-11-29 16:35:19145 'NODE_WANT_INTERNALS=1',
Ryan Dahla979ab92011-08-04 23:40:07146 'ARCH="<(target_arch)"',
147 'PLATFORM="<(OS)"',
Maciej Małeckif84bf5b2012-12-21 01:56:47148 'NODE_TAG="<(node_tag)"',
Ryan Dahl4f3c8b32011-08-04 00:01:30149 ],
150
151 'conditions': [
Ryan Dahla979ab92011-08-04 23:40:07152 [ 'node_use_openssl=="true"', {
Peter Bright71333b32011-08-06 19:20:15153 'defines': [ 'HAVE_OPENSSL=1' ],
Fedor Indutny58f93ff2013-04-03 12:58:10154 'sources': [ 'src/node_crypto.cc', 'src/node_crypto_bio.cc' ],
Ben Noordhuis9f986982011-08-29 22:01:43155 'conditions': [
Ryan Dahlfe464a22012-06-20 20:31:49156 [ 'node_shared_openssl=="false"', {
Ben Noordhuis9f986982011-08-29 22:01:43157 'dependencies': [ './deps/openssl/openssl.gyp:openssl' ],
158 }]]
Ryan Dahla979ab92011-08-04 23:40:07159 }, {
160 'defines': [ 'HAVE_OPENSSL=0' ]
161 }],
Peter Bright64b41682011-08-15 16:35:48162 [ 'node_use_dtrace=="true"', {
Dave Pachecocc152992012-03-28 17:26:10163 'defines': [ 'HAVE_DTRACE=1' ],
164 'dependencies': [ 'node_dtrace_header' ],
165 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
166 #
Dave Pachecofe7440c2013-03-28 18:36:00167 # DTrace is supported on solaris, mac, and bsd. There are three
168 # object files associated with DTrace support, but they're not all
169 # used all the time:
170 #
171 # node_dtrace.o all configurations
172 # node_dtrace_ustack.o not supported on OS X
173 # node_dtrace_provider.o All except OS X. "dtrace -G" is not
174 # used on OS X.
175 #
176 # Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not
177 # actually exist. They're listed here to trick GYP into linking the
178 # corresponding object files into the final "node" executable. These
179 # object files are generated by "dtrace -G" using custom actions
180 # below, and the GYP-generated Makefiles will properly build them when
181 # needed.
Dave Pachecocc152992012-03-28 17:26:10182 #
Peter Bright64b41682011-08-15 16:35:48183 'sources': [
Ryan Dahlb3ddb892011-10-26 18:31:12184 'src/node_dtrace.cc',
Peter Bright64b41682011-08-15 16:35:48185 ],
Dave Pachecofe7440c2013-03-28 18:36:00186 'conditions': [ [
187 'OS!="mac"', {
188 'sources': [
189 'src/node_dtrace_ustack.cc',
190 'src/node_dtrace_provider.cc',
191 ]
192 }
193 ] ]
Dave Pachecocc152992012-03-28 17:26:10194 } ],
Jan Wynholds06810b22012-10-09 22:09:07195 [ 'node_use_systemtap=="true"', {
196 'defines': [ 'HAVE_SYSTEMTAP=1', 'STAP_SDT_V1=1' ],
197 'dependencies': [ 'node_systemtap_header' ],
198 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
199 'sources': [
200 'src/node_dtrace.cc',
201 '<(SHARED_INTERMEDIATE_DIR)/node_systemtap.h',
202 ],
203 } ],
Igor Zinkovsky35a14212012-06-11 23:23:17204 [ 'node_use_etw=="true"', {
205 'defines': [ 'HAVE_ETW=1' ],
206 'dependencies': [ 'node_etw' ],
207 'sources': [
208 'src/node_win32_etw_provider.h',
209 'src/node_win32_etw_provider-inl.h',
210 'src/node_win32_etw_provider.cc',
211 'src/node_dtrace.cc',
Scott Blomquista6167742013-01-03 22:36:04212 'tools/msvs/genfiles/node_etw_provider.h',
213 'tools/msvs/genfiles/node_etw_provider.rc',
Igor Zinkovsky35a14212012-06-11 23:23:17214 ]
215 } ],
Scott Blomquistf657ce62012-11-20 23:27:22216 [ 'node_use_perfctr=="true"', {
217 'defines': [ 'HAVE_PERFCTR=1' ],
218 'dependencies': [ 'node_perfctr' ],
219 'sources': [
220 'src/node_win32_perfctr_provider.h',
221 'src/node_win32_perfctr_provider.cc',
222 'src/node_counters.cc',
223 'src/node_counters.h',
Scott Blomquista6167742013-01-03 22:36:04224 'tools/msvs/genfiles/node_perfctr_provider.rc',
Scott Blomquistf657ce62012-11-20 23:27:22225 ]
226 } ],
Paddy Byersd8852aa2013-04-03 07:35:39227 [ 'v8_postmortem_support=="true"', {
228 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:postmortem-metadata' ],
229 }],
Ben Noordhuisf00c8bc2012-06-26 22:33:50230 [ 'node_shared_v8=="false"', {
isaacs59ecf2c2012-02-23 22:52:18231 'sources': [
232 'deps/v8/include/v8.h',
233 'deps/v8/include/v8-debug.h',
234 ],
235 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ],
236 }],
237
T.C. Hollingsworthd03b8482012-02-26 23:02:21238 [ 'node_shared_zlib=="false"', {
239 'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
240 }],
241
Stephen Gallagherbfd78b62012-10-23 13:01:26242 [ 'node_shared_http_parser=="false"', {
243 'dependencies': [ 'deps/http_parser/http_parser.gyp:http_parser' ],
244 }],
245
Stephen Gallagher73ff6532012-10-23 14:27:19246 [ 'node_shared_cares=="false"', {
247 'dependencies': [ 'deps/cares/cares.gyp:cares' ],
248 }],
249
Stephen Gallagher38809e32012-10-23 23:54:22250 [ 'node_shared_libuv=="false"', {
251 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
252 }],
253
Ryan Dahl4f3c8b32011-08-04 00:01:30254 [ 'OS=="win"', {
Ryan Dahl4f3c8b32011-08-04 00:01:30255 'sources': [
Bert Belder0187b652012-06-13 15:40:50256 'src/res/node.rc',
Peter Bright71333b32011-08-06 19:20:15257 ],
Peter Bright6ac8c552011-08-07 05:11:21258 'defines': [
Peter Bright6ac8c552011-08-07 05:11:21259 'FD_SETSIZE=1024',
Peter Bright79d9f622011-08-07 17:43:24260 # we need to use node's preferred "win32" rather than gyp's preferred "win"
261 'PLATFORM="win32"',
Bert Belderd52f5022012-02-16 19:20:07262 '_UNICODE=1',
Peter Bright6ac8c552011-08-07 05:11:21263 ],
Ryan Dahl19762882011-09-02 19:53:16264 'libraries': [ '-lpsapi.lib' ]
Ben Noordhuisacbfc402012-07-12 23:43:14265 }, { # POSIX
Ryan Dahla979ab92011-08-04 23:40:07266 'defines': [ '__POSIX__' ],
Ryan Dahl4f3c8b32011-08-04 00:01:30267 }],
268 [ 'OS=="mac"', {
Ryan Dahla979ab92011-08-04 23:40:07269 'libraries': [ '-framework Carbon' ],
Nathan Rajlichf2ba4ce2012-01-11 22:44:39270 'defines!': [
271 'PLATFORM="mac"',
272 ],
Nathan Rajlich9ff86a22012-01-11 22:36:27273 'defines': [
274 # we need to use node's preferred "darwin" rather than gyp's preferred "mac"
275 'PLATFORM="darwin"',
276 ],
Ryan Dahlb433c422011-08-16 00:54:47277 }],
Ben Noordhuisdecd8182011-08-17 05:44:53278 [ 'OS=="freebsd"', {
Ben Noordhuisdecd8182011-08-17 05:44:53279 'libraries': [
280 '-lutil',
281 '-lkvm',
282 ],
283 }],
Ben Noordhuis13871fa2011-10-26 05:11:20284 [ 'OS=="solaris"', {
Ben Noordhuis13871fa2011-10-26 05:11:20285 'libraries': [
286 '-lkstat',
Trent Mickf70b1382012-07-27 17:56:40287 '-lumem',
Ben Noordhuis13871fa2011-10-26 05:11:20288 ],
Nathan Rajlich606a9332012-08-29 21:57:25289 'defines!': [
290 'PLATFORM="solaris"',
291 ],
292 'defines': [
293 # we need to use node's preferred "sunos"
294 # rather than gyp's preferred "solaris"
295 'PLATFORM="sunos"',
296 ],
Ben Noordhuis13871fa2011-10-26 05:11:20297 }],
Peter Bright16788f42011-08-13 18:17:47298 ],
Bert Belder5691e8a2012-09-24 22:50:37299 'msvs_settings': {
Peter Bright16788f42011-08-13 18:17:47300 'VCLinkerTool': {
301 'SubSystem': 1, # /subsystem:console
302 },
303 },
Ryan Dahl4f3c8b32011-08-04 00:01:30304 },
Igor Zinkovsky35a14212012-06-11 23:23:17305 # generate ETW header and resource files
306 {
307 'target_name': 'node_etw',
308 'type': 'none',
309 'conditions': [
Scott Blomquist841b7f52012-12-21 08:06:21310 [ 'node_use_etw=="true" and node_has_winsdk=="true"', {
Igor Zinkovsky35a14212012-06-11 23:23:17311 'actions': [
312 {
313 'action_name': 'node_etw',
314 'inputs': [ 'src/res/node_etw_provider.man' ],
Scott Blomquist953b0492012-10-25 23:51:46315 'outputs': [
Scott Blomquista6167742013-01-03 22:36:04316 'tools/msvs/genfiles/node_etw_provider.rc',
317 'tools/msvs/genfiles/node_etw_provider.h',
318 'tools/msvs/genfiles/node_etw_providerTEMP.BIN',
Scott Blomquist953b0492012-10-25 23:51:46319 ],
Scott Blomquista6167742013-01-03 22:36:04320 'action': [ 'mc <@(_inputs) -h tools/msvs/genfiles -r tools/msvs/genfiles' ]
Igor Zinkovsky35a14212012-06-11 23:23:17321 }
322 ]
323 } ]
324 ]
325 },
Scott Blomquistf657ce62012-11-20 23:27:22326 # generate perf counter header and resource files
327 {
328 'target_name': 'node_perfctr',
329 'type': 'none',
330 'conditions': [
Scott Blomquist841b7f52012-12-21 08:06:21331 [ 'node_use_perfctr=="true" and node_has_winsdk=="true"', {
Scott Blomquistf657ce62012-11-20 23:27:22332 'actions': [
333 {
334 'action_name': 'node_perfctr_man',
335 'inputs': [ 'src/res/node_perfctr_provider.man' ],
336 'outputs': [
Scott Blomquista6167742013-01-03 22:36:04337 'tools/msvs/genfiles/node_perfctr_provider.h',
338 'tools/msvs/genfiles/node_perfctr_provider.rc',
339 'tools/msvs/genfiles/MSG00001.BIN',
Scott Blomquistf657ce62012-11-20 23:27:22340 ],
341 'action': [ 'ctrpp <@(_inputs) '
Scott Blomquista6167742013-01-03 22:36:04342 '-o tools/msvs/genfiles/node_perfctr_provider.h '
343 '-rc tools/msvs/genfiles/node_perfctr_provider.rc'
Scott Blomquistf657ce62012-11-20 23:27:22344 ]
345 },
346 ],
347 } ]
348 ]
349 },
Ryan Dahl4f3c8b32011-08-04 00:01:30350 {
351 'target_name': 'node_js2c',
352 'type': 'none',
353 'toolsets': ['host'],
Ryan Dahl4f3c8b32011-08-04 00:01:30354 'actions': [
355 {
356 'action_name': 'node_js2c',
357 'inputs': [
Ryan Dahl4f3c8b32011-08-04 00:01:30358 '<@(library_files)',
Nathan Rajlich95fd5172012-03-14 15:34:44359 './config.gypi',
Ryan Dahl4f3c8b32011-08-04 00:01:30360 ],
361 'outputs': [
362 '<(SHARED_INTERMEDIATE_DIR)/node_natives.h',
363 ],
Ryan Dahla979ab92011-08-04 23:40:07364 'conditions': [
Scott Blomquistf657ce62012-11-20 23:27:22365 [ 'node_use_dtrace=="false"'
366 ' and node_use_etw=="false"'
367 ' and node_use_systemtap=="false"',
Jan Wynholds06810b22012-10-09 22:09:07368 {
Scott Blomquistf657ce62012-11-20 23:27:22369 'inputs': ['src/macros.py']
370 }
Ryan Dahla979ab92011-08-04 23:40:07371 ],
Scott Blomquistf657ce62012-11-20 23:27:22372 [ 'node_use_perfctr=="false"', {
373 'inputs': [ 'src/perfctr_macros.py' ]
Ryan Dahla979ab92011-08-04 23:40:07374 }]
Peter Bright71333b32011-08-06 19:20:15375 ],
Scott Blomquistf657ce62012-11-20 23:27:22376 'action': [
377 '<(python)',
378 'tools/js2c.py',
379 '<@(_outputs)',
380 '<@(_inputs)',
381 ],
Ryan Dahl4f3c8b32011-08-04 00:01:30382 },
383 ],
384 }, # end node_js2c
Dave Pachecocc152992012-03-28 17:26:10385 {
386 'target_name': 'node_dtrace_header',
387 'type': 'none',
388 'conditions': [
389 [ 'node_use_dtrace=="true"', {
390 'actions': [
391 {
392 'action_name': 'node_dtrace_header',
393 'inputs': [ 'src/node_provider.d' ],
394 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_provider.h' ],
395 'action': [ 'dtrace', '-h', '-xnolibs', '-s', '<@(_inputs)',
396 '-o', '<@(_outputs)' ]
397 }
398 ]
399 } ]
400 ]
401 },
402 {
Jan Wynholds06810b22012-10-09 22:09:07403 'target_name': 'node_systemtap_header',
404 'type': 'none',
405 'conditions': [
406 [ 'node_use_systemtap=="true"', {
407 'actions': [
408 {
409 'action_name': 'node_systemtap_header',
410 'inputs': [ 'src/node_systemtap.d' ],
411 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/node_systemtap.h' ],
412 'action': [ 'dtrace', '-h', '-C', '-s', '<@(_inputs)',
413 '-o', '<@(_outputs)' ]
414 }
415 ]
416 } ]
417 ]
418 },
419 {
Dave Pachecocc152992012-03-28 17:26:10420 'target_name': 'node_dtrace_provider',
421 'type': 'none',
422 'conditions': [
Dave Pachecofe7440c2013-03-28 18:36:00423 [ 'node_use_dtrace=="true" and OS!="mac"', {
Dave Pachecocc152992012-03-28 17:26:10424 'actions': [
425 {
426 'action_name': 'node_dtrace_provider_o',
427 'inputs': [
428 'src/node_provider.d',
429 '<(PRODUCT_DIR)/obj.target/node/src/node_dtrace.o'
430 ],
431 'outputs': [
432 '<(PRODUCT_DIR)/obj.target/node/src/node_dtrace_provider.o'
433 ],
434 'action': [ 'dtrace', '-G', '-xnolibs', '-s', '<@(_inputs)',
435 '-o', '<@(_outputs)' ]
436 }
437 ]
438 } ]
439 ]
440 },
441 {
442 'target_name': 'node_dtrace_ustack',
443 'type': 'none',
444 'conditions': [
Dave Pachecofe7440c2013-03-28 18:36:00445 [ 'node_use_dtrace=="true" and OS!="mac"', {
Dave Pachecocc152992012-03-28 17:26:10446 'actions': [
447 {
448 'action_name': 'node_dtrace_ustack_constants',
449 'inputs': [
450 '<(PRODUCT_DIR)/obj.target/deps/v8/tools/gyp/libv8_base.a'
451 ],
452 'outputs': [
453 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
454 ],
455 'action': [
456 'tools/genv8constants.py',
457 '<@(_outputs)',
458 '<@(_inputs)'
459 ]
460 },
461 {
462 'action_name': 'node_dtrace_ustack',
463 'inputs': [
464 'src/v8ustack.d',
465 '<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
466 ],
467 'outputs': [
468 '<(PRODUCT_DIR)/obj.target/node/src/node_dtrace_ustack.o'
469 ],
Fedor Indutny3d913fe2013-02-26 07:57:12470 'conditions': [
471 [ 'target_arch=="ia32"', {
472 'action': [
473 'dtrace', '-32', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
474 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
475 ]
476 } ],
477 [ 'target_arch=="x64"', {
478 'action': [
479 'dtrace', '-64', '-I<(SHARED_INTERMEDIATE_DIR)', '-Isrc',
480 '-C', '-G', '-s', 'src/v8ustack.d', '-o', '<@(_outputs)',
481 ]
482 } ],
Dave Pachecocc152992012-03-28 17:26:10483 ]
484 }
485 ]
486 } ],
487 ]
488 }
Ryan Dahl4f3c8b32011-08-04 00:01:30489 ] # end targets
490}