| 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 | 10 # source |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 # (like "mycomponent/foo.h"). This config sets up the include path. | 202 # (like "mycomponent/foo.h"). This config sets up the include path. |
| 203 grit_config = target_name + "_grit_config" | 203 grit_config = target_name + "_grit_config" |
| 204 config(grit_config) { | 204 config(grit_config) { |
| 205 include_dirs = [ target_gen_dir ] | 205 include_dirs = [ target_gen_dir ] |
| 206 visibility = target_visibility | 206 visibility = target_visibility |
| 207 } | 207 } |
| 208 | 208 |
| 209 grit_custom_target = target_name + "_grit" | 209 grit_custom_target = target_name + "_grit" |
| 210 action(grit_custom_target) { | 210 action(grit_custom_target) { |
| 211 script = "//tools/grit/grit.py" | 211 script = "//tools/grit/grit.py" |
| 212 source_prereqs = grit_inputs | 212 inputs = grit_inputs |
| 213 outputs = grit_outputs | 213 outputs = grit_outputs |
| 214 | 214 |
| 215 args = [ | 215 args = [ |
| 216 "-i", source_path, "build", | 216 "-i", source_path, "build", |
| 217 "-f", resource_ids, | 217 "-f", resource_ids, |
| 218 "-o", output_dir, | 218 "-o", output_dir, |
| 219 ] + grit_defines + grit_flags | 219 ] + grit_defines + grit_flags |
| 220 | 220 |
| 221 visibility = target_visibility | 221 visibility = target_visibility |
| 222 | 222 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 238 direct_dependent_configs = [ ":$grit_config" ] | 238 direct_dependent_configs = [ ":$grit_config" ] |
| 239 | 239 |
| 240 if (defined(invoker.visibility)) { | 240 if (defined(invoker.visibility)) { |
| 241 visibility = invoker.visibility | 241 visibility = invoker.visibility |
| 242 } | 242 } |
| 243 if (defined(invoker.output_name)) { | 243 if (defined(invoker.output_name)) { |
| 244 output_name = invoker.output_name | 244 output_name = invoker.output_name |
| 245 } | 245 } |
| 246 } | 246 } |
| 247 } | 247 } |
| OLD | NEW |