| OLD | NEW | 
|---|
| 1 #!/usr/bin/python2.4 | 1 #!/usr/bin/python2.4 | 
| 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 """New implementation of Visual Studio project generation for SCons.""" | 7 """New implementation of Visual Studio project generation for SCons.""" | 
| 4 | 8 | 
| 5 import common | 9 import common | 
| 6 import os | 10 import os | 
| 7 import random | 11 import random | 
| 8 | 12 | 
| 9 # hashlib is supplied as of Python 2.5 as the replacement interface for md5 | 13 # hashlib is supplied as of Python 2.5 as the replacement interface for md5 | 
| 10 # and other secure hashes.  In 2.6, md5 is deprecated.  Import hashlib if | 14 # and other secure hashes.  In 2.6, md5 is deprecated.  Import hashlib if | 
| 11 # available, avoiding a deprecation warning under 2.6.  Import md5 otherwise, | 15 # available, avoiding a deprecation warning under 2.6.  Import md5 otherwise, | 
| 12 # preserving 2.4 compatibility. | 16 # preserving 2.4 compatibility. | 
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 305     for e in all_entries: | 309     for e in all_entries: | 
| 306       if not isinstance(e, MSVSFolder): | 310       if not isinstance(e, MSVSFolder): | 
| 307         continue        # Does not apply to projects, only folders | 311         continue        # Does not apply to projects, only folders | 
| 308       for subentry in e.entries: | 312       for subentry in e.entries: | 
| 309         f.write('\t\t%s = %s\r\n' % (subentry.get_guid(), e.get_guid())) | 313         f.write('\t\t%s = %s\r\n' % (subentry.get_guid(), e.get_guid())) | 
| 310     f.write('\tEndGlobalSection\r\n') | 314     f.write('\tEndGlobalSection\r\n') | 
| 311 | 315 | 
| 312     f.write('EndGlobal\r\n') | 316     f.write('EndGlobal\r\n') | 
| 313 | 317 | 
| 314     f.close() | 318     f.close() | 
| OLD | NEW | 
|---|