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
| {
| 'conditions': [
| # If we are on Mac OS X, FreeBSD, or a Solarish system, attempt
| # to build the DTrace provider extension.
| ['OS=="mac" or OS=="solaris" or OS=="freebsd"', {
| 'targets': [
| {
| 'target_name': 'ndtp',
| 'type': 'none',
| 'actions': [{
| 'inputs': [''],
| 'outputs': [''],
| 'action_name': 'build_ndtp',
| 'action': [
| 'bash', 'build.sh'
| ]
| }]
| }
| ]
| },
|
| # If we are on another system (like Windows or Linux), then DTrace is
| # unavailable. This target is necessary because GYP requires at least
| # one target to exist. We end up building nothing, and fall back to the
| # stub implementation when the package is loaded.
| {
| 'targets': [
| {
| 'target_name': 'DTraceProviderStub',
| 'type': 'none'
| }
| ]
| }]
| ]
| }
|
|