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") |
78 import("//build/config/crypto.gni") | 79 import("//build/config/crypto.gni") |
79 import("//build/config/features.gni") | 80 import("//build/config/features.gni") |
80 import("//build/config/ui.gni") | 81 import("//build/config/ui.gni") |
81 | 82 |
82 grit_defines = [] | 83 grit_defines = [] |
83 | 84 |
84 # Mac and iOS want Title Case strings. | 85 # Mac and iOS want Title Case strings. |
85 use_titlecase_in_grd_files = is_mac || is_ios | 86 use_titlecase_in_grd_files = is_mac || is_ios |
86 if (use_titlecase_in_grd_files) { | 87 if (use_titlecase_in_grd_files) { |
87 grit_defines += [ | 88 grit_defines += [ |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 if (defined(invoker.configs)) { | 459 if (defined(invoker.configs)) { |
459 configs += invoker.configs | 460 configs += invoker.configs |
460 } | 461 } |
461 | 462 |
462 if (defined(invoker.visibility)) { | 463 if (defined(invoker.visibility)) { |
463 visibility = invoker.visibility | 464 visibility = invoker.visibility |
464 } | 465 } |
465 output_name = grit_output_name | 466 output_name = grit_output_name |
466 } | 467 } |
467 } | 468 } |
OLD | NEW |