| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 # source = "myfile.grd" | 68 # source = "myfile.grd" |
| 69 # outputs = [ | 69 # outputs = [ |
| 70 # "foo_strings.h", | 70 # "foo_strings.h", |
| 71 # "foo_strings.pak", | 71 # "foo_strings.pak", |
| 72 # ] | 72 # ] |
| 73 # | 73 # |
| 74 # grit_flags = [ "-E", "foo=bar" ] # Optional extra flags. | 74 # grit_flags = [ "-E", "foo=bar" ] # Optional extra flags. |
| 75 # # You can also put deps here if the grit source depends on generated | 75 # # You can also put deps here if the grit source depends on generated |
| 76 # # files. | 76 # # files. |
| 77 # } | 77 # } |
| 78 import("//build/config/chrome_build.gni") | |
| 79 import("//build/config/crypto.gni") | 78 import("//build/config/crypto.gni") |
| 80 import("//build/config/features.gni") | 79 import("//build/config/features.gni") |
| 81 import("//build/config/ui.gni") | 80 import("//build/config/ui.gni") |
| 82 | 81 |
| 83 grit_defines = [] | 82 grit_defines = [] |
| 84 | 83 |
| 85 # Mac and iOS want Title Case strings. | 84 # Mac and iOS want Title Case strings. |
| 86 use_titlecase_in_grd_files = is_mac || is_ios | 85 use_titlecase_in_grd_files = is_mac || is_ios |
| 87 if (use_titlecase_in_grd_files) { | 86 if (use_titlecase_in_grd_files) { |
| 88 grit_defines += [ | 87 grit_defines += [ |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 if (defined(invoker.configs)) { | 458 if (defined(invoker.configs)) { |
| 460 configs += invoker.configs | 459 configs += invoker.configs |
| 461 } | 460 } |
| 462 | 461 |
| 463 if (defined(invoker.visibility)) { | 462 if (defined(invoker.visibility)) { |
| 464 visibility = invoker.visibility | 463 visibility = invoker.visibility |
| 465 } | 464 } |
| 466 output_name = grit_output_name | 465 output_name = grit_output_name |
| 467 } | 466 } |
| 468 } | 467 } |
| OLD | NEW |