| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2014 The Chromium Authors. All rights reserved. | 3 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """Links the deps of a binary into a static library. | 7 """Links the deps of a binary into a static library. |
| 8 | 8 |
| 9 Run with a working directory, the name of a binary target, and the name of the | 9 Run with a working directory, the name of a binary target, and the name of the |
| 10 static library that should be produced. For example: | 10 static library that should be produced. For example: |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 parser.add_argument('target', nargs=1, help='target to query for deps') | 148 parser.add_argument('target', nargs=1, help='target to query for deps') |
| 149 parser.add_argument('output', nargs=1, help='path to output static library') | 149 parser.add_argument('output', nargs=1, help='path to output static library') |
| 150 args = parser.parse_args() | 150 args = parser.parse_args() |
| 151 | 151 |
| 152 inputs = query_ninja(args.target[0], args.workdir[0]) | 152 inputs = query_ninja(args.target[0], args.workdir[0]) |
| 153 link(args.output[0], list(library_deps(inputs, args.workdir[0]))) | 153 link(args.output[0], list(library_deps(inputs, args.workdir[0]))) |
| 154 | 154 |
| 155 | 155 |
| 156 if __name__ == '__main__': | 156 if __name__ == '__main__': |
| 157 main() | 157 main() |
| OLD | NEW |