Chromium Code Reviews| Index: tools/xcodebodge/xcodebodge.py |
| =================================================================== |
| --- tools/xcodebodge/xcodebodge.py (revision 8565) |
| +++ tools/xcodebodge/xcodebodge.py (working copy) |
| @@ -552,7 +552,9 @@ |
| i += 1 |
| parent_group.child_names.insert(i, new_file_ref.name) |
| parent_group.child_uuids.insert(i, new_file_ref.uuid) |
| + # Add file ref uuid sorted |
| self._sections['PBXFileReference'].append(new_file_ref) |
| + self._sections['PBXFileReference'].sort(cmp=lambda x,y: cmp(x.uuid, y.uuid)) |
|
sgk
2009/01/26 18:53:01
Nit: 80 chars.
|
| return new_file_ref |
| # Group-relative failed, how about SOURCE_ROOT relative in the main group |
| @@ -568,7 +570,9 @@ |
| None) |
| self._root_group.child_uuids.append(new_file_ref.uuid) |
| self._root_group.child_names.append(new_file_ref.name) |
| + # Add file ref uuid sorted |
| self._sections['PBXFileReference'].append(new_file_ref) |
| + self._sections['PBXFileReference'].sort(cmp=lambda x,y: cmp(x.uuid, y.uuid)) |
|
sgk
2009/01/26 18:53:01
Nit: 80 chars.
|
| return new_file_ref |
| # Win to Unix absolute paths probably not practical |
| @@ -595,7 +599,9 @@ |
| 'Sources', |
| source_ref.uuid, |
| '') |
| + # Add to build file list (uuid sorted) |
| self._sections['PBXBuildFile'].append(new_build_file) |
| + self._sections['PBXBuildFile'].sort(cmp=lambda x,y: cmp(x.uuid, y.uuid)) |
| # Add to sources phase list (name sorted) |
| i = 0 |
| while i < len(source_phase.file_names): |