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

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

Issue 739303003: Cleanup pylint errors (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Fix mac Created 6 years, 1 month 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
« no previous file with comments | « gyptest.py ('k') | pylib/gyp/MSVSSettings.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.""" 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
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 # GUID from the files. 165 # GUID from the files.
166 self.guid = MakeGuid(self.name) 166 self.guid = MakeGuid(self.name)
167 return self.guid 167 return self.guid
168 168
169 def set_msbuild_toolset(self, msbuild_toolset): 169 def set_msbuild_toolset(self, msbuild_toolset):
170 self.msbuild_toolset = msbuild_toolset 170 self.msbuild_toolset = msbuild_toolset
171 171
172 #------------------------------------------------------------------------------ 172 #------------------------------------------------------------------------------
173 173
174 174
175 class MSVSSolution: 175 class MSVSSolution(object):
176 """Visual Studio solution.""" 176 """Visual Studio solution."""
177 177
178 def __init__(self, path, version, entries=None, variants=None, 178 def __init__(self, path, version, entries=None, variants=None,
179 websiteProperties=True): 179 websiteProperties=True):
180 """Initializes the solution. 180 """Initializes the solution.
181 181
182 Args: 182 Args:
183 path: Path to solution file. 183 path: Path to solution file.
184 version: Format version to emit. 184 version: Format version to emit.
185 entries: List of entries in solution. May contain Folder or Project 185 entries: List of entries in solution. May contain Folder or Project
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 for e in all_entries: 331 for e in all_entries:
332 if not isinstance(e, MSVSFolder): 332 if not isinstance(e, MSVSFolder):
333 continue # Does not apply to projects, only folders 333 continue # Does not apply to projects, only folders
334 for subentry in e.entries: 334 for subentry in e.entries:
335 f.write('\t\t%s = %s\r\n' % (subentry.get_guid(), e.get_guid())) 335 f.write('\t\t%s = %s\r\n' % (subentry.get_guid(), e.get_guid()))
336 f.write('\tEndGlobalSection\r\n') 336 f.write('\tEndGlobalSection\r\n')
337 337
338 f.write('EndGlobal\r\n') 338 f.write('EndGlobal\r\n')
339 339
340 f.close() 340 f.close()
OLDNEW
« no previous file with comments | « gyptest.py ('k') | pylib/gyp/MSVSSettings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698