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

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

Issue 2867073006: Adds a /json/protocol endpoint to serve the DevTools protocol (Closed)
Patch Set: try a different dependancy Created 3 years, 7 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 109d100068eadafcb36d3af189bca2e533d07057..1f3a739e4744cc120d950e6bcaf61d93c3d3aea2 100644
--- a/content/browser/devtools/BUILD.gn
+++ b/content/browser/devtools/BUILD.gn
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("//tools/grit/grit_rule.gni")
+import("//third_party/brotli/brotli.gni")
import("//third_party/inspector_protocol/inspector_protocol.gni")
group("resources") {
@@ -13,6 +14,17 @@ group("resources") {
}
}
+compressed_protocol_file =
+ "$root_gen_dir/blink/core/inspector/protocol.json.bro"
+
+compress_file_brotli("compressed_protocol_json") {
+ input_file = "$root_gen_dir/blink/core/inspector/protocol.json"
+ output_file = compressed_protocol_file
+ deps = [
+ "//third_party/WebKit/Source/core/inspector:protocol_version",
+ ]
+}
+
grit("devtools_resources") {
source = "$root_gen_dir/devtools/devtools_resources.grd"
source_is_generated = true
@@ -24,10 +36,18 @@ grit("devtools_resources") {
"grit/devtools_resources_map.h",
]
+ grit_flags = [
+ "-E",
+ "compressed_protocol_file=" +
+ rebase_path(compressed_protocol_file, root_build_dir),
+ ]
+
defines =
[ "SHARED_INTERMEDIATE_DIR=" + rebase_path(root_gen_dir, root_build_dir) ]
deps = [
+ ":compressed_protocol_json",
+
# This is the action that generates out .grd input file.
"//third_party/WebKit/public:blink_generate_devtools_grd",
]

Powered by Google App Engine
This is Rietveld 408576698