| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2009 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 3 """Xcode project file generator. | 7 """Xcode project file generator. |
| 4 | 8 |
| 5 This module is both an Xcode project file generator and a documentation of the | 9 This module is both an Xcode project file generator and a documentation of the |
| 6 Xcode project file format. Knowledge of the project file format was gained | 10 Xcode project file format. Knowledge of the project file format was gained |
| 7 based on extensive experience with Xcode, and by making changes to projects in | 11 based on extensive experience with Xcode, and by making changes to projects in |
| 8 Xcode.app and observing the resultant changes in the associated project files. | 12 Xcode.app and observing the resultant changes in the associated project files. |
| 9 | 13 |
| 10 XCODE PROJECT FILES | 14 XCODE PROJECT FILES |
| 11 | 15 |
| 12 The generator targets the file format as written by Xcode 3.1 (specifically, | 16 The generator targets the file format as written by Xcode 3.1 (specifically, |
| (...skipping 2659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2672 self._XCPrint(file, 0, '/* Begin ' + class_name + ' section */\n') | 2676 self._XCPrint(file, 0, '/* Begin ' + class_name + ' section */\n') |
| 2673 for object in sorted(objects_by_class[class_name], | 2677 for object in sorted(objects_by_class[class_name], |
| 2674 cmp=lambda x, y: cmp(x.id, y.id)): | 2678 cmp=lambda x, y: cmp(x.id, y.id)): |
| 2675 object.Print(file) | 2679 object.Print(file) |
| 2676 self._XCPrint(file, 0, '/* End ' + class_name + ' section */\n') | 2680 self._XCPrint(file, 0, '/* End ' + class_name + ' section */\n') |
| 2677 | 2681 |
| 2678 if self._should_print_single_line: | 2682 if self._should_print_single_line: |
| 2679 self._XCPrint(file, 0, '}; ') | 2683 self._XCPrint(file, 0, '}; ') |
| 2680 else: | 2684 else: |
| 2681 self._XCPrint(file, 1, '};\n') | 2685 self._XCPrint(file, 1, '};\n') |
| OLD | NEW |