Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1287)

Side by Side Diff: trunk/pylib/gyp/MSVSNew.py

Issue 306051: Add AUTHORS and LICENSE files, and copyright headers to relevant source files... (Closed) Base URL: http://gyp.googlecode.com/svn/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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()
OLDNEW
« trunk/AUTHORS ('K') | « trunk/gyptest.py ('k') | trunk/pylib/gyp/MSVSProject.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698