summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2014-03-02 23:54:19 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2014-03-02 23:54:19 +0400
commit78d245f5b21eede58e79138330690d63cf3d86f8 (patch)
tree205a01d5009031b21706d5d0780099bba927a42c /node.gyp
parent34bf6e46beb4b94e9ed3c51da8589d604f19bc4e (diff)
parent47abdd9c43ae97ed11cb8cc4c770b43043718308 (diff)
downloadnode-78d245f5b21eede58e79138330690d63cf3d86f8.tar.gz
Merge remote-tracking branch 'origin/v0.10'
Conflicts: configure lib/_stream_readable.js lib/http.js src/node_dtrace.cc
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp34
1 files changed, 32 insertions, 2 deletions
diff --git a/node.gyp b/node.gyp
index 5ff8577e0..82fa56b90 100644
--- a/node.gyp
+++ b/node.gyp
@@ -187,8 +187,12 @@
}],
[ 'node_use_dtrace=="true"', {
'defines': [ 'HAVE_DTRACE=1' ],
- 'dependencies': [ 'node_dtrace_header' ],
+ 'dependencies': [
+ 'node_dtrace_header',
+ 'specialize_node_d',
+ ],
'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)' ],
+
#
# DTrace is supported on linux, solaris, mac, and bsd. There are
# three object files associated with DTrace support, but they're
@@ -544,10 +548,36 @@
]
} ],
]
- }
+ },
]
} ],
]
+ },
+ {
+ 'target_name': 'specialize_node_d',
+ 'type': 'none',
+ 'conditions': [
+ [ 'node_use_dtrace=="true"', {
+ 'actions': [
+ {
+ 'action_name': 'specialize_node_d',
+ 'inputs': [
+ 'src/node.d'
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/node.d',
+ ],
+ 'action': [
+ 'tools/specialize_node_d.py',
+ '<@(_outputs)',
+ '<@(_inputs)',
+ '<@(OS)',
+ '<@(target_arch)',
+ ],
+ },
+ ],
+ } ],
+ ]
}
] # end targets
}