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

Unified Diff: components/resources/BUILD.gn

Issue 1951363002: Brotli compression used on about credits html file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Guarded Windows include Created 4 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
« no previous file with comments | « components/components_resources.gyp ('k') | third_party/brotli/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/resources/BUILD.gn
diff --git a/components/resources/BUILD.gn b/components/resources/BUILD.gn
index 3be6fe9ff482057a1235169bce07a6d5e214e3b2..3782edde141c3f3358ec3fa60db2f2da3b11ca73 100644
--- a/components/resources/BUILD.gn
+++ b/components/resources/BUILD.gn
@@ -3,8 +3,10 @@
# found in the LICENSE file.
import("//tools/grit/grit_rule.gni")
+import("//third_party/brotli/brotli.gni")
about_credits_file = "$target_gen_dir/about_credits.html"
+about_credits_file_bro = "$target_gen_dir/about_credits.bro"
# GYP version: components/components_resources.gyp:components_resources
group("resources") {
@@ -29,11 +31,11 @@ grit("components_resources") {
grit_flags = [
"-E",
- "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
+ "about_credits_file=" + rebase_path(about_credits_file_bro, root_build_dir),
]
deps = [
- ":about_credits",
+ ":compressed_about_credits",
]
}
@@ -57,6 +59,14 @@ grit("components_scaled_resources") {
output_dir = "$root_gen_dir/components"
}
+compress_file_brotli("compressed_about_credits") {
+ input_file = about_credits_file
+ output_file = about_credits_file_bro
+ deps = [
+ ":about_credits",
+ ]
+}
+
# GYP version: components/components_resources.gyp:about_credits
action("about_credits") {
script = "//tools/licenses.py"
« no previous file with comments | « components/components_resources.gyp ('k') | third_party/brotli/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698