File size: 1,769 Bytes
befd7da | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | {
'conditions': [
['OS=="mac" or OS=="solaris"', {
'variables': {
'escaped_root': '<!(printf %q "<(module_root_dir)")',
},
# If we are on the Mac, or a Solaris derivative, attempt
# to build the DTrace provider extension.
'targets': [
{
'target_name': 'DTraceProviderBindings',
'sources': [
'dtrace_provider.cc',
'dtrace_probe.cc',
'dtrace_argument.cc'
],
'include_dirs': [
'libusdt',
'<!(node -e "require(\'nan\')")',
],
'dependencies': [
'libusdt'
],
'libraries': [
'-L<(escaped_root)/libusdt -l usdt'
]
},
{
'target_name': 'libusdt',
'type': 'none',
'actions': [{
'inputs': [''],
'outputs': [''],
'action_name': 'build_libusdt',
'action': [
'sh', 'libusdt-build.sh'
]
}]
}
]
},
# If we are not on the Mac or Solaris, DTrace is unavailable.
# This target is necessary because GYP requires at least one
# target to exist.
{
'targets': [
{
'target_name': 'DTraceProviderStub',
'type': 'none'
}
]
}]
]
}
|