Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Side by Side Diff: chrome/android/BUILD.gn

Issue 2371053002: GN(android): Use foreach() loops when dealing with locales (Closed)
Patch Set: rename to android_chrome_omitted_locales Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/locales.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/android/rules.gni") 6 import("//build/config/android/rules.gni")
7 import("//build/util/process_version.gni") 7 import("//build/util/process_version.gni")
8 import("//build_overrides/v8.gni") 8 import("//build_overrides/v8.gni")
9 import("//chrome/android/chrome_public_apk_tmpl.gni") 9 import("//chrome/android/chrome_public_apk_tmpl.gni")
10 import("//chrome/chrome_paks.gni") 10 import("//chrome/chrome_paks.gni")
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 input = "java/AndroidManifest.xml" 60 input = "java/AndroidManifest.xml"
61 output = chrome_sync_shell_android_manifest 61 output = chrome_sync_shell_android_manifest
62 variables = chrome_sync_shell_jinja_variables 62 variables = chrome_sync_shell_jinja_variables
63 variables += [ 63 variables += [
64 "min_sdk_version=16", 64 "min_sdk_version=16",
65 "target_sdk_version=22", 65 "target_sdk_version=22",
66 ] 66 ]
67 } 67 }
68 68
69 locale_pak_resources("chrome_locale_paks") { 69 locale_pak_resources("chrome_locale_paks") {
70 sources = [ 70 sources = []
71 "$root_out_dir/locales/am.pak", 71 foreach(_locale, locales - android_chrome_omitted_locales) {
72 "$root_out_dir/locales/ar.pak", 72 sources += [ "$root_out_dir/locales/$_locale.pak" ]
73 "$root_out_dir/locales/bg.pak", 73 }
74 "$root_out_dir/locales/ca.pak",
75 "$root_out_dir/locales/cs.pak",
76 "$root_out_dir/locales/da.pak",
77 "$root_out_dir/locales/de.pak",
78 "$root_out_dir/locales/el.pak",
79 "$root_out_dir/locales/en-GB.pak",
80 "$root_out_dir/locales/en-US.pak",
81 "$root_out_dir/locales/es-419.pak",
82 "$root_out_dir/locales/es.pak",
83 "$root_out_dir/locales/fa.pak",
84 "$root_out_dir/locales/fi.pak",
85 "$root_out_dir/locales/fil.pak",
86 "$root_out_dir/locales/fr.pak",
87 "$root_out_dir/locales/he.pak",
88 "$root_out_dir/locales/hi.pak",
89 "$root_out_dir/locales/hr.pak",
90 "$root_out_dir/locales/hu.pak",
91 "$root_out_dir/locales/id.pak",
92 "$root_out_dir/locales/it.pak",
93 "$root_out_dir/locales/ja.pak",
94 "$root_out_dir/locales/ko.pak",
95 "$root_out_dir/locales/lt.pak",
96 "$root_out_dir/locales/lv.pak",
97 "$root_out_dir/locales/nb.pak",
98 "$root_out_dir/locales/nl.pak",
99 "$root_out_dir/locales/pl.pak",
100 "$root_out_dir/locales/pt-BR.pak",
101 "$root_out_dir/locales/pt-PT.pak",
102 "$root_out_dir/locales/ro.pak",
103 "$root_out_dir/locales/ru.pak",
104 "$root_out_dir/locales/sk.pak",
105 "$root_out_dir/locales/sl.pak",
106 "$root_out_dir/locales/sr.pak",
107 "$root_out_dir/locales/sv.pak",
108 "$root_out_dir/locales/sw.pak",
109 "$root_out_dir/locales/th.pak",
110 "$root_out_dir/locales/tr.pak",
111 "$root_out_dir/locales/uk.pak",
112 "$root_out_dir/locales/vi.pak",
113 "$root_out_dir/locales/zh-CN.pak",
114 "$root_out_dir/locales/zh-TW.pak",
115 ]
116 74
117 deps = [ 75 deps = [
118 "//chrome:packed_resources", 76 "//chrome:packed_resources",
119 ] 77 ]
120 } 78 }
121 79
122 android_resources("chrome_java_resources") { 80 android_resources("chrome_java_resources") {
123 resource_dirs = [ 81 resource_dirs = [
124 "java/res", 82 "java/res",
125 "//chrome/android/java/res_chromium", 83 "//chrome/android/java/res_chromium",
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 instrumentation_test_apk("chrome_sync_shell_test_apk") { 739 instrumentation_test_apk("chrome_sync_shell_test_apk") {
782 apk_name = "ChromeSyncShellTest" 740 apk_name = "ChromeSyncShellTest"
783 apk_under_test = ":chrome_sync_shell_apk" 741 apk_under_test = ":chrome_sync_shell_apk"
784 android_manifest = chrome_sync_shell_test_apk_manifest 742 android_manifest = chrome_sync_shell_test_apk_manifest
785 android_manifest_dep = ":chrome_sync_shell_test_apk_manifest" 743 android_manifest_dep = ":chrome_sync_shell_test_apk_manifest"
786 deps = [ 744 deps = [
787 ":chrome_sync_shell_test_apk_java", 745 ":chrome_sync_shell_test_apk_java",
788 ] 746 ]
789 proguard_enabled = !is_java_debug 747 proguard_enabled = !is_java_debug
790 } 748 }
OLDNEW
« no previous file with comments | « build/config/locales.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698