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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 grit_defines += [ | 181 grit_defines += [ |
182 "-D", | 182 "-D", |
183 "scale_factors=2x", | 183 "scale_factors=2x", |
184 ] | 184 ] |
185 } | 185 } |
186 | 186 |
187 if (is_ios) { | 187 if (is_ios) { |
188 grit_defines += [ | 188 grit_defines += [ |
189 "-t", | 189 "-t", |
190 "ios", | 190 "ios", |
191 | |
192 # iOS uses a whitelist to filter resources. | |
193 "-w", | |
194 rebase_path("//build/ios/grit_whitelist.txt", root_build_dir), | |
195 ] | 191 ] |
196 } | 192 } |
197 | 193 |
198 if (enable_extensions) { | 194 if (enable_extensions) { |
199 grit_defines += [ | 195 grit_defines += [ |
200 "-D", | 196 "-D", |
201 "enable_extensions", | 197 "enable_extensions", |
202 ] | 198 ] |
203 } | 199 } |
204 if (enable_media_router) { | 200 if (enable_media_router) { |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 if (defined(invoker.configs)) { | 467 if (defined(invoker.configs)) { |
472 configs += invoker.configs | 468 configs += invoker.configs |
473 } | 469 } |
474 | 470 |
475 if (defined(invoker.visibility)) { | 471 if (defined(invoker.visibility)) { |
476 visibility = invoker.visibility | 472 visibility = invoker.visibility |
477 } | 473 } |
478 output_name = grit_output_name | 474 output_name = grit_output_name |
479 } | 475 } |
480 } | 476 } |
OLD | NEW |