| OLD | NEW |
| 1 # Copyright (c) 2009 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 class Writer(object): | 11 class Writer(object): |
| 12 """Visual Studio XML tool file writer.""" | 12 """Visual Studio XML tool file writer.""" |
| 13 | 13 |
| 14 def __init__(self, tool_file_path, name): | 14 def __init__(self, tool_file_path, name): |
| 15 """Initializes the tool file. | 15 """Initializes the tool file. |
| 16 | 16 |
| 17 Args: | 17 Args: |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 def WriteIfChanged(self): | 49 def WriteIfChanged(self): |
| 50 """Writes the tool file.""" | 50 """Writes the tool file.""" |
| 51 content = ['VisualStudioToolFile', | 51 content = ['VisualStudioToolFile', |
| 52 {'Version': '8.00', | 52 {'Version': '8.00', |
| 53 'Name': self.name | 53 'Name': self.name |
| 54 }, | 54 }, |
| 55 self.rules_section | 55 self.rules_section |
| 56 ] | 56 ] |
| 57 easy_xml.WriteXmlIfChanged(content, self.tool_file_path, | 57 easy_xml.WriteXmlIfChanged(content, self.tool_file_path, |
| 58 encoding="Windows-1252") | 58 encoding="Windows-1252") |
| OLD | NEW |