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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 "-w", rebase_path("//build/ios/grit_whitelist.txt", root_build_dir), | 152 "-w", rebase_path("//build/ios/grit_whitelist.txt", root_build_dir), |
153 ] | 153 ] |
154 } | 154 } |
155 | 155 |
156 if (enable_extensions) { | 156 if (enable_extensions) { |
157 grit_defines += [ "-D", "enable_extensions" ] | 157 grit_defines += [ "-D", "enable_extensions" ] |
158 } | 158 } |
159 if (enable_plugins) { | 159 if (enable_plugins) { |
160 grit_defines += [ "-D", "enable_plugins" ] | 160 grit_defines += [ "-D", "enable_plugins" ] |
161 } | 161 } |
162 if (printing_mode != 0) { | 162 if (enable_basic_printing || enable_print_preview) { |
163 grit_defines += [ "-D", "enable_printing" ] | 163 grit_defines += [ "-D", "enable_printing" ] |
164 if (printing_mode == 1) { | 164 if (enable_print_preview) { |
165 grit_defines += [ "-D", "enable_print_preview" ] | 165 grit_defines += [ "-D", "enable_print_preview" ] |
166 } | 166 } |
167 } | 167 } |
168 if (enable_themes) { | 168 if (enable_themes) { |
169 grit_defines += [ "-D", "enable_themes" ] | 169 grit_defines += [ "-D", "enable_themes" ] |
170 } | 170 } |
171 if (enable_app_list) { | 171 if (enable_app_list) { |
172 grit_defines += [ "-D", "enable_app_list" ] | 172 grit_defines += [ "-D", "enable_app_list" ] |
173 } | 173 } |
174 if (enable_settings_app) { | 174 if (enable_settings_app) { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 if (defined(invoker.public_configs)) { | 333 if (defined(invoker.public_configs)) { |
334 public_configs += invoker.public_configs | 334 public_configs += invoker.public_configs |
335 } | 335 } |
336 | 336 |
337 if (defined(invoker.visibility)) { | 337 if (defined(invoker.visibility)) { |
338 visibility = invoker.visibility | 338 visibility = invoker.visibility |
339 } | 339 } |
340 output_name = grit_output_name | 340 output_name = grit_output_name |
341 } | 341 } |
342 } | 342 } |
OLD | NEW |