| 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( |
| 8 "//third_party/WebKit/Source/platform/inspector_protocol/inspector_protocol.
gni") | 8 "//third_party/WebKit/Source/platform/inspector_protocol/inspector_protocol.
gni") |
| 9 import("//v8/gni/v8.gni") |
| 9 | 10 |
| 10 blink_core_sources("inspector") { | 11 blink_core_sources("inspector") { |
| 11 sources = [ | 12 sources = [ |
| 12 "ConsoleMessage.cpp", | 13 "ConsoleMessage.cpp", |
| 13 "ConsoleMessage.h", | 14 "ConsoleMessage.h", |
| 14 "ConsoleMessageStorage.cpp", | 15 "ConsoleMessageStorage.cpp", |
| 15 "ConsoleMessageStorage.h", | 16 "ConsoleMessageStorage.h", |
| 16 "ConsoleTypes.h", | 17 "ConsoleTypes.h", |
| 17 "DOMEditor.cpp", | 18 "DOMEditor.cpp", |
| 18 "DOMEditor.h", | 19 "DOMEditor.h", |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 ] | 122 ] |
| 122 } | 123 } |
| 123 | 124 |
| 124 # inspector protocol ----------------------------------------------------------- | 125 # inspector protocol ----------------------------------------------------------- |
| 125 | 126 |
| 126 inspector_protocol_generate("protocol_sources") { | 127 inspector_protocol_generate("protocol_sources") { |
| 127 out_dir = blink_core_output_dir | 128 out_dir = blink_core_output_dir |
| 128 | 129 |
| 129 config_file = "inspector_protocol_config.json" | 130 config_file = "inspector_protocol_config.json" |
| 130 | 131 |
| 131 # TODO(dgozman): export js_protocol.json path from v8's build. | |
| 132 inputs = [ | 132 inputs = [ |
| 133 "browser_protocol.json", | 133 "browser_protocol.json", |
| 134 "//v8/src/inspector/js_protocol.json", | 134 v8_inspector_js_protocol, |
| 135 "inspector_protocol_config.json", | 135 "inspector_protocol_config.json", |
| 136 ] | 136 ] |
| 137 | 137 |
| 138 # These are relative to blink_core_output_dir. | 138 # These are relative to blink_core_output_dir. |
| 139 outputs = [ | 139 outputs = [ |
| 140 "inspector/protocol/Accessibility.cpp", | 140 "inspector/protocol/Accessibility.cpp", |
| 141 "inspector/protocol/Accessibility.h", | 141 "inspector/protocol/Accessibility.h", |
| 142 "inspector/protocol/Animation.cpp", | 142 "inspector/protocol/Animation.cpp", |
| 143 "inspector/protocol/Animation.h", | 143 "inspector/protocol/Animation.h", |
| 144 "inspector/protocol/ApplicationCache.cpp", | 144 "inspector/protocol/ApplicationCache.cpp", |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 "//third_party/WebKit/Source/wtf", | 224 "//third_party/WebKit/Source/wtf", |
| 225 "//v8", | 225 "//v8", |
| 226 ] | 226 ] |
| 227 } | 227 } |
| 228 | 228 |
| 229 action("protocol_compatibility_check") { | 229 action("protocol_compatibility_check") { |
| 230 script = "../../platform/inspector_protocol/CheckProtocolCompatibility.py" | 230 script = "../../platform/inspector_protocol/CheckProtocolCompatibility.py" |
| 231 | 231 |
| 232 inputs = [ | 232 inputs = [ |
| 233 "browser_protocol.json", | 233 "browser_protocol.json", |
| 234 "//v8/src/inspector/js_protocol.json", | 234 v8_inspector_js_protocol, |
| 235 ] | 235 ] |
| 236 _stamp = "$blink_core_output_dir/inspector/browser_protocol.stamp" | 236 _stamp = "$blink_core_output_dir/inspector/browser_protocol.stamp" |
| 237 outputs = [ | 237 outputs = [ |
| 238 _stamp, | 238 _stamp, |
| 239 ] | 239 ] |
| 240 | 240 |
| 241 args = [ | 241 args = [ |
| 242 "--stamp", | 242 "--stamp", |
| 243 rebase_path(_stamp, root_build_dir), | 243 rebase_path(_stamp, root_build_dir), |
| 244 rebase_path("browser_protocol.json", root_build_dir), | 244 rebase_path("browser_protocol.json", root_build_dir), |
| 245 rebase_path("//v8/src/inspector/js_protocol.json", root_build_dir), | 245 rebase_path(v8_inspector_js_protocol, root_build_dir), |
| 246 ] | 246 ] |
| 247 } | 247 } |
| 248 | 248 |
| 249 action("protocol_version") { | 249 action("protocol_version") { |
| 250 deps = [ | 250 deps = [ |
| 251 ":protocol_compatibility_check", | 251 ":protocol_compatibility_check", |
| 252 ] | 252 ] |
| 253 script = "../../platform/inspector_protocol/ConcatenateProtocols.py" | 253 script = "../../platform/inspector_protocol/ConcatenateProtocols.py" |
| 254 | 254 |
| 255 inputs = [ | 255 inputs = [ |
| 256 "browser_protocol.json", | 256 "browser_protocol.json", |
| 257 "//v8/src/inspector/js_protocol.json", | 257 v8_inspector_js_protocol, |
| 258 ] | 258 ] |
| 259 output_file = "$blink_core_output_dir/inspector/protocol.json" | 259 output_file = "$blink_core_output_dir/inspector/protocol.json" |
| 260 outputs = [ | 260 outputs = [ |
| 261 output_file, | 261 output_file, |
| 262 ] | 262 ] |
| 263 | 263 |
| 264 args = [ | 264 args = [ |
| 265 rebase_path("browser_protocol.json", root_build_dir), | 265 rebase_path("browser_protocol.json", root_build_dir), |
| 266 rebase_path("//v8/src/inspector/js_protocol.json", root_build_dir), | 266 rebase_path(v8_inspector_js_protocol, root_build_dir), |
| 267 rebase_path(output_file, root_build_dir), | 267 rebase_path(output_file, root_build_dir), |
| 268 ] | 268 ] |
| 269 } | 269 } |
| OLD | NEW |