Revision fe7440ce node.gyp
node.gyp | ||
---|---|---|
160 | 160 |
'dependencies': [ 'node_dtrace_header' ], |
161 | 161 |
'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ], |
162 | 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. |
|
163 |
# DTrace is supported on solaris, mac, and bsd. There are three |
|
164 |
# object files associated with DTrace support, but they're not all |
|
165 |
# used all the time: |
|
166 |
# |
|
167 |
# node_dtrace.o all configurations |
|
168 |
# node_dtrace_ustack.o not supported on OS X |
|
169 |
# node_dtrace_provider.o All except OS X. "dtrace -G" is not |
|
170 |
# used on OS X. |
|
171 |
# |
|
172 |
# Note that node_dtrace_provider.cc and node_dtrace_ustack.cc do not |
|
173 |
# actually exist. They're listed here to trick GYP into linking the |
|
174 |
# corresponding object files into the final "node" executable. These |
|
175 |
# object files are generated by "dtrace -G" using custom actions |
|
176 |
# below, and the GYP-generated Makefiles will properly build them when |
|
177 |
# needed. |
|
168 | 178 |
# |
169 | 179 |
'sources': [ |
170 | 180 |
'src/node_dtrace.cc', |
171 |
'src/node_dtrace_provider.cc', |
|
172 |
'src/node_dtrace_ustack.cc', |
|
173 | 181 |
], |
182 |
'conditions': [ [ |
|
183 |
'OS!="mac"', { |
|
184 |
'sources': [ |
|
185 |
'src/node_dtrace_ustack.cc', |
|
186 |
'src/node_dtrace_provider.cc', |
|
187 |
] |
|
188 |
} |
|
189 |
] ] |
|
174 | 190 |
} ], |
175 | 191 |
[ 'node_use_systemtap=="true"', { |
176 | 192 |
'defines': [ 'HAVE_SYSTEMTAP=1', 'STAP_SDT_V1=1' ], |
... | ... | |
397 | 413 |
'target_name': 'node_dtrace_provider', |
398 | 414 |
'type': 'none', |
399 | 415 |
'conditions': [ |
400 |
[ 'node_use_dtrace=="true"', { |
|
416 |
[ 'node_use_dtrace=="true" and OS!="mac"', {
|
|
401 | 417 |
'actions': [ |
402 | 418 |
{ |
403 | 419 |
'action_name': 'node_dtrace_provider_o', |
... | ... | |
419 | 435 |
'target_name': 'node_dtrace_ustack', |
420 | 436 |
'type': 'none', |
421 | 437 |
'conditions': [ |
422 |
[ 'node_use_dtrace=="true"', { |
|
438 |
[ 'node_use_dtrace=="true" and OS!="mac"', {
|
|
423 | 439 |
'actions': [ |
424 | 440 |
{ |
425 | 441 |
'action_name': 'node_dtrace_ustack_constants', |
Also available in: Unified diff