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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//tools/grit/repack.gni") | 7 import("//tools/grit/repack.gni") |
8 | 8 |
9 # Arguments: | 9 # Arguments: |
10 # | 10 # |
11 # locale | 11 # locale |
12 # Internal name of locale. e.g. "pt-BR" | 12 # Internal name of locale. e.g. "pt-BR" |
13 # | 13 # |
14 # output | 14 # output |
15 # Output file name. | 15 # Output file name. |
16 # | 16 # |
17 # visibility | 17 # visibility |
18 # Normal meaning. | 18 # Normal meaning. |
19 template("_repack_one_locale") { | 19 template("_repack_one_locale") { |
20 locale = invoker.locale | 20 locale = invoker.locale |
21 | 21 |
22 repack(target_name) { | 22 repack(target_name) { |
23 visibility = invoker.visibility | 23 visibility = invoker.visibility |
24 | 24 |
25 # Each input pak file should also have a deps line for completeness. | 25 # Each input pak file should also have a deps line for completeness. |
26 sources = [ | 26 sources = [ |
27 "${root_gen_dir}/chrome/platform_locale_settings_${locale}.pak", | |
28 "${root_gen_dir}/chrome/generated_resources_${locale}.pak", | 27 "${root_gen_dir}/chrome/generated_resources_${locale}.pak", |
29 "${root_gen_dir}/chrome/locale_settings_${locale}.pak", | 28 "${root_gen_dir}/chrome/locale_settings_${locale}.pak", |
| 29 "${root_gen_dir}/chrome/platform_locale_settings_${locale}.pak", |
30 "${root_gen_dir}/components/strings/components_strings_${locale}.pak", | 30 "${root_gen_dir}/components/strings/components_strings_${locale}.pak", |
31 ] | 31 ] |
32 deps = [ | 32 deps = [ |
33 "//chrome/app/resources:platform_locale_settings", | 33 "//chrome/app/resources:platform_locale_settings", |
34 "//chrome/app:generated_resources", | 34 "//chrome/app:generated_resources", |
35 "//chrome/app/resources:locale_settings", | 35 "//chrome/app/resources:locale_settings", |
36 "//components/strings", | 36 "//components/strings", |
37 ] | 37 ] |
38 | 38 |
39 if (use_ash) { | 39 if (use_ash) { |
40 sources += [ "${root_gen_dir}/ash/strings/ash_strings_${locale}.pak" ] | 40 sources += [ "${root_gen_dir}/ash/strings/ash_strings_${locale}.pak" ] |
41 deps += [ "//ash/strings" ] | 41 deps += [ "//ash/strings" ] |
42 } | 42 } |
43 if (is_chromeos) { | 43 if (is_chromeos) { |
44 sources += [ | 44 sources += [ |
| 45 "${root_gen_dir}/remoting/resources/${locale}.pak", |
45 "${root_gen_dir}/ui/chromeos/strings/ui_chromeos_strings_${locale}.pak", | 46 "${root_gen_dir}/ui/chromeos/strings/ui_chromeos_strings_${locale}.pak", |
46 "${root_gen_dir}/remoting/resources/${locale}.pak", | |
47 ] | 47 ] |
48 deps += [ | 48 deps += [ |
49 "//remoting/resources", | 49 "//remoting/resources", |
50 "//ui/chromeos/strings", | 50 "//ui/chromeos/strings", |
51 ] | 51 ] |
52 } | 52 } |
53 if (!is_ios) { | 53 if (!is_ios) { |
54 sources += [ | 54 sources += [ |
55 "${root_gen_dir}/content/app/strings/content_strings_${locale}.pak", | 55 "${root_gen_dir}/content/app/strings/content_strings_${locale}.pak", |
| 56 "${root_gen_dir}/ui/strings/app_locale_settings_${locale}.pak", |
56 "${root_gen_dir}/ui/strings/ui_strings_${locale}.pak", | 57 "${root_gen_dir}/ui/strings/ui_strings_${locale}.pak", |
57 "${root_gen_dir}/ui/strings/app_locale_settings_${locale}.pak", | |
58 ] | 58 ] |
59 deps += [ | 59 deps += [ |
60 "//content/app/strings", | 60 "//content/app/strings", |
61 "//ui/strings:ui_strings", | 61 "//ui/strings:ui_strings", |
62 "//ui/strings:app_locale_settings", | 62 "//ui/strings:app_locale_settings", |
63 ] | 63 ] |
64 } | 64 } |
65 if (enable_autofill_dialog) { | 65 if (enable_autofill_dialog) { |
66 sources += [ "${root_gen_dir}/third_party/libaddressinput/address_input_st
rings_${locale}.pak" ] | 66 sources += [ "${root_gen_dir}/third_party/libaddressinput/address_input_st
rings_${locale}.pak" ] |
67 deps += [ "//third_party/libaddressinput:strings" ] | 67 deps += [ "//third_party/libaddressinput:strings" ] |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 } | 153 } |
154 | 154 |
155 # The group that external targets depend on which collects all deps. | 155 # The group that external targets depend on which collects all deps. |
156 group(group_target_name) { | 156 group(group_target_name) { |
157 if (defined(invoker.visibility)) { | 157 if (defined(invoker.visibility)) { |
158 visibility = invoker.visibility | 158 visibility = invoker.visibility |
159 } | 159 } |
160 deps = locale_targets | 160 deps = locale_targets |
161 } | 161 } |
162 } | 162 } |
OLD | NEW |