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

Side by Side Diff: components/components_resources.gyp

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 unified diff | Download patch
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | components/resources/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'about_credits_file': '<(SHARED_INTERMEDIATE_DIR)/about_credits.html', 7 'about_credits_file': '<(SHARED_INTERMEDIATE_DIR)/about_credits.html',
8 'about_credits_file_bro': '<(SHARED_INTERMEDIATE_DIR)/about_credits.bro',
8 }, 9 },
9 'targets': [ 10 'targets': [
10 { 11 {
11 # GN version: //components/resources 12 # GN version: //components/resources
12 'target_name': 'components_resources', 13 'target_name': 'components_resources',
13 'type': 'none', 14 'type': 'none',
14 'dependencies': [ 15 'dependencies': [
15 'about_credits', 16 'compressed_about_credits',
16 ], 17 ],
17 'hard_dependency': 1, 18 'hard_dependency': 1,
18 'variables': { 19 'variables': {
19 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/components', 20 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/components',
20 }, 21 },
21 'actions': [ 22 'actions': [
22 { 23 {
23 # GN version: //components/resources:components_resources 24 # GN version: //components/resources:components_resources
24 'action_name': 'generate_components_resources', 25 'action_name': 'generate_components_resources',
25 'variables': { 26 'variables': {
26 'grit_grd_file': 'resources/components_resources.grd', 27 'grit_grd_file': 'resources/components_resources.grd',
27 'grit_additional_defines': [ 28 'grit_additional_defines': [
28 '-E', 'about_credits_file=<(about_credits_file)', 29 '-E', 'about_credits_file=<(about_credits_file_bro)',
29 ], 30 ],
30 }, 31 },
31 'includes': [ '../build/grit_action.gypi' ], 32 'includes': [ '../build/grit_action.gypi' ],
32 }, 33 },
33 { 34 {
34 # GN version: //components/resources:components_scaled_resources 35 # GN version: //components/resources:components_scaled_resources
35 'action_name': 'generate_components_scaled_resources', 36 'action_name': 'generate_components_scaled_resources',
36 'variables': { 37 'variables': {
37 'grit_grd_file': 'resources/components_scaled_resources.grd', 38 'grit_grd_file': 'resources/components_scaled_resources.grd',
38 }, 39 },
39 'includes': [ '../build/grit_action.gypi' ], 40 'includes': [ '../build/grit_action.gypi' ],
40 }, 41 },
41 ], 42 ],
42 'includes': [ '../build/grit_target.gypi' ], 43 'includes': [ '../build/grit_target.gypi' ],
43 }, 44 },
44 { 45 {
46 'target_name': 'compressed_about_credits',
47 'type': 'none',
48 'actions': [
49 {
50 'variables': {
51 'input_file': '<(about_credits_file)',
52 'output_file': '<(about_credits_file_bro)',
53 },
54 'includes': ['../third_party/brotli/bro.gypi'],
55 }
56 ],
57 'dependencies': [
58 'about_credits'
59 ],
60 },
61 {
45 # GN version: //components/resources:about_credits 62 # GN version: //components/resources:about_credits
46 'target_name': 'about_credits', 63 'target_name': 'about_credits',
47 'type': 'none', 64 'type': 'none',
48 'hard_dependency': 1, 65 'hard_dependency': 1,
49 'actions': [ 66 'actions': [
50 { 67 {
51 'variables': { 68 'variables': {
52 'generator_path': '../tools/licenses.py', 69 'generator_path': '../tools/licenses.py',
53 }, 70 },
54 'action_name': 'generate_about_credits', 71 'action_name': 'generate_about_credits',
(...skipping 12 matching lines...) Expand all
67 '--target-os=<(OS)', 84 '--target-os=<(OS)',
68 'credits', 85 'credits',
69 '<(about_credits_file)', 86 '<(about_credits_file)',
70 ], 87 ],
71 'message': 'Generating about:credits', 88 'message': 'Generating about:credits',
72 }, 89 },
73 ], 90 ],
74 }, 91 },
75 ], 92 ],
76 } 93 }
OLDNEW
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | components/resources/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698