Revision 35a1421e node.gyp
node.gyp | ||
---|---|---|
5 | 5 |
# See http://codereview.chromium.org/8159015 |
6 | 6 |
'werror': '', |
7 | 7 |
'node_use_dtrace%': 'false', |
8 |
'node_use_etw%': 'false', |
|
8 | 9 |
'node_shared_v8%': 'false', |
9 | 10 |
'node_shared_zlib%': 'false', |
10 | 11 |
'node_use_openssl%': 'true', |
... | ... | |
163 | 164 |
} |
164 | 165 |
] ], |
165 | 166 |
} ], |
166 |
|
|
167 |
[ 'node_use_etw=="true"', { |
|
168 |
'defines': [ 'HAVE_ETW=1' ], |
|
169 |
'dependencies': [ 'node_etw' ], |
|
170 |
'sources': [ |
|
171 |
'src/node_win32_etw_provider.h', |
|
172 |
'src/node_win32_etw_provider-inl.h', |
|
173 |
'src/node_win32_etw_provider.cc', |
|
174 |
'src/node_dtrace.cc', |
|
175 |
'<(SHARED_INTERMEDIATE_DIR)/node_etw_provider.h', |
|
176 |
'<(SHARED_INTERMEDIATE_DIR)/node_etw_provider.rc', |
|
177 |
] |
|
178 |
} ], |
|
167 | 179 |
[ 'node_shared_v8=="true"', { |
168 | 180 |
'sources': [ |
169 | 181 |
'<(node_shared_v8_includes)/v8.h', |
... | ... | |
228 | 240 |
}, |
229 | 241 |
}, |
230 | 242 |
}, |
231 |
|
|
243 |
# generate ETW header and resource files |
|
244 |
{ |
|
245 |
'target_name': 'node_etw', |
|
246 |
'type': 'none', |
|
247 |
'conditions': [ |
|
248 |
[ 'node_use_etw=="true"', { |
|
249 |
'actions': [ |
|
250 |
{ |
|
251 |
'action_name': 'node_etw', |
|
252 |
'inputs': [ 'src/res/node_etw_provider.man' ], |
|
253 |
'outputs': [ '<(SHARED_INTERMEDIATE_DIR)' ], |
|
254 |
'action': [ 'mc <@(_inputs) -h <@(_outputs) -r <@(_outputs)' ] |
|
255 |
} |
|
256 |
] |
|
257 |
} ] |
|
258 |
] |
|
259 |
}, |
|
232 | 260 |
{ |
233 | 261 |
'target_name': 'node_js2c', |
234 | 262 |
'type': 'none', |
... | ... | |
251 | 279 |
# action? |
252 | 280 |
|
253 | 281 |
'conditions': [ |
254 |
[ 'node_use_dtrace=="true"', { |
|
282 |
[ 'node_use_dtrace=="true" or node_use_etw=="true"', {
|
|
255 | 283 |
'action': [ |
256 | 284 |
'python', |
257 | 285 |
'tools/js2c.py', |
Also available in: Unified diff