| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 ] | 103 ] |
| 104 } else { | 104 } else { |
| 105 grit_defines += [ | 105 grit_defines += [ |
| 106 "-D", | 106 "-D", |
| 107 "_chromium", | 107 "_chromium", |
| 108 "-E", | 108 "-E", |
| 109 "CHROMIUM_BUILD=chromium", | 109 "CHROMIUM_BUILD=chromium", |
| 110 ] | 110 ] |
| 111 } | 111 } |
| 112 | 112 |
| 113 if (is_chromeos) { | 113 if (use_cros_fe) { |
| 114 grit_defines += [ | 114 grit_defines += [ |
| 115 "-D", | 115 "-D", |
| 116 "chromeos", | 116 "chromeos", |
| 117 "-D", | 117 "-D", |
| 118 "scale_factors=2x", | 118 "scale_factors=2x", |
| 119 ] | 119 ] |
| 120 } | 120 } |
| 121 | 121 |
| 122 if (is_desktop_linux) { | 122 if (is_desktop_linux) { |
| 123 grit_defines += [ | 123 grit_defines += [ |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 if (defined(invoker.configs)) { | 473 if (defined(invoker.configs)) { |
| 474 configs += invoker.configs | 474 configs += invoker.configs |
| 475 } | 475 } |
| 476 | 476 |
| 477 if (defined(invoker.visibility)) { | 477 if (defined(invoker.visibility)) { |
| 478 visibility = invoker.visibility | 478 visibility = invoker.visibility |
| 479 } | 479 } |
| 480 output_name = grit_output_name | 480 output_name = grit_output_name |
| 481 } | 481 } |
| 482 } | 482 } |
| OLD | NEW |