| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//third_party/WebKit/Source/bindings/bindings.gni") | 5 import("//third_party/WebKit/Source/bindings/bindings.gni") |
| 6 import("//third_party/WebKit/Source/core/core.gni") | 6 import("//third_party/WebKit/Source/core/core.gni") |
| 7 import( | 7 import("//third_party/inspector_protocol/inspector_protocol.gni") |
| 8 "//third_party/WebKit/Source/platform/inspector_protocol/inspector_protocol.
gni") | |
| 9 import("//v8/gni/v8.gni") | 8 import("//v8/gni/v8.gni") |
| 10 | 9 |
| 10 _inspector_protocol_dir = "//third_party/inspector_protocol" |
| 11 |
| 11 blink_core_sources("inspector") { | 12 blink_core_sources("inspector") { |
| 12 sources = [ | 13 sources = [ |
| 13 "ConsoleMessage.cpp", | 14 "ConsoleMessage.cpp", |
| 14 "ConsoleMessage.h", | 15 "ConsoleMessage.h", |
| 15 "ConsoleMessageStorage.cpp", | 16 "ConsoleMessageStorage.cpp", |
| 16 "ConsoleMessageStorage.h", | 17 "ConsoleMessageStorage.h", |
| 17 "ConsoleTypes.h", | 18 "ConsoleTypes.h", |
| 18 "DOMEditor.cpp", | 19 "DOMEditor.cpp", |
| 19 "DOMEditor.h", | 20 "DOMEditor.h", |
| 20 "DOMPatchSupport.cpp", | 21 "DOMPatchSupport.cpp", |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 args = [ | 117 args = [ |
| 117 rebase_path("InspectorInstrumentation.idl", root_build_dir), | 118 rebase_path("InspectorInstrumentation.idl", root_build_dir), |
| 118 "--output_dir", | 119 "--output_dir", |
| 119 rebase_path(blink_core_output_dir, root_build_dir), | 120 rebase_path(blink_core_output_dir, root_build_dir), |
| 120 ] | 121 ] |
| 121 } | 122 } |
| 122 | 123 |
| 123 # inspector protocol ----------------------------------------------------------- | 124 # inspector protocol ----------------------------------------------------------- |
| 124 | 125 |
| 125 inspector_protocol_generate("protocol_sources") { | 126 inspector_protocol_generate("protocol_sources") { |
| 127 inspector_protocol_dir = _inspector_protocol_dir |
| 126 out_dir = blink_core_output_dir | 128 out_dir = blink_core_output_dir |
| 127 | 129 |
| 128 config_file = "inspector_protocol_config.json" | 130 config_file = "inspector_protocol_config.json" |
| 129 | 131 |
| 130 inputs = [ | 132 inputs = [ |
| 131 "browser_protocol.json", | 133 "browser_protocol.json", |
| 132 v8_inspector_js_protocol, | 134 v8_inspector_js_protocol, |
| 133 "inspector_protocol_config.json", | 135 "inspector_protocol_config.json", |
| 134 ] | 136 ] |
| 135 | 137 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 "//skia", | 222 "//skia", |
| 221 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated", | 223 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated", |
| 222 "//third_party/WebKit/Source/core:all_generators", | 224 "//third_party/WebKit/Source/core:all_generators", |
| 223 "//third_party/WebKit/Source/platform:make_platform_generated", | 225 "//third_party/WebKit/Source/platform:make_platform_generated", |
| 224 "//third_party/WebKit/Source/wtf", | 226 "//third_party/WebKit/Source/wtf", |
| 225 "//v8", | 227 "//v8", |
| 226 ] | 228 ] |
| 227 } | 229 } |
| 228 | 230 |
| 229 action("protocol_compatibility_check") { | 231 action("protocol_compatibility_check") { |
| 230 script = "../../platform/inspector_protocol/CheckProtocolCompatibility.py" | 232 script = _inspector_protocol_dir + "/CheckProtocolCompatibility.py" |
| 231 | 233 |
| 232 inputs = [ | 234 inputs = [ |
| 233 "browser_protocol.json", | 235 "browser_protocol.json", |
| 234 v8_inspector_js_protocol, | 236 v8_inspector_js_protocol, |
| 235 ] | 237 ] |
| 236 _stamp = "$blink_core_output_dir/inspector/browser_protocol.stamp" | 238 _stamp = "$blink_core_output_dir/inspector/browser_protocol.stamp" |
| 237 outputs = [ | 239 outputs = [ |
| 238 _stamp, | 240 _stamp, |
| 239 ] | 241 ] |
| 240 | 242 |
| 241 args = [ | 243 args = [ |
| 242 "--stamp", | 244 "--stamp", |
| 243 rebase_path(_stamp, root_build_dir), | 245 rebase_path(_stamp, root_build_dir), |
| 244 rebase_path("browser_protocol.json", root_build_dir), | 246 rebase_path("browser_protocol.json", root_build_dir), |
| 245 rebase_path(v8_inspector_js_protocol, root_build_dir), | 247 rebase_path(v8_inspector_js_protocol, root_build_dir), |
| 246 ] | 248 ] |
| 247 } | 249 } |
| 248 | 250 |
| 249 action("protocol_version") { | 251 action("protocol_version") { |
| 250 deps = [ | 252 deps = [ |
| 251 ":protocol_compatibility_check", | 253 ":protocol_compatibility_check", |
| 252 ] | 254 ] |
| 253 script = "../../platform/inspector_protocol/ConcatenateProtocols.py" | 255 script = _inspector_protocol_dir + "/ConcatenateProtocols.py" |
| 254 | 256 |
| 255 inputs = [ | 257 inputs = [ |
| 256 "browser_protocol.json", | 258 "browser_protocol.json", |
| 257 v8_inspector_js_protocol, | 259 v8_inspector_js_protocol, |
| 258 ] | 260 ] |
| 259 output_file = "$blink_core_output_dir/inspector/protocol.json" | 261 output_file = "$blink_core_output_dir/inspector/protocol.json" |
| 260 outputs = [ | 262 outputs = [ |
| 261 output_file, | 263 output_file, |
| 262 ] | 264 ] |
| 263 | 265 |
| 264 args = [ | 266 args = [ |
| 265 rebase_path("browser_protocol.json", root_build_dir), | 267 rebase_path("browser_protocol.json", root_build_dir), |
| 266 rebase_path(v8_inspector_js_protocol, root_build_dir), | 268 rebase_path(v8_inspector_js_protocol, root_build_dir), |
| 267 rebase_path(output_file, root_build_dir), | 269 rebase_path(output_file, root_build_dir), |
| 268 ] | 270 ] |
| 269 } | 271 } |
| OLD | NEW |