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

Side by Side Diff: tools/grit/grit_rule.gni

Issue 2004143002: Retry of 2b0e51237fa07b4fb9f6c20edcefce094f6cf5f5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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 # Instantiate grit. This will produce a script target to run grit, and a 5 # Instantiate grit. This will produce a script target to run grit, and a
6 # static library that compiles the .cc files. 6 # static library that compiles the .cc files.
7 # 7 #
8 # Parameters 8 # Parameters
9 # 9 #
10 # source (required) 10 # source (required)
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 "-D", 298 "-D",
299 "enable_service_discovery", 299 "enable_service_discovery",
300 ] 300 ]
301 } 301 }
302 if (mac_views_browser) { 302 if (mac_views_browser) {
303 grit_defines += [ 303 grit_defines += [
304 "-D", 304 "-D",
305 "mac_views_browser", 305 "mac_views_browser",
306 ] 306 ]
307 } 307 }
308 if (enable_topchrome_md) {
309 grit_defines += [
310 "-D",
311 "enable_topchrome_md",
312 ]
313 }
314 308
315 grit_resource_id_file = "//tools/gritsettings/resource_ids" 309 grit_resource_id_file = "//tools/gritsettings/resource_ids"
316 grit_info_script = "//tools/grit/grit_info.py" 310 grit_info_script = "//tools/grit/grit_info.py"
317 311
318 template("grit") { 312 template("grit") {
319 assert(defined(invoker.source), 313 assert(defined(invoker.source),
320 "\"source\" must be defined for the grit template $target_name") 314 "\"source\" must be defined for the grit template $target_name")
321 315
322 grit_inputs = [ invoker.source ] 316 grit_inputs = [ invoker.source ]
323 317
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 if (defined(invoker.configs)) { 492 if (defined(invoker.configs)) {
499 configs += invoker.configs 493 configs += invoker.configs
500 } 494 }
501 495
502 if (defined(invoker.visibility)) { 496 if (defined(invoker.visibility)) {
503 visibility = invoker.visibility 497 visibility = invoker.visibility
504 } 498 }
505 output_name = grit_output_name 499 output_name = grit_output_name
506 } 500 }
507 } 501 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698