Index: chrome/app/BUILD.gn |
diff --git a/chrome/app/BUILD.gn b/chrome/app/BUILD.gn |
index d4b35e287d6c09336e5c553932feeb77e82ae824..dbc8c7c50757bf5d23a1b19f3f487e5b54711aee 100644 |
--- a/chrome/app/BUILD.gn |
+++ b/chrome/app/BUILD.gn |
@@ -4,6 +4,57 @@ |
import("//tools/grit/grit_rule.gni") |
+ |
+if (is_android) { |
+ import("//build/config/android/rules.gni") |
+ android_generated_java_resources = [ |
+ "java/res/values-am/generated_resources.xml", |
+ "java/res/values-ar/generated_resources.xml", |
+ "java/res/values-bg/generated_resources.xml", |
+ "java/res/values-ca/generated_resources.xml", |
+ "java/res/values-cs/generated_resources.xml", |
+ "java/res/values-da/generated_resources.xml", |
+ "java/res/values-de/generated_resources.xml", |
+ "java/res/values-el/generated_resources.xml", |
+ "java/res/values-en-rGB/generated_resources.xml", |
+ "java/res/values-es-rUS/generated_resources.xml", |
+ "java/res/values-es/generated_resources.xml", |
+ "java/res/values-fa/generated_resources.xml", |
+ "java/res/values-fi/generated_resources.xml", |
+ "java/res/values-fr/generated_resources.xml", |
+ "java/res/values-hi/generated_resources.xml", |
+ "java/res/values-hr/generated_resources.xml", |
+ "java/res/values-hu/generated_resources.xml", |
+ "java/res/values-in/generated_resources.xml", |
+ "java/res/values-it/generated_resources.xml", |
+ "java/res/values-iw/generated_resources.xml", |
+ "java/res/values-ja/generated_resources.xml", |
+ "java/res/values-ko/generated_resources.xml", |
+ "java/res/values-lt/generated_resources.xml", |
+ "java/res/values-lv/generated_resources.xml", |
+ "java/res/values-nb/generated_resources.xml", |
+ "java/res/values-nl/generated_resources.xml", |
+ "java/res/values-pl/generated_resources.xml", |
+ "java/res/values-pt-rBR/generated_resources.xml", |
+ "java/res/values-pt-rPT/generated_resources.xml", |
+ "java/res/values-ro/generated_resources.xml", |
+ "java/res/values-ru/generated_resources.xml", |
+ "java/res/values-sk/generated_resources.xml", |
+ "java/res/values-sl/generated_resources.xml", |
+ "java/res/values-sr/generated_resources.xml", |
+ "java/res/values-sv/generated_resources.xml", |
+ "java/res/values-sw/generated_resources.xml", |
+ "java/res/values-th/generated_resources.xml", |
+ "java/res/values-tl/generated_resources.xml", |
+ "java/res/values-tr/generated_resources.xml", |
+ "java/res/values-uk/generated_resources.xml", |
+ "java/res/values-vi/generated_resources.xml", |
+ "java/res/values-zh-rCN/generated_resources.xml", |
+ "java/res/values-zh-rTW/generated_resources.xml", |
+ "java/res/values/generated_resources.xml", |
+ ] |
+} |
+ |
# GYP version: chrome/chrome_resources.gyp:chrome_strings |
# (generate_generated_resources action) |
grit("generated_resources") { |
@@ -67,6 +118,21 @@ grit("generated_resources") { |
"generated_resources_zh-CN.pak", |
"generated_resources_zh-TW.pak", |
] |
+ |
+ if (is_android) { |
+ outputs += android_generated_java_resources |
+ } |
+} |
+ |
+if (is_android) { |
+ java_strings_grd_prebuilt("java_strings_grd") { |
+ grit_output_dir = "$root_gen_dir/chrome/java/res" |
+ generated_files = rebase_path( |
+ android_generated_java_resources, |
+ "java/res", |
+ "." |
+ ) |
+ } |
} |
# GYP version: chrome/chrome_resources.gyp:chrome_strings_map |