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", |
] |