msdev: convert solution to list

This commit is contained in:
mittorn 2019-04-09 13:35:11 +00:00 committed by Alibek Omarov
parent c953ba0852
commit 36159e6622

View File

@ -371,7 +371,7 @@ class MsDevSolution(MsDev):
'''Exports a **Visual Studio** solution.''' '''Exports a **Visual Studio** solution.'''
dst = self.get_fname() dst = self.get_fname()
s = MSDEV_SOLUTION.splitlines() s = MSDEV_SOLUTION
with open(dst, 'w') as f: with open(dst, 'w') as f:
for line in s[0:3]: for line in s[0:3]:
@ -778,18 +778,17 @@ MSDEV_PROJECT = \
</VisualStudioProject> </VisualStudioProject>
''' '''
MSDEV_SOLUTION = \ MSDEV_SOLUTION = [
''' 'Microsoft Visual Studio Solution File, Format Version 10.00',
Microsoft Visual Studio Solution File, Format Version 10.00\n '# Visual Studio 2008',
# Visual Studio 2008\n 'Global',
Global\n 'GlobalSection(SolutionConfigurationPlatforms) = preSolution',
GlobalSection(SolutionConfigurationPlatforms) = preSolution\n 'Debug|Win32 = Debug|Win32',
Debug|Win32 = Debug|Win32\n 'EndGlobalSection',
EndGlobalSection\n 'GlobalSection(ProjectConfigurationPlatforms) = postSolution',
GlobalSection(ProjectConfigurationPlatforms) = postSolution\n 'EndGlobalSection',
EndGlobalSection\n 'GlobalSection(SolutionProperties) = preSolution',
GlobalSection(SolutionProperties) = preSolution\n 'HideSolutionNode = FALSE',
HideSolutionNode = FALSE\n 'EndGlobalSection',
EndGlobalSection\n 'EndGlobal',
EndGlobal\n '']
'''