| OLD | NEW |
| (Empty) |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'includes': [ | |
| 7 '../inspector_protocol/inspector_protocol.gypi', | |
| 8 ], | |
| 9 'variables': { | |
| 10 'blink_platform_output_dir': '<(SHARED_INTERMEDIATE_DIR)/blink/platform', | |
| 11 }, | |
| 12 'conditions': [ | |
| 13 ['v8_inspector!="true"', | |
| 14 { | |
| 15 'targets': [ | |
| 16 { | |
| 17 # GN version: //third_party/WebKit/Source/platform:inspector_protoco
l_sources | |
| 18 'target_name': 'protocol_sources', | |
| 19 'type': 'none', | |
| 20 'dependencies': ['protocol_version'], | |
| 21 'actions': [ | |
| 22 { | |
| 23 'action_name': 'generateV8InspectorProtocolBackendSources', | |
| 24 'inputs': [ | |
| 25 '<@(inspector_protocol_files)', | |
| 26 'js_protocol.json', | |
| 27 'inspector_protocol_config.json', | |
| 28 ], | |
| 29 'outputs': [ | |
| 30 '<(blink_platform_output_dir)/v8_inspector/protocol/Forward.h'
, | |
| 31 '<(blink_platform_output_dir)/v8_inspector/protocol/Protocol.c
pp', | |
| 32 '<(blink_platform_output_dir)/v8_inspector/protocol/Protocol.h
', | |
| 33 '<(blink_platform_output_dir)/v8_inspector/protocol/Console.cp
p', | |
| 34 '<(blink_platform_output_dir)/v8_inspector/protocol/Console.h'
, | |
| 35 '<(blink_platform_output_dir)/v8_inspector/protocol/Debugger.c
pp', | |
| 36 '<(blink_platform_output_dir)/v8_inspector/protocol/Debugger.h
', | |
| 37 '<(blink_platform_output_dir)/v8_inspector/protocol/HeapProfil
er.cpp', | |
| 38 '<(blink_platform_output_dir)/v8_inspector/protocol/HeapProfil
er.h', | |
| 39 '<(blink_platform_output_dir)/v8_inspector/protocol/Profiler.c
pp', | |
| 40 '<(blink_platform_output_dir)/v8_inspector/protocol/Profiler.h
', | |
| 41 '<(blink_platform_output_dir)/v8_inspector/protocol/Runtime.cp
p', | |
| 42 '<(blink_platform_output_dir)/v8_inspector/protocol/Runtime.h'
, | |
| 43 '<(blink_platform_output_dir)/v8_inspector/protocol/Schema.cpp
', | |
| 44 '<(blink_platform_output_dir)/v8_inspector/protocol/Schema.h', | |
| 45 '<(blink_platform_output_dir)/v8_inspector/public/protocol/Deb
ugger.h', | |
| 46 '<(blink_platform_output_dir)/v8_inspector/public/protocol/Run
time.h', | |
| 47 '<(blink_platform_output_dir)/v8_inspector/public/protocol/Sch
ema.h', | |
| 48 ], | |
| 49 'action': [ | |
| 50 'python', | |
| 51 '../inspector_protocol/CodeGenerator.py', | |
| 52 '--jinja_dir', '../../../', # jinja is in chromium's third_pa
rty | |
| 53 '--output_base', '<(blink_platform_output_dir)', | |
| 54 '--config', 'inspector_protocol_config.json', | |
| 55 ], | |
| 56 'message': 'Generating protocol backend sources from json defini
tions.', | |
| 57 }, | |
| 58 ] | |
| 59 }, | |
| 60 ], | |
| 61 }, | |
| 62 ], | |
| 63 ], | |
| 64 | |
| 65 'targets': [ | |
| 66 { | |
| 67 # GN version: //third_party/WebKit/Source/platform:inspector_injected_scri
pt | |
| 68 'target_name': 'inspector_injected_script', | |
| 69 'type': 'none', | |
| 70 'actions': [ | |
| 71 { | |
| 72 'action_name': 'ConvertFileToHeaderWithCharacterArray', | |
| 73 'inputs': [ | |
| 74 'build/xxd.py', | |
| 75 'InjectedScriptSource.js', | |
| 76 ], | |
| 77 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/blink/platform/v8_inspector/I
njectedScriptSource.h', ], | |
| 78 'action': [ | |
| 79 'python', 'build/xxd.py', 'InjectedScriptSource_js', 'InjectedScript
Source.js', '<@(_outputs)' | |
| 80 ], | |
| 81 }, | |
| 82 ], | |
| 83 # Since this target generates header files, it needs to be a hard dependen
cy. | |
| 84 'hard_dependency': 1, | |
| 85 }, | |
| 86 { | |
| 87 # GN version: //third_party/WebKit/Source/platform:inspector_debugger_scri
pt | |
| 88 'target_name': 'inspector_debugger_script', | |
| 89 'type': 'none', | |
| 90 'actions': [ | |
| 91 { | |
| 92 'action_name': 'ConvertFileToHeaderWithCharacterArray', | |
| 93 'inputs': [ | |
| 94 'build/xxd.py', | |
| 95 'DebuggerScript.js', | |
| 96 ], | |
| 97 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/blink/platform/v8_inspector/D
ebuggerScript.h', ], | |
| 98 'action': [ | |
| 99 'python', 'build/xxd.py', 'DebuggerScript_js', 'DebuggerScript.js',
'<@(_outputs)' | |
| 100 ], | |
| 101 }, | |
| 102 ], | |
| 103 # Since this target generates header files, it needs to be a hard dependen
cy. | |
| 104 'hard_dependency': 1, | |
| 105 }, | |
| 106 { | |
| 107 # GN version: //third_party/WebKit/Source/core/inspector:protocol_version | |
| 108 'target_name': 'protocol_version', | |
| 109 'type': 'none', | |
| 110 'actions': [ | |
| 111 { | |
| 112 'action_name': 'generateV8InspectorProtocolVersion', | |
| 113 'inputs': [ | |
| 114 '../inspector_protocol/CheckProtocolCompatibility.py', | |
| 115 'js_protocol.json', | |
| 116 ], | |
| 117 'outputs': [ | |
| 118 '<(blink_platform_output_dir)/v8_inspector/js_protocol.stamp', | |
| 119 ], | |
| 120 'action': [ | |
| 121 'python', | |
| 122 '../inspector_protocol/CheckProtocolCompatibility.py', | |
| 123 '--stamp', | |
| 124 '<@(_outputs)', | |
| 125 'js_protocol.json', | |
| 126 ], | |
| 127 'message': 'Validate v8_inspector protocol for backwards compatibility
', | |
| 128 }, | |
| 129 ] | |
| 130 }, | |
| 131 { | |
| 132 'target_name': 'protocol_sources_stl', | |
| 133 'type': 'none', | |
| 134 'dependencies': ['protocol_version'], | |
| 135 'actions': [ | |
| 136 { | |
| 137 'action_name': 'generateV8InspectorProtocolBackendSourcesSTL', | |
| 138 'inputs': [ | |
| 139 '<@(inspector_protocol_files)', | |
| 140 'js_protocol.json', | |
| 141 'inspector_protocol_config_stl.json', | |
| 142 ], | |
| 143 'outputs': [ | |
| 144 '<(blink_platform_output_dir)/v8_inspector/protocol/Forward.h', | |
| 145 '<(blink_platform_output_dir)/v8_inspector/protocol/Protocol.cpp', | |
| 146 '<(blink_platform_output_dir)/v8_inspector/protocol/Protocol.h', | |
| 147 '<(blink_platform_output_dir)/v8_inspector/protocol/Console.cpp', | |
| 148 '<(blink_platform_output_dir)/v8_inspector/protocol/Console.h', | |
| 149 '<(blink_platform_output_dir)/v8_inspector/protocol/Debugger.cpp', | |
| 150 '<(blink_platform_output_dir)/v8_inspector/protocol/Debugger.h', | |
| 151 '<(blink_platform_output_dir)/v8_inspector/protocol/HeapProfiler.cpp
', | |
| 152 '<(blink_platform_output_dir)/v8_inspector/protocol/HeapProfiler.h', | |
| 153 '<(blink_platform_output_dir)/v8_inspector/protocol/Profiler.cpp', | |
| 154 '<(blink_platform_output_dir)/v8_inspector/protocol/Profiler.h', | |
| 155 '<(blink_platform_output_dir)/v8_inspector/protocol/Runtime.cpp', | |
| 156 '<(blink_platform_output_dir)/v8_inspector/protocol/Runtime.h', | |
| 157 '<(blink_platform_output_dir)/v8_inspector/protocol/Schema.cpp', | |
| 158 '<(blink_platform_output_dir)/v8_inspector/protocol/Schema.h', | |
| 159 '<(blink_platform_output_dir)/v8_inspector/public/protocol/Debugger.
h', | |
| 160 '<(blink_platform_output_dir)/v8_inspector/public/protocol/Runtime.h
', | |
| 161 '<(blink_platform_output_dir)/v8_inspector/public/protocol/Schema.h'
, | |
| 162 ], | |
| 163 'action': [ | |
| 164 'python', | |
| 165 '../inspector_protocol/CodeGenerator.py', | |
| 166 '--jinja_dir', '../../../', | |
| 167 '--output_base', '<(blink_platform_output_dir)', | |
| 168 '--config', 'inspector_protocol_config_stl.json', | |
| 169 ], | |
| 170 'message': 'Generating protocol backend sources from json definitions.
', | |
| 171 }, | |
| 172 ] | |
| 173 }, | |
| 174 { | |
| 175 'target_name': 'v8_inspector_stl', | |
| 176 'type': '<(component)', | |
| 177 'dependencies': [ | |
| 178 ':inspector_injected_script', | |
| 179 ':inspector_debugger_script', | |
| 180 ':protocol_sources_stl', | |
| 181 ], | |
| 182 'include_dirs': [ | |
| 183 '../..', | |
| 184 '../../../../../v8/include', | |
| 185 '../../../../../v8', | |
| 186 '<(SHARED_INTERMEDIATE_DIR)/blink', | |
| 187 ], | |
| 188 'sources': [ | |
| 189 '<(blink_platform_output_dir)/v8_inspector/protocol/Forward.h', | |
| 190 '<(blink_platform_output_dir)/v8_inspector/protocol/Protocol.cpp', | |
| 191 '<(blink_platform_output_dir)/v8_inspector/protocol/Protocol.h', | |
| 192 '<(blink_platform_output_dir)/v8_inspector/protocol/Console.cpp', | |
| 193 '<(blink_platform_output_dir)/v8_inspector/protocol/Console.h', | |
| 194 '<(blink_platform_output_dir)/v8_inspector/protocol/Debugger.cpp', | |
| 195 '<(blink_platform_output_dir)/v8_inspector/protocol/Debugger.h', | |
| 196 '<(blink_platform_output_dir)/v8_inspector/protocol/HeapProfiler.cpp', | |
| 197 '<(blink_platform_output_dir)/v8_inspector/protocol/HeapProfiler.h', | |
| 198 '<(blink_platform_output_dir)/v8_inspector/protocol/Profiler.cpp', | |
| 199 '<(blink_platform_output_dir)/v8_inspector/protocol/Profiler.h', | |
| 200 '<(blink_platform_output_dir)/v8_inspector/protocol/Runtime.cpp', | |
| 201 '<(blink_platform_output_dir)/v8_inspector/protocol/Runtime.h', | |
| 202 '<(blink_platform_output_dir)/v8_inspector/protocol/Schema.cpp', | |
| 203 '<(blink_platform_output_dir)/v8_inspector/protocol/Schema.h', | |
| 204 '<(blink_platform_output_dir)/v8_inspector/public/protocol/Debugger.h', | |
| 205 '<(blink_platform_output_dir)/v8_inspector/public/protocol/Runtime.h', | |
| 206 '<(blink_platform_output_dir)/v8_inspector/public/protocol/Schema.h', | |
| 207 | |
| 208 'Allocator.h', | |
| 209 'Atomics.h', | |
| 210 'InjectedScript.cpp', | |
| 211 'InjectedScript.h', | |
| 212 'InjectedScriptNative.cpp', | |
| 213 'InjectedScriptNative.h', | |
| 214 'InspectedContext.cpp', | |
| 215 'InspectedContext.h', | |
| 216 'JavaScriptCallFrame.cpp', | |
| 217 'JavaScriptCallFrame.h', | |
| 218 'ProtocolPlatformSTL.h', | |
| 219 'RemoteObjectId.cpp', | |
| 220 'RemoteObjectId.h', | |
| 221 'ScriptBreakpoint.h', | |
| 222 'SearchUtil.cpp', | |
| 223 'SearchUtil.h', | |
| 224 'String16.cpp', | |
| 225 'String16.h', | |
| 226 'StringUtil.cpp', | |
| 227 'StringUtil.h', | |
| 228 'V8Console.cpp', | |
| 229 'V8Console.h', | |
| 230 'V8ConsoleAgentImpl.cpp', | |
| 231 'V8ConsoleAgentImpl.h', | |
| 232 'V8ConsoleMessage.cpp', | |
| 233 'V8ConsoleMessage.h', | |
| 234 'V8Debugger.cpp', | |
| 235 'V8Debugger.h', | |
| 236 'V8DebuggerAgentImpl.cpp', | |
| 237 'V8DebuggerAgentImpl.h', | |
| 238 'V8InspectorImpl.cpp', | |
| 239 'V8InspectorImpl.h', | |
| 240 'V8DebuggerScript.cpp', | |
| 241 'V8DebuggerScript.h', | |
| 242 'V8FunctionCall.cpp', | |
| 243 'V8FunctionCall.h', | |
| 244 'V8HeapProfilerAgentImpl.cpp', | |
| 245 'V8HeapProfilerAgentImpl.h', | |
| 246 'V8InjectedScriptHost.cpp', | |
| 247 'V8InjectedScriptHost.h', | |
| 248 'V8InspectorSessionImpl.cpp', | |
| 249 'V8InspectorSessionImpl.h', | |
| 250 'V8InternalValueType.cpp', | |
| 251 'V8InternalValueType.h', | |
| 252 'V8ProfilerAgentImpl.cpp', | |
| 253 'V8ProfilerAgentImpl.h', | |
| 254 'V8Regex.cpp', | |
| 255 'V8Regex.h', | |
| 256 'V8RuntimeAgentImpl.cpp', | |
| 257 'V8RuntimeAgentImpl.h', | |
| 258 'V8SchemaAgentImpl.cpp', | |
| 259 'V8SchemaAgentImpl.h', | |
| 260 'V8StackTraceImpl.cpp', | |
| 261 'V8StackTraceImpl.h', | |
| 262 'V8ValueCopier.cpp', | |
| 263 'V8ValueCopier.h', | |
| 264 'public/StringBuffer.h', | |
| 265 'public/StringView.h', | |
| 266 'public/V8ContextInfo.h', | |
| 267 'public/V8Inspector.h', | |
| 268 'public/V8InspectorClient.h', | |
| 269 'public/V8InspectorSession.h', | |
| 270 'public/V8StackTrace.h', | |
| 271 | |
| 272 '<(blink_platform_output_dir)/v8_inspector/DebuggerScript.h', | |
| 273 '<(blink_platform_output_dir)/v8_inspector/InjectedScriptSource.h', | |
| 274 ], | |
| 275 }, | |
| 276 ], # targets | |
| 277 } | |
| OLD | NEW |