Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1030)

Unified Diff: content/browser/devtools/BUILD.gn

Issue 508973003: DevTools: Protocol handler generator for content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fit generated code in 80 chars per line Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/devtools/BUILD.gn
diff --git a/content/browser/devtools/BUILD.gn b/content/browser/devtools/BUILD.gn
index bc2b60d92434e6c06a1261299c54e2abfc6928fe..cb04b1b2a7b11e0cd9bb8d127938aa0328fd4458 100644
--- a/content/browser/devtools/BUILD.gn
+++ b/content/browser/devtools/BUILD.gn
@@ -9,6 +9,7 @@ group("resources") {
deps = [
":devtools_resources",
":devtools_protocol_constants",
+ ":devtools_protocol_handler",
]
}
@@ -56,7 +57,30 @@ action("gen_devtools_protocol_constants") {
]
}
+action("gen_devtools_protocol_handler") {
+ visibility = [ ":devtools_protocol_handler" ]
+
+ script = "//content/browser/devtools/protocol/devtools_protocol_handler_generator.py"
dgozman 2014/09/16 15:38:05 Fit in 80 please.
vkuzkokov 2014/09/16 16:37:55 Done.
+
+ blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json"
+ inputs = [ blink_protocol ]
+
+ outputs = [
+ "$target_gen_dir/protocol/devtools_protocol_handler.h",
dgozman 2014/09/16 15:38:05 Let's put .cc first.
vkuzkokov 2014/09/16 16:37:55 Done.
+ "$target_gen_dir/protocol/devtools_protocol_handler.cc",
+ ]
+
+ args = [
+ rebase_path(blink_protocol, root_build_dir),
+ ] + rebase_path(outputs, root_build_dir)
+}
+
source_set("devtools_protocol_constants") {
visibility = [ ":resources" ]
sources = get_target_outputs(":gen_devtools_protocol_constants")
}
+
+source_set("devtools_protocol_handler") {
+ visibility = [ ":resources" ]
+ sources = get_target_outputs(":gen_devtools_protocol_handler")
+}

Powered by Google App Engine
This is Rietveld 408576698