Index: components/components_resources.gyp |
diff --git a/components/components_resources.gyp b/components/components_resources.gyp |
index 783ddb42fb9cd3617fa6bbe14dd60873a50583a8..9e092c276316bb670246bcfae0ea196edf770cea 100644 |
--- a/components/components_resources.gyp |
+++ b/components/components_resources.gyp |
@@ -5,6 +5,7 @@ |
{ |
'variables': { |
'about_credits_file': '<(SHARED_INTERMEDIATE_DIR)/about_credits.html', |
+ 'about_credits_file_bro': '<(SHARED_INTERMEDIATE_DIR)/about_credits.bro', |
}, |
'targets': [ |
{ |
@@ -12,7 +13,7 @@ |
'target_name': 'components_resources', |
'type': 'none', |
'dependencies': [ |
- 'about_credits', |
+ 'compressed_about_credits', |
], |
'hard_dependency': 1, |
'variables': { |
@@ -25,7 +26,7 @@ |
'variables': { |
'grit_grd_file': 'resources/components_resources.grd', |
'grit_additional_defines': [ |
- '-E', 'about_credits_file=<(about_credits_file)', |
+ '-E', 'about_credits_file=<(about_credits_file_bro)', |
], |
}, |
'includes': [ '../build/grit_action.gypi' ], |
@@ -42,6 +43,22 @@ |
'includes': [ '../build/grit_target.gypi' ], |
}, |
{ |
+ 'target_name': 'compressed_about_credits', |
+ 'type': 'none', |
+ 'actions': [ |
+ { |
+ 'variables': { |
+ 'input_file': '<(about_credits_file)', |
+ 'output_file': '<(about_credits_file_bro)', |
+ }, |
+ 'includes': ['../third_party/brotli/bro.gypi'], |
+ } |
+ ], |
+ 'dependencies': [ |
+ 'about_credits' |
+ ], |
+ }, |
+ { |
# GN version: //components/resources:about_credits |
'target_name': 'about_credits', |
'type': 'none', |