| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 config(grit_config) { | 249 config(grit_config) { |
| 250 include_dirs = [ output_dir ] | 250 include_dirs = [ output_dir ] |
| 251 visibility = target_visibility | 251 visibility = target_visibility |
| 252 } | 252 } |
| 253 | 253 |
| 254 grit_custom_target = target_name + "_grit" | 254 grit_custom_target = target_name + "_grit" |
| 255 action(grit_custom_target) { | 255 action(grit_custom_target) { |
| 256 script = "//tools/grit/grit.py" | 256 script = "//tools/grit/grit.py" |
| 257 inputs = grit_inputs | 257 inputs = grit_inputs |
| 258 outputs = grit_outputs | 258 outputs = grit_outputs |
| 259 depfile = "$target_out_dir/${target_name}.d" | 259 depfile = "$output_dir/${target_name}.d" |
| 260 | 260 |
| 261 args = [ | 261 args = [ |
| 262 "-i", source_path, "build", | 262 "-i", source_path, "build", |
| 263 "-f", resource_ids, | 263 "-f", resource_ids, |
| 264 "-o", rebased_output_dir, | 264 "-o", rebased_output_dir, |
| 265 "--depdir", ".", | 265 "--depdir", ".", |
| 266 "--depfile", rebase_path(depfile, root_build_dir), | 266 "--depfile", rebase_path(depfile, root_build_dir), |
| 267 ] + grit_defines | 267 ] + grit_defines |
| 268 | 268 |
| 269 # Add extra defines with -D flags. | 269 # Add extra defines with -D flags. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 296 direct_dependent_configs = [ ":$grit_config" ] | 296 direct_dependent_configs = [ ":$grit_config" ] |
| 297 | 297 |
| 298 if (defined(invoker.visibility)) { | 298 if (defined(invoker.visibility)) { |
| 299 visibility = invoker.visibility | 299 visibility = invoker.visibility |
| 300 } | 300 } |
| 301 if (defined(invoker.output_name)) { | 301 if (defined(invoker.output_name)) { |
| 302 output_name = invoker.output_name | 302 output_name = invoker.output_name |
| 303 } | 303 } |
| 304 } | 304 } |
| 305 } | 305 } |
| OLD | NEW |