| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 "-D", | 239 "-D", |
| 240 "enable_media_router", | 240 "enable_media_router", |
| 241 ] | 241 ] |
| 242 } | 242 } |
| 243 if (enable_themes) { | 243 if (enable_themes) { |
| 244 grit_defines += [ | 244 grit_defines += [ |
| 245 "-D", | 245 "-D", |
| 246 "enable_themes", | 246 "enable_themes", |
| 247 ] | 247 ] |
| 248 } | 248 } |
| 249 if (enable_task_manager) { | |
| 250 grit_defines += [ | |
| 251 "-D", | |
| 252 "enable_task_manager", | |
| 253 ] | |
| 254 } | |
| 255 | 249 |
| 256 # TODO(aberent): Enable for other platforms once the build machines have | 250 # TODO(aberent): Enable for other platforms once the build machines have |
| 257 # Java on them (and hence can run the closure compiler). | 251 # Java on them (and hence can run the closure compiler). |
| 258 _strip_resource_files = is_android | 252 _strip_resource_files = is_android |
| 259 _js_minifier = "//third_party/closure_compiler/js_minify.py" | 253 _js_minifier = "//third_party/closure_compiler/js_minify.py" |
| 260 | 254 |
| 261 grit_resource_id_file = "//tools/gritsettings/resource_ids" | 255 grit_resource_id_file = "//tools/gritsettings/resource_ids" |
| 262 grit_info_script = "//tools/grit/grit_info.py" | 256 grit_info_script = "//tools/grit/grit_info.py" |
| 263 | 257 |
| 264 template("grit") { | 258 template("grit") { |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 if (defined(invoker.configs)) { | 478 if (defined(invoker.configs)) { |
| 485 configs += invoker.configs | 479 configs += invoker.configs |
| 486 } | 480 } |
| 487 | 481 |
| 488 if (defined(invoker.visibility)) { | 482 if (defined(invoker.visibility)) { |
| 489 visibility = invoker.visibility | 483 visibility = invoker.visibility |
| 490 } | 484 } |
| 491 output_name = grit_output_name | 485 output_name = grit_output_name |
| 492 } | 486 } |
| 493 } | 487 } |
| OLD | NEW |