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", | |
56 ] | 54 ] |
57 output_dir = "$root_gen_dir/components" | 55 output_dir = "$root_gen_dir/components" |
58 } | 56 } |
59 | 57 |
60 # GYP version: components/components_resources.gyp:about_credits | 58 # GYP version: components/components_resources.gyp:about_credits |
61 action("about_credits") { | 59 action("about_credits") { |
62 script = "//tools/licenses.py" | 60 script = "//tools/licenses.py" |
63 | 61 |
64 inputs = [ | 62 inputs = [ |
65 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to | 63 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to |
66 # generate a .d file with all the licenses/credits that about:credits uses. | 64 # generate a .d file with all the licenses/credits that about:credits uses. |
67 # Then about:credits will automatically rebuild when one of them changes. | 65 # Then about:credits will automatically rebuild when one of them changes. |
68 # See: depfile in gn's documentation (gn help depfile). | 66 # See: depfile in gn's documentation (gn help depfile). |
69 "../about_ui/resources/about_credits.tmpl", | 67 "../about_ui/resources/about_credits.tmpl", |
70 "../about_ui/resources/about_credits_entry.tmpl", | 68 "../about_ui/resources/about_credits_entry.tmpl", |
71 ] | 69 ] |
72 | 70 |
73 outputs = [ | 71 outputs = [ |
74 about_credits_file, | 72 about_credits_file, |
75 ] | 73 ] |
76 | 74 |
77 args = [ | 75 args = [ |
78 "--target-os=$target_os", | 76 "--target-os=$target_os", |
79 "credits", | 77 "credits", |
80 rebase_path(about_credits_file, root_build_dir), | 78 rebase_path(about_credits_file, root_build_dir), |
81 ] | 79 ] |
82 } | 80 } |
OLD | NEW |