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 import("//tools/grit/repack.gni") | 5 import("//tools/grit/repack.gni") |
6 import("webview_repack_locales_list.gni") | 6 import("webview_repack_locales_list.gni") |
7 | 7 |
8 # Wraps repack_locales(), setting the source_patterns and deps required for | 8 # Wraps repack_locales(), setting the source_patterns and deps required for |
9 # Chrome. | 9 # Chrome. |
10 template("webview_repack_locales") { | 10 template("webview_repack_locales") { |
11 repack_locales(target_name) { | 11 repack_locales(target_name) { |
12 forward_variables_from(invoker, "*") | 12 forward_variables_from(invoker, "*") |
| 13 if (!defined(deps)) { |
| 14 deps = [] |
| 15 } |
13 | 16 |
14 # Adding webview specific pak file? You should add it to | 17 # Adding webview specific pak file? You should add it to |
15 # webview_repack_locales_source_patterns, so it is also included in | 18 # webview_repack_locales_source_patterns, so it is also included in |
16 # Monochrome. | 19 # Monochrome. |
17 | 20 |
18 source_patterns = [ | 21 source_patterns = [ |
19 "${root_gen_dir}/android_webview/components_strings_", | 22 "${root_gen_dir}/android_webview/components_strings_", |
20 "${root_gen_dir}/content/app/strings/content_strings_", | 23 "${root_gen_dir}/content/app/strings/content_strings_", |
21 "${root_gen_dir}/ui/strings/app_locale_settings_", | 24 "${root_gen_dir}/ui/strings/app_locale_settings_", |
22 ] | 25 ] |
23 deps = [ | 26 deps += [ |
24 "//android_webview:generate_components_strings", | 27 "//android_webview:generate_components_strings", |
25 "//content/app/strings", | 28 "//content/app/strings", |
26 "//ui/strings:app_locale_settings", | 29 "//ui/strings:app_locale_settings", |
27 ] | 30 ] |
28 source_patterns += webview_repack_locales_source_patterns | 31 source_patterns += webview_repack_locales_source_patterns |
29 deps += webview_repack_locales_deps | 32 deps += webview_repack_locales_deps |
30 output_dir = "$root_out_dir/android_webview/locales" | 33 output_dir = "$root_out_dir/android_webview/locales" |
31 } | 34 } |
32 } | 35 } |
OLD | NEW |