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