OLD | NEW |
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 import("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
6 | 6 |
7 about_credits_file = "$target_gen_dir/about_credits.html" | 7 about_credits_file = "$target_gen_dir/about_credits.html" |
8 | 8 |
9 # GYP version: components/components_resources.gyp:components_resources | 9 # GYP version: components/components_resources.gyp:components_resources |
10 group("resources") { | 10 group("resources") { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 # TODO(hashimoto): Remove this line. | 45 # TODO(hashimoto): Remove this line. |
46 output_name = "components_scaled_resources_new" | 46 output_name = "components_scaled_resources_new" |
47 outputs = [ | 47 outputs = [ |
48 "grit/components_scaled_resources.h", | 48 "grit/components_scaled_resources.h", |
49 "grit/components_scaled_resources_map.cc", | 49 "grit/components_scaled_resources_map.cc", |
50 "grit/components_scaled_resources_map.h", | 50 "grit/components_scaled_resources_map.h", |
51 "components_resources_100_percent.pak", | 51 "components_resources_100_percent.pak", |
52 "components_resources_200_percent.pak", | 52 "components_resources_200_percent.pak", |
53 "components_resources_300_percent.pak", | 53 "components_resources_300_percent.pak", |
| 54 "components_resources_material_100_percent.pak", |
| 55 "components_resources_material_200_percent.pak", |
54 ] | 56 ] |
55 output_dir = "$root_gen_dir/components" | 57 output_dir = "$root_gen_dir/components" |
56 } | 58 } |
57 | 59 |
58 # GYP version: components/components_resources.gyp:about_credits | 60 # GYP version: components/components_resources.gyp:about_credits |
59 action("about_credits") { | 61 action("about_credits") { |
60 script = "//tools/licenses.py" | 62 script = "//tools/licenses.py" |
61 | 63 |
62 inputs = [ | 64 inputs = [ |
63 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to | 65 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to |
64 # generate a .d file with all the licenses/credits that about:credits uses. | 66 # generate a .d file with all the licenses/credits that about:credits uses. |
65 # Then about:credits will automatically rebuild when one of them changes. | 67 # Then about:credits will automatically rebuild when one of them changes. |
66 # See: depfile in gn's documentation (gn help depfile). | 68 # See: depfile in gn's documentation (gn help depfile). |
67 "../about_ui/resources/about_credits.tmpl", | 69 "../about_ui/resources/about_credits.tmpl", |
68 "../about_ui/resources/about_credits_entry.tmpl", | 70 "../about_ui/resources/about_credits_entry.tmpl", |
69 ] | 71 ] |
70 | 72 |
71 outputs = [ | 73 outputs = [ |
72 about_credits_file, | 74 about_credits_file, |
73 ] | 75 ] |
74 | 76 |
75 args = [ | 77 args = [ |
76 "--target-os=$target_os", | 78 "--target-os=$target_os", |
77 "credits", | 79 "credits", |
78 rebase_path(about_credits_file, root_build_dir), | 80 rebase_path(about_credits_file, root_build_dir), |
79 ] | 81 ] |
80 } | 82 } |
OLD | NEW |