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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 if (defined(invoker.configs)) { | 449 if (defined(invoker.configs)) { |
444 configs += invoker.configs | 450 configs += invoker.configs |
445 } | 451 } |
446 | 452 |
447 if (defined(invoker.visibility)) { | 453 if (defined(invoker.visibility)) { |
448 visibility = invoker.visibility | 454 visibility = invoker.visibility |
449 } | 455 } |
450 output_name = grit_output_name | 456 output_name = grit_output_name |
451 } | 457 } |
452 } | 458 } |
OLD | NEW |