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 import("//tools/grit/repack.gni") | 6 import("//tools/grit/repack.gni") |
7 | 7 |
8 # GYP version: ui/resources/ui_resources.gyp:ui_resources | |
9 group("resources") { | 8 group("resources") { |
10 public_deps = [ | 9 public_deps = [ |
11 ":ui_resources_grd", | 10 ":ui_resources_grd", |
12 ":ui_unscaled_resources_grd", | 11 ":ui_unscaled_resources_grd", |
13 ":webui_resources_grd", | 12 ":webui_resources_grd", |
14 ] | 13 ] |
15 } | 14 } |
16 | 15 |
17 grit("ui_resources_grd") { | 16 grit("ui_resources_grd") { |
18 source = "ui_resources.grd" | 17 source = "ui_resources.grd" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 "$root_out_dir/ui_resources_100_percent.pak", | 58 "$root_out_dir/ui_resources_100_percent.pak", |
60 ] | 59 ] |
61 deps = [ | 60 deps = [ |
62 "//ui/resources", | 61 "//ui/resources", |
63 ] | 62 ] |
64 } | 63 } |
65 } | 64 } |
66 | 65 |
67 # On iOS and Mac the string resources need to go into a locale subfolder, which | 66 # On iOS and Mac the string resources need to go into a locale subfolder, which |
68 # introduces an extra dependency. | 67 # introduces an extra dependency. |
69 # | |
70 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak | |
71 # (copy_ui_test_pak action) | |
72 if (is_ios || is_mac) { | 68 if (is_ios || is_mac) { |
73 group("ui_test_pak") { | 69 group("ui_test_pak") { |
74 public_deps = [ | 70 public_deps = [ |
75 ":repack_ui_test_mac_locale_pack", | 71 ":repack_ui_test_mac_locale_pack", |
76 ":repack_ui_test_pak", | 72 ":repack_ui_test_pak", |
77 ] | 73 ] |
78 } | 74 } |
79 | 75 |
80 # This needs to be a separate target from ui_test_pak as ui_base_unittests | 76 # This needs to be a separate target from ui_test_pak as ui_base_unittests |
81 # wants the generate .pak file in the bundle to be named en.lpro/locale.pak | 77 # wants the generate .pak file in the bundle to be named en.lpro/locale.pak |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 } | 141 } |
146 | 142 |
147 # This group exists just for targets that need the data file | 143 # This group exists just for targets that need the data file |
148 # to exist in the build directory so it can be loaded for test purposes. | 144 # to exist in the build directory so it can be loaded for test purposes. |
149 group("ui_test_pak_data") { | 145 group("ui_test_pak_data") { |
150 data_deps = [ | 146 data_deps = [ |
151 ":repack_ui_test_pak", | 147 ":repack_ui_test_pak", |
152 ] | 148 ] |
153 } | 149 } |
154 | 150 |
155 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak | |
156 repack("repack_ui_test_pak") { | 151 repack("repack_ui_test_pak") { |
157 # Depend on ui_test_pak or ui_test_pak_data instead of this one. | 152 # Depend on ui_test_pak or ui_test_pak_data instead of this one. |
158 visibility = [ | 153 visibility = [ |
159 ":ui_test_pak", | 154 ":ui_test_pak", |
160 ":ui_test_pak_data", | 155 ":ui_test_pak_data", |
161 ] | 156 ] |
162 | 157 |
163 sources = [ | 158 sources = [ |
164 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", | 159 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", |
165 "$root_gen_dir/ui/resources/webui_resources.pak", | 160 "$root_gen_dir/ui/resources/webui_resources.pak", |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", | 216 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
222 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", | 217 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
223 ] | 218 ] |
224 | 219 |
225 output = "$root_out_dir/ui/en.lproj/locale.pak" | 220 output = "$root_out_dir/ui/en.lproj/locale.pak" |
226 | 221 |
227 deps = [ | 222 deps = [ |
228 "//ui/strings", | 223 "//ui/strings", |
229 ] | 224 ] |
230 } | 225 } |
OLD | NEW |