| Index: third_party/WebKit/Source/core/inspector/BUILD.gn
|
| diff --git a/third_party/WebKit/Source/core/inspector/BUILD.gn b/third_party/WebKit/Source/core/inspector/BUILD.gn
|
| index f739bbad9700e87ace888f1f10009bbed1e4e414..6654e655fe6d326a4005050c8ce4601884c29cdc 100644
|
| --- a/third_party/WebKit/Source/core/inspector/BUILD.gn
|
| +++ b/third_party/WebKit/Source/core/inspector/BUILD.gn
|
| @@ -5,8 +5,6 @@
|
| import("//third_party/WebKit/Source/bindings/bindings.gni")
|
| import("//third_party/WebKit/Source/core/core.gni")
|
|
|
| -visibility = [ "//third_party/WebKit/Source/*" ]
|
| -
|
| action("instrumentation_sources") {
|
| script = "CodeGeneratorInstrumentation.py"
|
|
|
| @@ -32,17 +30,43 @@ action("instrumentation_sources") {
|
|
|
| # inspector protocol -----------------------------------------------------------
|
|
|
| -protocol_file = "../../devtools/protocol.json"
|
| -
|
| action("protocol_sources") {
|
| script = "../../platform/inspector_protocol/CodeGenerator.py"
|
| + deps = [
|
| + ":protocol_version",
|
| + ]
|
| sources = [
|
| "../../platform/inspector_protocol/CodeGenerator.py",
|
| + "../../platform/inspector_protocol/TypeBuilder_cpp.template",
|
| + "../../platform/inspector_protocol/TypeBuilder_h.template",
|
| ]
|
| inputs = [
|
| - protocol_file,
|
| - "../../platform/inspector_protocol/TypeBuilder_h.template",
|
| - "../../platform/inspector_protocol/TypeBuilder_cpp.template",
|
| + "protocol/Accessibility.json",
|
| + "protocol/Animation.json",
|
| + "protocol/ApplicationCache.json",
|
| + "protocol/CacheStorage.json",
|
| + "protocol/Console.json",
|
| + "protocol/CSS.json",
|
| + "protocol/Database.json",
|
| + "protocol/DeviceOrientation.json",
|
| + "protocol/DOM.json",
|
| + "protocol/DOMDebugger.json",
|
| + "protocol/DOMStorage.json",
|
| + "protocol/Emulation.json",
|
| + "protocol/IndexedDB.json",
|
| + "protocol/Input.json",
|
| + "protocol/Inspector.json",
|
| + "protocol/IO.json",
|
| + "protocol/LayerTree.json",
|
| + "protocol/Memory.json",
|
| + "protocol/Network.json",
|
| + "protocol/Page.json",
|
| + "protocol/Rendering.json",
|
| + "protocol/Security.json",
|
| + "protocol/ServiceWorker.json",
|
| + "protocol/Storage.json",
|
| + "protocol/Tracing.json",
|
| + "protocol/Worker.json",
|
| ]
|
| outputs = [
|
| "$blink_core_output_dir/inspector/protocol/Accessibility.cpp",
|
| @@ -100,9 +124,10 @@ action("protocol_sources") {
|
| ]
|
|
|
| args = [
|
| - rebase_path(protocol_file, root_build_dir),
|
| - "--domains",
|
| - "Accessibility,Animation,ApplicationCache,CacheStorage,Console,CSS,Database,DeviceOrientation,DOM,DOMDebugger,DOMStorage,Emulation,IndexedDB,Input,Inspector,IO,LayerTree,Memory,Network,Page,Rendering,Security,ServiceWorker,Storage,Tracing,Worker",
|
| + "--protocol_dir",
|
| + rebase_path("protocol", root_build_dir),
|
| + "--include_dir",
|
| + rebase_path("../../platform/v8_inspector/protocol", root_build_dir),
|
| "--string_type",
|
| "String",
|
| "--export_macro",
|
| @@ -113,3 +138,48 @@ action("protocol_sources") {
|
| "core/inspector/protocol",
|
| ]
|
| }
|
| +
|
| +action("protocol_version") {
|
| + script =
|
| + "../../platform/inspector_protocol/generate-inspector-protocol-version"
|
| +
|
| + inputs = [
|
| + "protocol/Accessibility.json",
|
| + "protocol/Animation.json",
|
| + "protocol/ApplicationCache.json",
|
| + "protocol/CacheStorage.json",
|
| + "protocol/Console.json",
|
| + "protocol/CSS.json",
|
| + "protocol/Database.json",
|
| + "protocol/DeviceOrientation.json",
|
| + "protocol/DOM.json",
|
| + "protocol/DOMDebugger.json",
|
| + "protocol/DOMStorage.json",
|
| + "protocol/Emulation.json",
|
| + "protocol/IndexedDB.json",
|
| + "protocol/Input.json",
|
| + "protocol/Inspector.json",
|
| + "protocol/IO.json",
|
| + "protocol/LayerTree.json",
|
| + "protocol/Memory.json",
|
| + "protocol/Network.json",
|
| + "protocol/Page.json",
|
| + "protocol/Rendering.json",
|
| + "protocol/Security.json",
|
| + "protocol/ServiceWorker.json",
|
| + "protocol/Storage.json",
|
| + "protocol/Tracing.json",
|
| + "protocol/Worker.json",
|
| + ]
|
| + output_file = "$blink_core_output_dir/inspector/protocol/inspector.json"
|
| + outputs = [
|
| + output_file,
|
| + ]
|
| +
|
| + args = [
|
| + "--o",
|
| + rebase_path(output_file, root_build_dir),
|
| + rebase_path(".", root_build_dir),
|
| + rebase_path("../../platform/v8_inspector", root_build_dir),
|
| + ]
|
| +}
|
|
|