| 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 # 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 # This is the thing that people actually link with, it must be named the | 321 # This is the thing that people actually link with, it must be named the |
| 322 # same as the argument the template was invoked with. | 322 # same as the argument the template was invoked with. |
| 323 source_set(target_name) { | 323 source_set(target_name) { |
| 324 # Since we generate a file, we need to be run before the targets that | 324 # Since we generate a file, we need to be run before the targets that |
| 325 # depend on us. | 325 # depend on us. |
| 326 sources = grit_outputs | 326 sources = grit_outputs |
| 327 | 327 |
| 328 # Deps set on the template invocation will go on the grit script running | 328 # Deps set on the template invocation will go on the grit script running |
| 329 # target rather than this library. | 329 # target rather than this library. |
| 330 deps = [ ":$grit_custom_target" ] | 330 deps = [ ":$grit_custom_target" ] |
| 331 direct_dependent_configs = [ ":$grit_config" ] | 331 public_configs = [ ":$grit_config" ] |
| 332 | 332 |
| 333 if (defined(invoker.visibility)) { | 333 if (defined(invoker.visibility)) { |
| 334 visibility = invoker.visibility | 334 visibility = invoker.visibility |
| 335 } | 335 } |
| 336 output_name = grit_output_name | 336 output_name = grit_output_name |
| 337 } | 337 } |
| 338 } | 338 } |
| OLD | NEW |