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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 # files. Normally these are based on the target name and go in the | 49 # files. Normally these are based on the target name and go in the |
50 # output_dir, but if multiple targets with the same name end up in | 50 # output_dir, but if multiple targets with the same name end up in |
51 # the same output_dir, they can collide. | 51 # the same output_dir, they can collide. |
52 # | 52 # |
53 # use_qualified_include (optional) | 53 # use_qualified_include (optional) |
54 # If set, output_dir is not added to include_dirs. | 54 # If set, output_dir is not added to include_dirs. |
55 # | 55 # |
56 # deps (optional) | 56 # deps (optional) |
57 # inputs (optional) | 57 # inputs (optional) |
58 # List of additional files, required for grit to process source file. | 58 # List of additional files, required for grit to process source file. |
59 # visibility (optional) | 59 # visibility (optional) |
brettw
2015/02/23 18:36:21
configs should be documented here. Be sure to make
Dirk Pranke
2015/02/23 19:17:43
Good catch. Will do.
| |
60 # Normal meaning. | 60 # Normal meaning. |
61 # | 61 # |
62 # Example | 62 # Example |
63 # | 63 # |
64 # grit("my_resources") { | 64 # grit("my_resources") { |
65 # # Source and outputs are required. | 65 # # Source and outputs are required. |
66 # source = "myfile.grd" | 66 # source = "myfile.grd" |
67 # outputs = [ | 67 # outputs = [ |
68 # "foo_strings.h", | 68 # "foo_strings.h", |
69 # "foo_strings.pak", | 69 # "foo_strings.pak", |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
431 # target rather than this library. | 431 # target rather than this library. |
432 deps = [ | 432 deps = [ |
433 ":$grit_custom_target", | 433 ":$grit_custom_target", |
434 ] | 434 ] |
435 public_configs = [ ":$grit_config" ] | 435 public_configs = [ ":$grit_config" ] |
436 | 436 |
437 if (defined(invoker.public_configs)) { | 437 if (defined(invoker.public_configs)) { |
438 public_configs += invoker.public_configs | 438 public_configs += invoker.public_configs |
439 } | 439 } |
440 | 440 |
441 if (defined(invoker.configs)) { | |
442 configs += invoker.configs | |
443 } | |
444 | |
441 if (defined(invoker.visibility)) { | 445 if (defined(invoker.visibility)) { |
442 visibility = invoker.visibility | 446 visibility = invoker.visibility |
443 } | 447 } |
444 output_name = grit_output_name | 448 output_name = grit_output_name |
445 } | 449 } |
446 } | 450 } |
OLD | NEW |