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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 resource_ids, | 374 resource_ids, |
375 ] | 375 ] |
376 } | 376 } |
377 args += [ | 377 args += [ |
378 "-o", | 378 "-o", |
379 rebased_output_dir, | 379 rebased_output_dir, |
380 "--depdir", | 380 "--depdir", |
381 ".", | 381 ".", |
382 "--depfile", | 382 "--depfile", |
383 rebase_path(depfile, root_build_dir), | 383 rebase_path(depfile, root_build_dir), |
384 "--write-only-new=1" | 384 "--write-only-new=1", |
385 ] + grit_defines | 385 ] + grit_defines |
386 | 386 |
387 # Add extra defines with -D flags. | 387 # Add extra defines with -D flags. |
388 if (defined(invoker.defines)) { | 388 if (defined(invoker.defines)) { |
389 foreach(i, invoker.defines) { | 389 foreach(i, invoker.defines) { |
390 args += [ | 390 args += [ |
391 "-D", | 391 "-D", |
392 i, | 392 i, |
393 ] | 393 ] |
394 } | 394 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 if (defined(invoker.public_configs)) { | 432 if (defined(invoker.public_configs)) { |
433 public_configs += invoker.public_configs | 433 public_configs += invoker.public_configs |
434 } | 434 } |
435 | 435 |
436 if (defined(invoker.visibility)) { | 436 if (defined(invoker.visibility)) { |
437 visibility = invoker.visibility | 437 visibility = invoker.visibility |
438 } | 438 } |
439 output_name = grit_output_name | 439 output_name = grit_output_name |
440 } | 440 } |
441 } | 441 } |
OLD | NEW |