| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 ] | 111 ] |
| 112 } | 112 } |
| 113 | 113 |
| 114 if (is_desktop_linux) { | 114 if (is_desktop_linux) { |
| 115 grit_defines += [ | 115 grit_defines += [ |
| 116 "-D", | 116 "-D", |
| 117 "desktop_linux", | 117 "desktop_linux", |
| 118 ] | 118 ] |
| 119 } | 119 } |
| 120 | 120 |
| 121 if (toolkit_views) { |
| 122 grit_defines += [ |
| 123 "-D", |
| 124 "toolkit_views", |
| 125 ] |
| 126 } |
| 127 |
| 128 if (use_aura) { |
| 129 grit_defines += [ |
| 130 "-D", |
| 131 "use_aura", |
| 132 ] |
| 133 } |
| 134 |
| 135 if (use_ash) { |
| 136 grit_defines += [ |
| 137 "-D", |
| 138 "use_ash", |
| 139 ] |
| 140 } |
| 141 |
| 121 if (use_nss_certs) { | 142 if (use_nss_certs) { |
| 122 grit_defines += [ | 143 grit_defines += [ |
| 123 "-D", | 144 "-D", |
| 124 "use_nss", | 145 "use_nss", |
| 125 ] | 146 ] |
| 126 } | 147 } |
| 127 | 148 |
| 149 if (use_ozone) { |
| 150 grit_defines += [ |
| 151 "-D", |
| 152 "use_ozone", |
| 153 ] |
| 154 } |
| 155 |
| 128 if (enable_image_loader_extension) { | 156 if (enable_image_loader_extension) { |
| 129 grit_defines += [ | 157 grit_defines += [ |
| 130 "-D", | 158 "-D", |
| 131 "image_loader_extension", | 159 "image_loader_extension", |
| 132 ] | 160 ] |
| 133 } | 161 } |
| 134 | 162 |
| 135 if (enable_remoting) { | 163 if (enable_remoting) { |
| 136 grit_defines += [ | 164 grit_defines += [ |
| 137 "-D", | 165 "-D", |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 if (defined(invoker.public_configs)) { | 432 if (defined(invoker.public_configs)) { |
| 405 public_configs += invoker.public_configs | 433 public_configs += invoker.public_configs |
| 406 } | 434 } |
| 407 | 435 |
| 408 if (defined(invoker.visibility)) { | 436 if (defined(invoker.visibility)) { |
| 409 visibility = invoker.visibility | 437 visibility = invoker.visibility |
| 410 } | 438 } |
| 411 output_name = grit_output_name | 439 output_name = grit_output_name |
| 412 } | 440 } |
| 413 } | 441 } |
| OLD | NEW |