OLD | NEW |
1 # Copyright (c) 2012 Google Inc. All rights reserved. | 1 # Copyright (c) 2012 Google Inc. 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 """New implementation of Visual Studio project generation for SCons.""" | 5 """New implementation of Visual Studio project generation.""" |
6 | 6 |
7 import os | 7 import os |
8 import random | 8 import random |
9 | 9 |
10 import gyp.common | 10 import gyp.common |
11 | 11 |
12 # hashlib is supplied as of Python 2.5 as the replacement interface for md5 | 12 # hashlib is supplied as of Python 2.5 as the replacement interface for md5 |
13 # and other secure hashes. In 2.6, md5 is deprecated. Import hashlib if | 13 # and other secure hashes. In 2.6, md5 is deprecated. Import hashlib if |
14 # available, avoiding a deprecation warning under 2.6. Import md5 otherwise, | 14 # available, avoiding a deprecation warning under 2.6. Import md5 otherwise, |
15 # preserving 2.4 compatibility. | 15 # preserving 2.4 compatibility. |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 for e in all_entries: | 330 for e in all_entries: |
331 if not isinstance(e, MSVSFolder): | 331 if not isinstance(e, MSVSFolder): |
332 continue # Does not apply to projects, only folders | 332 continue # Does not apply to projects, only folders |
333 for subentry in e.entries: | 333 for subentry in e.entries: |
334 f.write('\t\t%s = %s\r\n' % (subentry.get_guid(), e.get_guid())) | 334 f.write('\t\t%s = %s\r\n' % (subentry.get_guid(), e.get_guid())) |
335 f.write('\tEndGlobalSection\r\n') | 335 f.write('\tEndGlobalSection\r\n') |
336 | 336 |
337 f.write('EndGlobal\r\n') | 337 f.write('EndGlobal\r\n') |
338 | 338 |
339 f.close() | 339 f.close() |
OLD | NEW |