diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2016-06-29 23:20:06 +0200 |
---|---|---|
committer | Myles Borins <mborins@us.ibm.com> | 2016-09-30 11:17:48 -0400 |
commit | a62999ac7039b22aca08ad978aa09228f03385ad (patch) | |
tree | d310f76e7c7d8b496c1e066e5af440568fbaee33 /node.gyp | |
parent | f817875235aec724ba1c7130d7dfebb046b99da2 (diff) | |
download | node-new-a62999ac7039b22aca08ad978aa09228f03385ad.tar.gz |
src: add /json/protocol endpoint to inspector
Embed the compressed and minified protocol.json from the bundled
v8_inspector and make it available through the /json/protocol endpoint.
Refs: https://github.com/nodejs/diagnostics/issues/52
PR-URL: https://github.com/nodejs/node/pull/7491
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -322,6 +322,7 @@ 'dependencies': [ 'deps/v8_inspector/third_party/v8_inspector/platform/' 'v8_inspector/v8_inspector.gyp:v8_inspector_stl', + 'v8_inspector_compress_protocol_json#host', ], 'include_dirs': [ 'deps/v8_inspector/third_party/v8_inspector', @@ -651,6 +652,34 @@ ] }, { + 'target_name': 'v8_inspector_compress_protocol_json', + 'type': 'none', + 'toolsets': ['host'], + 'conditions': [ + [ 'v8_inspector=="true"', { + 'actions': [ + { + 'action_name': 'v8_inspector_compress_protocol_json', + 'process_outputs_as_sources': 1, + 'inputs': [ + 'deps/v8_inspector/third_party/' + 'v8_inspector/platform/v8_inspector/js_protocol.json', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/v8_inspector_protocol_json.h', + ], + 'action': [ + 'python', + 'tools/compress_json.py', + '<@(_inputs)', + '<@(_outputs)', + ], + }, + ], + }], + ], + }, + { 'target_name': 'node_js2c', 'type': 'none', 'toolsets': ['host'], |