Skip to content

Commit a79eed3

Browse files
alexkozyMayaLekova
authored andcommitted
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. PR-URL: nodejs#20141 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 05bfa7e commit a79eed3

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

node.gyp

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,11 +672,32 @@
672672
'conditions': [
673673
[ 'v8_enable_inspector==1', {
674674
'actions': [
675+
{
676+
'action_name': 'v8_inspector_copy_protocol_to_intermediate_folder',
677+
'inputs': [ 'deps/v8/src/inspector/js_protocol.pdl' ],
678+
'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/js_protocol.pdl' ],
679+
'action': [ 'cp', '<@(_inputs)', '<(SHARED_INTERMEDIATE_DIR)' ],
680+
},
681+
{
682+
'action_name': 'v8_inspector_convert_protocol_to_json',
683+
'inputs': [
684+
'<(SHARED_INTERMEDIATE_DIR)/js_protocol.pdl',
685+
],
686+
'outputs': [
687+
'<(SHARED_INTERMEDIATE_DIR)/js_protocol.json',
688+
],
689+
'action': [
690+
'python',
691+
'deps/v8/third_party/inspector_protocol/ConvertProtocolToJSON.py',
692+
'<@(_inputs)',
693+
'<@(_outputs)',
694+
],
695+
},
675696
{
676697
'action_name': 'v8_inspector_compress_protocol_json',
677698
'process_outputs_as_sources': 1,
678699
'inputs': [
679-
'deps/v8/src/inspector/js_protocol.json',
700+
'<(SHARED_INTERMEDIATE_DIR)/js_protocol.json',
680701
],
681702
'outputs': [
682703
'<(SHARED_INTERMEDIATE_DIR)/v8_inspector_protocol_json.h',

0 commit comments

Comments
 (0)