| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # Calls the remoting_localize script with a jinja2 template. | 5 # Calls the remoting_localize script with a jinja2 template. |
| 6 # | 6 # |
| 7 # Arguments | 7 # Arguments |
| 8 # | 8 # |
| 9 # sources (required) | 9 # sources (required) |
| 10 # List of jinja2 files to load. This is the template. | 10 # List of jinja2 files to load. This is the template. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 i, | 69 i, |
| 70 ] | 70 ] |
| 71 } | 71 } |
| 72 } | 72 } |
| 73 | 73 |
| 74 # Add variables to command line. | 74 # Add variables to command line. |
| 75 if (defined(invoker.variables)) { | 75 if (defined(invoker.variables)) { |
| 76 foreach(i, invoker.variables) { | 76 foreach(i, invoker.variables) { |
| 77 args += [ | 77 args += [ |
| 78 "--variables", | 78 "--variables", |
| 79 i, | 79 rebase_path(i, root_build_dir), |
| 80 ] | 80 ] |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 | 83 |
| 84 # The template file is required. | 84 # The template file is required. |
| 85 args += [ | 85 args += [ |
| 86 "--template", | 86 "--template", |
| 87 "{{source}}", | 87 "{{source}}", |
| 88 ] | 88 ] |
| 89 | 89 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 104 if (defined(invoker.deps)) { | 104 if (defined(invoker.deps)) { |
| 105 deps = invoker.deps | 105 deps = invoker.deps |
| 106 } else { | 106 } else { |
| 107 deps = [] | 107 deps = [] |
| 108 } | 108 } |
| 109 | 109 |
| 110 # This script reads the messages strings from the generated resource files. | 110 # This script reads the messages strings from the generated resource files. |
| 111 deps += [ "//remoting/resources:strings" ] | 111 deps += [ "//remoting/resources:strings" ] |
| 112 } | 112 } |
| 113 } | 113 } |
| OLD | NEW |