| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 ] | 100 ] |
| 101 } else { | 101 } else { |
| 102 grit_defines += [ | 102 grit_defines += [ |
| 103 "-D", | 103 "-D", |
| 104 "_chromium", | 104 "_chromium", |
| 105 "-E", | 105 "-E", |
| 106 "CHROMIUM_BUILD=chromium", | 106 "CHROMIUM_BUILD=chromium", |
| 107 ] | 107 ] |
| 108 } | 108 } |
| 109 | 109 |
| 110 if (is_chromeos) { | |
| 111 grit_defines += [ | |
| 112 "-D", | |
| 113 "chromeos", | |
| 114 "-D", | |
| 115 "scale_factors=2x", | |
| 116 ] | |
| 117 } | |
| 118 | |
| 119 if (is_desktop_linux) { | 110 if (is_desktop_linux) { |
| 120 grit_defines += [ | 111 grit_defines += [ |
| 121 "-D", | 112 "-D", |
| 122 "desktop_linux", | 113 "desktop_linux", |
| 123 ] | 114 ] |
| 124 } | 115 } |
| 125 | 116 |
| 126 if (use_nss_certs) { | 117 if (use_nss_certs) { |
| 127 grit_defines += [ | 118 grit_defines += [ |
| 128 "-D", | 119 "-D", |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 if (defined(invoker.configs)) { | 321 if (defined(invoker.configs)) { |
| 331 configs += invoker.configs | 322 configs += invoker.configs |
| 332 } | 323 } |
| 333 | 324 |
| 334 if (defined(invoker.visibility)) { | 325 if (defined(invoker.visibility)) { |
| 335 visibility = invoker.visibility | 326 visibility = invoker.visibility |
| 336 } | 327 } |
| 337 output_name = grit_output_name | 328 output_name = grit_output_name |
| 338 } | 329 } |
| 339 } | 330 } |
| OLD | NEW |