OLD | NEW |
1 # Copyright (c) 2011 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 """Visual Studio project reader/writer.""" | 5 """Visual Studio project reader/writer.""" |
6 | 6 |
7 import common | 7 import gyp.common |
8 import gyp.easy_xml as easy_xml | 8 import gyp.easy_xml as easy_xml |
9 | 9 |
10 #------------------------------------------------------------------------------ | 10 #------------------------------------------------------------------------------ |
11 | 11 |
12 | 12 |
13 class Tool(object): | 13 class Tool(object): |
14 """Visual Studio tool.""" | 14 """Visual Studio tool.""" |
15 | 15 |
16 def __init__(self, name, attrs=None): | 16 def __init__(self, name, attrs=None): |
17 """Initializes the tool. | 17 """Initializes the tool. |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 }, | 199 }, |
200 self.platform_section, | 200 self.platform_section, |
201 self.tool_files_section, | 201 self.tool_files_section, |
202 self.configurations_section, | 202 self.configurations_section, |
203 ['References'], # empty section | 203 ['References'], # empty section |
204 self.files_section, | 204 self.files_section, |
205 ['Globals'] # empty section | 205 ['Globals'] # empty section |
206 ] | 206 ] |
207 easy_xml.WriteXmlIfChanged(content, self.project_path, | 207 easy_xml.WriteXmlIfChanged(content, self.project_path, |
208 encoding="Windows-1252") | 208 encoding="Windows-1252") |
OLD | NEW |