| 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 (is_chromeos_ui) { |
| 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 if (defined(invoker.configs)) { | 467 if (defined(invoker.configs)) { |
| 468 configs += invoker.configs | 468 configs += invoker.configs |
| 469 } | 469 } |
| 470 | 470 |
| 471 if (defined(invoker.visibility)) { | 471 if (defined(invoker.visibility)) { |
| 472 visibility = invoker.visibility | 472 visibility = invoker.visibility |
| 473 } | 473 } |
| 474 output_name = grit_output_name | 474 output_name = grit_output_name |
| 475 } | 475 } |
| 476 } | 476 } |
| OLD | NEW |