| 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 """Converts a given gypi file to a python scope and writes the result to stdout. | 5 """Converts a given gypi file to a python scope and writes the result to stdout. |
| 6 | 6 |
| 7 It is assumed that the file contains a toplevel dictionary, and this script | 7 It is assumed that the file contains a toplevel dictionary, and this script |
| 8 will return that dictionary as a GN "scope" (see example below). This script | 8 will return that dictionary as a GN "scope" (see example below). This script |
| 9 does not know anything about GYP and it will not expand variables or execute | 9 does not know anything about GYP and it will not expand variables or execute |
| 10 conditions. | 10 conditions. |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 del data[key] | 158 del data[key] |
| 159 | 159 |
| 160 print gn_helpers.ToGNString(data) | 160 print gn_helpers.ToGNString(data) |
| 161 | 161 |
| 162 if __name__ == '__main__': | 162 if __name__ == '__main__': |
| 163 try: | 163 try: |
| 164 main() | 164 main() |
| 165 except Exception, e: | 165 except Exception, e: |
| 166 print str(e) | 166 print str(e) |
| 167 sys.exit(1) | 167 sys.exit(1) |
| OLD | NEW |