|
4 | 4 |
|
5 | 5 | { |
6 | 6 | 'variables':{ |
7 | | -'protocol_path': '../third_party/inspector_protocol', |
| 7 | +'inspector_protocol_path': '../third_party/inspector_protocol', |
8 | 8 | 'inspector_path': '../src/inspector', |
9 | | - |
| 9 | +'inspector_generated_output_root': '<(SHARED_INTERMEDIATE_DIR)/inspector-generated-output-root', |
10 | 10 | 'inspector_generated_sources': [ |
11 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Forward.h', |
12 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Protocol.cpp', |
13 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Protocol.h', |
14 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Console.cpp', |
15 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Console.h', |
16 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Debugger.cpp', |
17 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Debugger.h', |
18 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/HeapProfiler.cpp', |
19 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/HeapProfiler.h', |
20 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Profiler.cpp', |
21 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Profiler.h', |
22 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Runtime.cpp', |
23 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Runtime.h', |
24 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Schema.cpp', |
25 | | -'<(SHARED_INTERMEDIATE_DIR)/src/inspector/protocol/Schema.h', |
26 | | -'<(SHARED_INTERMEDIATE_DIR)/include/inspector/Debugger.h', |
27 | | -'<(SHARED_INTERMEDIATE_DIR)/include/inspector/Runtime.h', |
28 | | -'<(SHARED_INTERMEDIATE_DIR)/include/inspector/Schema.h', |
| 11 | +'<(inspector_generated_output_root)/src/inspector/protocol/Forward.h', |
| 12 | +'<(inspector_generated_output_root)/src/inspector/protocol/Protocol.cpp', |
| 13 | +'<(inspector_generated_output_root)/src/inspector/protocol/Protocol.h', |
| 14 | +'<(inspector_generated_output_root)/src/inspector/protocol/Console.cpp', |
| 15 | +'<(inspector_generated_output_root)/src/inspector/protocol/Console.h', |
| 16 | +'<(inspector_generated_output_root)/src/inspector/protocol/Debugger.cpp', |
| 17 | +'<(inspector_generated_output_root)/src/inspector/protocol/Debugger.h', |
| 18 | +'<(inspector_generated_output_root)/src/inspector/protocol/HeapProfiler.cpp', |
| 19 | +'<(inspector_generated_output_root)/src/inspector/protocol/HeapProfiler.h', |
| 20 | +'<(inspector_generated_output_root)/src/inspector/protocol/Profiler.cpp', |
| 21 | +'<(inspector_generated_output_root)/src/inspector/protocol/Profiler.h', |
| 22 | +'<(inspector_generated_output_root)/src/inspector/protocol/Runtime.cpp', |
| 23 | +'<(inspector_generated_output_root)/src/inspector/protocol/Runtime.h', |
| 24 | +'<(inspector_generated_output_root)/src/inspector/protocol/Schema.cpp', |
| 25 | +'<(inspector_generated_output_root)/src/inspector/protocol/Schema.h', |
| 26 | +'<(inspector_generated_output_root)/include/inspector/Debugger.h', |
| 27 | +'<(inspector_generated_output_root)/include/inspector/Runtime.h', |
| 28 | +'<(inspector_generated_output_root)/include/inspector/Schema.h', |
29 | 29 | ], |
30 | 30 |
|
31 | 31 | 'inspector_all_sources': [ |
|
83 | 83 | '../src/inspector/wasm-translation.h', |
84 | 84 | ] |
85 | 85 | }, |
86 | | -'includes': [ |
87 | | -'../third_party/inspector_protocol/inspector_protocol.gypi', |
88 | | - ], |
89 | | -'actions': [ |
90 | | -{ |
91 | | -'action_name': 'protocol_compatibility', |
92 | | -'inputs': [ |
93 | | -'<(inspector_path)/js_protocol.pdl', |
94 | | - ], |
95 | | -'outputs': [ |
96 | | -'<@(SHARED_INTERMEDIATE_DIR)/src/js_protocol.stamp', |
97 | | - ], |
98 | | -'action': [ |
99 | | -'python', |
100 | | -'<(protocol_path)/check_protocol_compatibility.py', |
101 | | -'--stamp', '<@(_outputs)', |
102 | | -'<@(_inputs)', |
103 | | - ], |
104 | | -'message': 'Checking inspector protocol compatibility', |
105 | | - }, |
106 | | -{ |
107 | | -'action_name': 'protocol_generated_sources', |
108 | | -'inputs': [ |
109 | | -'<(inspector_path)/js_protocol.pdl', |
110 | | -'<(inspector_path)/inspector_protocol_config.json', |
111 | | -'<@(inspector_protocol_files)', |
112 | | - ], |
113 | | -'outputs': [ |
114 | | -'<@(inspector_generated_sources)', |
115 | | - ], |
116 | | -'process_outputs_as_sources': 1, |
117 | | -'action': [ |
118 | | -'python', |
119 | | -'<(protocol_path)/code_generator.py', |
120 | | -'--jinja_dir', '../third_party', |
121 | | -'--output_base', '<(SHARED_INTERMEDIATE_DIR)/src/inspector', |
122 | | -'--config', '<(inspector_path)/inspector_protocol_config.json', |
123 | | - ], |
124 | | -'message': 'Generating inspector protocol sources from protocol json', |
125 | | - }, |
126 | | - ], |
| 86 | +'includes': [ |
| 87 | +'../third_party/inspector_protocol/inspector_protocol.gypi', |
| 88 | + ], |
| 89 | +'include_dirs': [ |
| 90 | +'<(inspector_generated_output_root)', |
| 91 | + ], |
| 92 | +'actions': [ |
| 93 | +{ |
| 94 | +'action_name': 'protocol_compatibility', |
| 95 | +'inputs': [ |
| 96 | +'<(inspector_path)/js_protocol.pdl', |
| 97 | + ], |
| 98 | +'outputs': [ |
| 99 | +'<@(inspector_generated_output_root)/src/js_protocol.stamp', |
| 100 | + ], |
| 101 | +'action': [ |
| 102 | +'python', |
| 103 | +'<(inspector_protocol_path)/check_protocol_compatibility.py', |
| 104 | +'--stamp', '<@(_outputs)', |
| 105 | +'<@(_inputs)', |
| 106 | + ], |
| 107 | +'message': 'Checking inspector protocol compatibility', |
| 108 | + }, |
| 109 | +{ |
| 110 | +'action_name': 'protocol_generated_sources', |
| 111 | +'inputs': [ |
| 112 | +'<(inspector_path)/js_protocol.pdl', |
| 113 | +'<(inspector_path)/inspector_protocol_config.json', |
| 114 | +'<@(inspector_protocol_files)', |
| 115 | + ], |
| 116 | +'outputs': [ |
| 117 | +'<@(inspector_generated_sources)', |
| 118 | + ], |
| 119 | +'process_outputs_as_sources': 1, |
| 120 | +'action': [ |
| 121 | +'python', |
| 122 | +'<(inspector_protocol_path)/code_generator.py', |
| 123 | +'--jinja_dir', '../third_party', |
| 124 | +'--output_base', '<(inspector_generated_output_root)/src/inspector', |
| 125 | +'--config', '<(inspector_path)/inspector_protocol_config.json', |
| 126 | + ], |
| 127 | +'message': 'Generating inspector protocol sources from protocol json', |
| 128 | + }, |
| 129 | + ], |
127 | 130 | } |
0 commit comments