OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # This is a copy of src/chrome/chrome_repack_locales.gni with the necessary | 5 # This is a copy of src/chrome/chrome_repack_locales.gni with the necessary |
6 # modifications to meet WebView's requirement. | 6 # modifications to meet WebView's requirement. |
7 | 7 |
8 import("//build/config/chrome_build.gni") | 8 import("//build/config/chrome_build.gni") |
9 import("//build/config/features.gni") | 9 import("//build/config/features.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 17 matching lines...) Expand all Loading... |
28 visibility = invoker.visibility | 28 visibility = invoker.visibility |
29 | 29 |
30 # Adding webview specific pak file? You should add it to | 30 # Adding webview specific pak file? You should add it to |
31 # webview_repack_locales_source_patterns, so it is also included in | 31 # webview_repack_locales_source_patterns, so it is also included in |
32 # Monochrome. | 32 # Monochrome. |
33 | 33 |
34 # Each input pak file should also have a deps line for completeness. | 34 # Each input pak file should also have a deps line for completeness. |
35 sources = [ | 35 sources = [ |
36 "${root_gen_dir}/android_webview/components_strings_${locale}.pak", | 36 "${root_gen_dir}/android_webview/components_strings_${locale}.pak", |
37 "${root_gen_dir}/content/app/strings/content_strings_${locale}.pak", | 37 "${root_gen_dir}/content/app/strings/content_strings_${locale}.pak", |
| 38 "${root_gen_dir}/ui/strings/app_locale_settings_${locale}.pak", |
38 ] | 39 ] |
39 deps = [ | 40 deps = [ |
40 "//android_webview:generate_components_strings", | 41 "//android_webview:generate_components_strings", |
41 "//content/app/strings", | 42 "//content/app/strings", |
| 43 "//ui/strings:app_locale_settings", |
42 ] | 44 ] |
43 sources += process_file_template(webview_repack_locales_source_patterns, | 45 sources += process_file_template(webview_repack_locales_source_patterns, |
44 [ "{{source}}_${locale}.pak" ]) | 46 [ "{{source}}_${locale}.pak" ]) |
45 deps += webview_repack_locales_deps | 47 deps += webview_repack_locales_deps |
46 output = invoker.output | 48 output = invoker.output |
47 } | 49 } |
48 } | 50 } |
49 | 51 |
50 # Creates an action to call the repack_locales script. | 52 # Creates an action to call the repack_locales script. |
51 # | 53 # |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 101 |
100 current_index = current_index + 1 | 102 current_index = current_index + 1 |
101 } | 103 } |
102 | 104 |
103 # The group that external targets depend on which collects all deps. | 105 # The group that external targets depend on which collects all deps. |
104 group(group_target_name) { | 106 group(group_target_name) { |
105 forward_variables_from(invoker, [ "visibility" ]) | 107 forward_variables_from(invoker, [ "visibility" ]) |
106 public_deps = locale_targets | 108 public_deps = locale_targets |
107 } | 109 } |
108 } | 110 } |
OLD | NEW |