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

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

Issue 581273004: Add template for bundling resources generated by previous grit step (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-java-proto
Patch Set: Created 6 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/android/rules.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("//tools/grit/grit_rule.gni") 5 import("//tools/grit/grit_rule.gni")
6 6
7
8 if (is_android) {
9 import("//build/config/android/rules.gni")
10 android_generated_java_resources = [
11 "java/res/values-am/generated_resources.xml",
12 "java/res/values-ar/generated_resources.xml",
13 "java/res/values-bg/generated_resources.xml",
14 "java/res/values-ca/generated_resources.xml",
15 "java/res/values-cs/generated_resources.xml",
16 "java/res/values-da/generated_resources.xml",
17 "java/res/values-de/generated_resources.xml",
18 "java/res/values-el/generated_resources.xml",
19 "java/res/values-en-rGB/generated_resources.xml",
20 "java/res/values-es-rUS/generated_resources.xml",
21 "java/res/values-es/generated_resources.xml",
22 "java/res/values-fa/generated_resources.xml",
23 "java/res/values-fi/generated_resources.xml",
24 "java/res/values-fr/generated_resources.xml",
25 "java/res/values-hi/generated_resources.xml",
26 "java/res/values-hr/generated_resources.xml",
27 "java/res/values-hu/generated_resources.xml",
28 "java/res/values-in/generated_resources.xml",
29 "java/res/values-it/generated_resources.xml",
30 "java/res/values-iw/generated_resources.xml",
31 "java/res/values-ja/generated_resources.xml",
32 "java/res/values-ko/generated_resources.xml",
33 "java/res/values-lt/generated_resources.xml",
34 "java/res/values-lv/generated_resources.xml",
35 "java/res/values-nb/generated_resources.xml",
36 "java/res/values-nl/generated_resources.xml",
37 "java/res/values-pl/generated_resources.xml",
38 "java/res/values-pt-rBR/generated_resources.xml",
39 "java/res/values-pt-rPT/generated_resources.xml",
40 "java/res/values-ro/generated_resources.xml",
41 "java/res/values-ru/generated_resources.xml",
42 "java/res/values-sk/generated_resources.xml",
43 "java/res/values-sl/generated_resources.xml",
44 "java/res/values-sr/generated_resources.xml",
45 "java/res/values-sv/generated_resources.xml",
46 "java/res/values-sw/generated_resources.xml",
47 "java/res/values-th/generated_resources.xml",
48 "java/res/values-tl/generated_resources.xml",
49 "java/res/values-tr/generated_resources.xml",
50 "java/res/values-uk/generated_resources.xml",
51 "java/res/values-vi/generated_resources.xml",
52 "java/res/values-zh-rCN/generated_resources.xml",
53 "java/res/values-zh-rTW/generated_resources.xml",
54 "java/res/values/generated_resources.xml",
55 ]
56 }
57
7 # GYP version: chrome/chrome_resources.gyp:chrome_strings 58 # GYP version: chrome/chrome_resources.gyp:chrome_strings
8 # (generate_generated_resources action) 59 # (generate_generated_resources action)
9 grit("generated_resources") { 60 grit("generated_resources") {
10 source = "generated_resources.grd" 61 source = "generated_resources.grd"
11 output_dir = "$root_gen_dir/chrome" 62 output_dir = "$root_gen_dir/chrome"
12 use_qualified_include = true 63 use_qualified_include = true
13 outputs = [ 64 outputs = [
14 "grit/generated_resources.h", 65 "grit/generated_resources.h",
15 "generated_resources_am.pak", 66 "generated_resources_am.pak",
16 "generated_resources_ar.pak", 67 "generated_resources_ar.pak",
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 "generated_resources_sw.pak", 111 "generated_resources_sw.pak",
61 "generated_resources_ta.pak", 112 "generated_resources_ta.pak",
62 "generated_resources_te.pak", 113 "generated_resources_te.pak",
63 "generated_resources_th.pak", 114 "generated_resources_th.pak",
64 "generated_resources_tr.pak", 115 "generated_resources_tr.pak",
65 "generated_resources_uk.pak", 116 "generated_resources_uk.pak",
66 "generated_resources_vi.pak", 117 "generated_resources_vi.pak",
67 "generated_resources_zh-CN.pak", 118 "generated_resources_zh-CN.pak",
68 "generated_resources_zh-TW.pak", 119 "generated_resources_zh-TW.pak",
69 ] 120 ]
121
122 if (is_android) {
123 outputs += android_generated_java_resources
124 }
125 }
126
127 if (is_android) {
128 java_strings_grd_prebuilt("java_strings_grd") {
129 grit_output_dir = "$root_gen_dir/chrome/java/res"
130 generated_files = rebase_path(
131 android_generated_java_resources,
132 "java/res",
133 "."
134 )
135 }
70 } 136 }
71 137
72 # GYP version: chrome/chrome_resources.gyp:chrome_strings_map 138 # GYP version: chrome/chrome_resources.gyp:chrome_strings_map
73 action("make_generated_resources_map") { 139 action("make_generated_resources_map") {
74 # Targets should depend on generated_resources_map instead. 140 # Targets should depend on generated_resources_map instead.
75 visibility = [ ":generated_resources_map" ] 141 visibility = [ ":generated_resources_map" ]
76 142
77 script = "//chrome/browser/metrics/variations/generate_resources_map.py" 143 script = "//chrome/browser/metrics/variations/generate_resources_map.py"
78 144
79 inputs = [ "$root_gen_dir/chrome/grit/generated_resources.h" ] 145 inputs = [ "$root_gen_dir/chrome/grit/generated_resources.h" ]
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 ] 312 ]
247 313
248 if (is_mac) { 314 if (is_mac) {
249 sources += [ 315 sources += [
250 "chrome_breakpad_client.cc", 316 "chrome_breakpad_client.cc",
251 "chrome_breakpad_client_mac.mm", 317 "chrome_breakpad_client_mac.mm",
252 "chrome_main_mac.mm", 318 "chrome_main_mac.mm",
253 ] 319 ]
254 } 320 }
255 } 321 }
OLDNEW
« no previous file with comments | « build/config/android/rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698