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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 "-D", | 278 "-D", |
279 "enable_wifi_bootstrapping", | 279 "enable_wifi_bootstrapping", |
280 ] | 280 ] |
281 } | 281 } |
282 if (enable_service_discovery) { | 282 if (enable_service_discovery) { |
283 grit_defines += [ | 283 grit_defines += [ |
284 "-D", | 284 "-D", |
285 "enable_service_discovery", | 285 "enable_service_discovery", |
286 ] | 286 ] |
287 } | 287 } |
| 288 if (mac_views_browser) { |
| 289 grit_defines += [ |
| 290 "-D", |
| 291 "mac_views_browser", |
| 292 ] |
| 293 } |
288 | 294 |
289 grit_resource_id_file = "//tools/gritsettings/resource_ids" | 295 grit_resource_id_file = "//tools/gritsettings/resource_ids" |
290 grit_info_script = "//tools/grit/grit_info.py" | 296 grit_info_script = "//tools/grit/grit_info.py" |
291 | 297 |
292 template("grit") { | 298 template("grit") { |
293 assert(defined(invoker.source), | 299 assert(defined(invoker.source), |
294 "\"source\" must be defined for the grit template $target_name") | 300 "\"source\" must be defined for the grit template $target_name") |
295 | 301 |
296 if (defined(invoker.resource_ids)) { | 302 if (defined(invoker.resource_ids)) { |
297 resource_ids = invoker.resource_ids | 303 resource_ids = invoker.resource_ids |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 if (defined(invoker.configs)) { | 466 if (defined(invoker.configs)) { |
461 configs += invoker.configs | 467 configs += invoker.configs |
462 } | 468 } |
463 | 469 |
464 if (defined(invoker.visibility)) { | 470 if (defined(invoker.visibility)) { |
465 visibility = invoker.visibility | 471 visibility = invoker.visibility |
466 } | 472 } |
467 output_name = grit_output_name | 473 output_name = grit_output_name |
468 } | 474 } |
469 } | 475 } |
OLD | NEW |