From 099df7398d42375c4dc7453c9da7fe74fbaca65d Mon Sep 17 00:00:00 2001 From: Alexey Kozyatinskiy Date: Wed, 18 Apr 2018 18:22:13 -0700 Subject: [PATCH] inspector: migrate node to js_protocol.pdl On inspector side we are going to deprecate .json protocol definition formation and replace it with new .pdl format. New format allows us to use multiline commends and contains less noise in comparision then .json. --- node.gyp | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/node.gyp b/node.gyp index 15475f689e3295..8347beb18245ca 100644 --- a/node.gyp +++ b/node.gyp @@ -681,11 +681,32 @@ 'conditions': [ [ 'v8_enable_inspector==1', { 'actions': [ + { + 'action_name': 'v8_inspector_copy_protocol_to_intermediate_folder', + 'inputs': [ 'deps/v8/src/inspector/js_protocol.pdl' ], + 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/js_protocol.pdl' ], + 'action': [ 'cp', '<@(_inputs)', '<(SHARED_INTERMEDIATE_DIR)' ], + }, + { + 'action_name': 'v8_inspector_convert_protocol_to_json', + 'inputs': [ + '<(SHARED_INTERMEDIATE_DIR)/js_protocol.pdl', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/js_protocol.json', + ], + 'action': [ + 'python', + 'deps/v8/third_party/inspector_protocol/ConvertProtocolToJSON.py', + '<@(_inputs)', + '<@(_outputs)', + ], + }, { 'action_name': 'v8_inspector_compress_protocol_json', 'process_outputs_as_sources': 1, 'inputs': [ - 'deps/v8/src/inspector/js_protocol.json', + '<(SHARED_INTERMEDIATE_DIR)/js_protocol.json', ], 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/v8_inspector_protocol_json.h',