1{ 2 'variables': { 3 'protocol_tool_path': '../../tools/inspector_protocol', 4 'node_inspector_generated_sources': [ 5 '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/Forward.h', 6 '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/Protocol.cpp', 7 '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/Protocol.h', 8 '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/NodeWorker.cpp', 9 '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/NodeWorker.h', 10 '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/NodeTracing.cpp', 11 '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/NodeTracing.h', 12 '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/NodeRuntime.cpp', 13 '<(SHARED_INTERMEDIATE_DIR)/src/node/inspector/protocol/NodeRuntime.h', 14 ], 15 'node_protocol_files': [ 16 '<(protocol_tool_path)/lib/Allocator_h.template', 17 '<(protocol_tool_path)/lib/Array_h.template', 18 '<(protocol_tool_path)/lib/base_string_adapter_cc.template', 19 '<(protocol_tool_path)/lib/base_string_adapter_h.template', 20 '<(protocol_tool_path)/lib/DispatcherBase_cpp.template', 21 '<(protocol_tool_path)/lib/DispatcherBase_h.template', 22 '<(protocol_tool_path)/lib/encoding_cpp.template', 23 '<(protocol_tool_path)/lib/encoding_h.template', 24 '<(protocol_tool_path)/lib/ErrorSupport_cpp.template', 25 '<(protocol_tool_path)/lib/ErrorSupport_h.template', 26 '<(protocol_tool_path)/lib/Forward_h.template', 27 '<(protocol_tool_path)/lib/FrontendChannel_h.template', 28 '<(protocol_tool_path)/lib/Maybe_h.template', 29 '<(protocol_tool_path)/lib/Object_cpp.template', 30 '<(protocol_tool_path)/lib/Object_h.template', 31 '<(protocol_tool_path)/lib/Parser_cpp.template', 32 '<(protocol_tool_path)/lib/Parser_h.template', 33 '<(protocol_tool_path)/lib/Protocol_cpp.template', 34 '<(protocol_tool_path)/lib/ValueConversions_h.template', 35 '<(protocol_tool_path)/lib/Values_cpp.template', 36 '<(protocol_tool_path)/lib/Values_h.template', 37 '<(protocol_tool_path)/templates/Exported_h.template', 38 '<(protocol_tool_path)/templates/Imported_h.template', 39 '<(protocol_tool_path)/templates/TypeBuilder_cpp.template', 40 '<(protocol_tool_path)/templates/TypeBuilder_h.template', 41 '<(protocol_tool_path)/code_generator.py', 42 ] 43 }, 44 'defines': [ 45 'HAVE_INSPECTOR=1', 46 ], 47 'sources': [ 48 '../../src/inspector_agent.cc', 49 '../../src/inspector_io.cc', 50 '../../src/inspector_agent.h', 51 '../../src/inspector_io.h', 52 '../../src/inspector_profiler.h', 53 '../../src/inspector_profiler.cc', 54 '../../src/inspector_js_api.cc', 55 '../../src/inspector_socket.cc', 56 '../../src/inspector_socket.h', 57 '../../src/inspector_socket_server.cc', 58 '../../src/inspector_socket_server.h', 59 '../../src/inspector/main_thread_interface.cc', 60 '../../src/inspector/main_thread_interface.h', 61 '../../src/inspector/node_string.cc', 62 '../../src/inspector/node_string.h', 63 '../../src/inspector/runtime_agent.cc', 64 '../../src/inspector/runtime_agent.h', 65 '../../src/inspector/tracing_agent.cc', 66 '../../src/inspector/tracing_agent.h', 67 '../../src/inspector/worker_agent.cc', 68 '../../src/inspector/worker_agent.h', 69 '../../src/inspector/worker_inspector.cc', 70 '../../src/inspector/worker_inspector.h', 71 ], 72 'include_dirs': [ 73 '<(SHARED_INTERMEDIATE_DIR)/include', # for inspector 74 '<(SHARED_INTERMEDIATE_DIR)', 75 '<(SHARED_INTERMEDIATE_DIR)/src', # for inspector 76 ], 77 'actions': [ 78 { 79 'action_name': 'convert_node_protocol_to_json', 80 'inputs': [ 81 'node_protocol.pdl', 82 ], 83 'outputs': [ 84 '<(SHARED_INTERMEDIATE_DIR)/src/node_protocol.json', 85 ], 86 'action': [ 87 'python', 88 'tools/inspector_protocol/convert_protocol_to_json.py', 89 '<@(_inputs)', 90 '<@(_outputs)', 91 ], 92 }, 93 { 94 'action_name': 'node_protocol_generated_sources', 95 'inputs': [ 96 'node_protocol_config.json', 97 '<(SHARED_INTERMEDIATE_DIR)/src/node_protocol.json', 98 '<@(node_protocol_files)', 99 ], 100 'outputs': [ 101 '<@(node_inspector_generated_sources)', 102 ], 103 'process_outputs_as_sources': 1, 104 'action': [ 105 'python', 106 'tools/inspector_protocol/code_generator.py', 107 '--jinja_dir', '<@(protocol_tool_path)', 108 '--output_base', '<(SHARED_INTERMEDIATE_DIR)/src/', 109 '--config', 'src/inspector/node_protocol_config.json', 110 ], 111 'message': 'Generating node protocol sources from protocol json', 112 }, 113 { 114 'action_name': 'concatenate_protocols', 115 'inputs': [ 116 '../../deps/v8/include/js_protocol.pdl', 117 '<(SHARED_INTERMEDIATE_DIR)/src/node_protocol.json', 118 ], 119 'outputs': [ 120 '<(SHARED_INTERMEDIATE_DIR)/concatenated_protocol.json', 121 ], 122 'action': [ 123 'python', 124 'tools/inspector_protocol/concatenate_protocols.py', 125 '<@(_inputs)', 126 '<@(_outputs)', 127 ], 128 }, 129 { 130 'action_name': 'v8_inspector_compress_protocol_json', 131 'inputs': [ 132 '<(SHARED_INTERMEDIATE_DIR)/concatenated_protocol.json', 133 ], 134 'outputs': [ 135 '<(SHARED_INTERMEDIATE_DIR)/v8_inspector_protocol_json.h', 136 ], 137 'process_outputs_as_sources': 1, 138 'action': [ 139 'python', 140 'tools/compress_json.py', 141 '<@(_inputs)', 142 '<@(_outputs)', 143 ], 144 }, 145 ], 146} 147