OLD | NEW |
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 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
9 android_generated_java_resources = [ | 9 android_generated_java_resources = [ |
10 "java/res/values-am/generated_resources.xml", | 10 "java/res/values-am/generated_resources.xml", |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 java_strings_grd_prebuilt("java_strings_grd") { | 127 java_strings_grd_prebuilt("java_strings_grd") { |
128 grit_output_dir = "$root_gen_dir/chrome/java/res" | 128 grit_output_dir = "$root_gen_dir/chrome/java/res" |
129 generated_files = | 129 generated_files = |
130 rebase_path(android_generated_java_resources, "java/res", ".") | 130 rebase_path(android_generated_java_resources, "java/res", ".") |
131 deps = [ | 131 deps = [ |
132 ":generated_resources", | 132 ":generated_resources", |
133 ] | 133 ] |
134 } | 134 } |
135 } | 135 } |
136 | 136 |
137 # GYP version: chrome/chrome_resources.gyp:chrome_strings_map | |
138 action("make_generated_resources_map") { | |
139 # Targets should depend on generated_resources_map instead. | |
140 visibility = [ ":generated_resources_map" ] | |
141 | |
142 script = "//chrome/browser/metrics/variations/generate_resources_map.py" | |
143 | |
144 inputs = [ | |
145 "$root_gen_dir/chrome/grit/generated_resources.h", | |
146 ] | |
147 outputs = [ | |
148 "$root_gen_dir/chrome/generated_resources_map.cc", | |
149 ] | |
150 | |
151 args = | |
152 rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir) | |
153 | |
154 deps = [ | |
155 ":generated_resources", | |
156 ] | |
157 } | |
158 | |
159 # Collect the generated .cc file from make_generated_resources_map and put it | |
160 # in a source set so targets that depend on it will link the source rather than | |
161 # specifying it manually. This doesn't happen in the GYP build. | |
162 source_set("generated_resources_map") { | |
163 sources = get_target_outputs(":make_generated_resources_map") | |
164 deps = [ | |
165 ":make_generated_resources_map", | |
166 ] | |
167 } | |
168 | |
169 # GYP version: chrome/chrome_resources.gyp:chrome_strings | 137 # GYP version: chrome/chrome_resources.gyp:chrome_strings |
170 # (generate_google_chrome_strings action) | 138 # (generate_google_chrome_strings action) |
171 grit("google_chrome_strings") { | 139 grit("google_chrome_strings") { |
172 source = "google_chrome_strings.grd" | 140 source = "google_chrome_strings.grd" |
173 output_dir = "$root_gen_dir/chrome" | 141 output_dir = "$root_gen_dir/chrome" |
174 use_qualified_include = true | 142 use_qualified_include = true |
175 outputs = [ | 143 outputs = [ |
176 "grit/google_chrome_strings.h", | 144 "grit/google_chrome_strings.h", |
177 "google_chrome_strings_am.pak", | 145 "google_chrome_strings_am.pak", |
178 "google_chrome_strings_ar.pak", | 146 "google_chrome_strings_ar.pak", |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 ] | 289 ] |
322 | 290 |
323 if (is_mac) { | 291 if (is_mac) { |
324 sources += [ "chrome_main_mac.mm" ] | 292 sources += [ "chrome_main_mac.mm" ] |
325 } | 293 } |
326 | 294 |
327 if (enable_plugins && enable_nacl) { | 295 if (enable_plugins && enable_nacl) { |
328 deps += [ "//components/nacl/renderer/plugin:nacl_trusted_plugin" ] | 296 deps += [ "//components/nacl/renderer/plugin:nacl_trusted_plugin" ] |
329 } | 297 } |
330 } | 298 } |
OLD | NEW |