diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-06-26 15:50:09 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-06-26 15:50:09 (GMT) |
commit | 798024bebf7d5a63862bc92a838cb71840736929 (patch) | |
tree | 9d8a5fd0f0a8c25f81a60032b078d6378abd7f1a /Source/cmparseMSBuildXML.py | |
parent | 688db8a17d8c24c165ebaaeeb2f51ad559f4f9c9 (diff) | |
download | CMake-798024bebf7d5a63862bc92a838cb71840736929.zip CMake-798024bebf7d5a63862bc92a838cb71840736929.tar.gz CMake-798024bebf7d5a63862bc92a838cb71840736929.tar.bz2 |
ENH: fix line length issues
Diffstat (limited to 'Source/cmparseMSBuildXML.py')
-rwxr-xr-x | Source/cmparseMSBuildXML.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/cmparseMSBuildXML.py b/Source/cmparseMSBuildXML.py index 0d1959c..fece9a6 100755 --- a/Source/cmparseMSBuildXML.py +++ b/Source/cmparseMSBuildXML.py @@ -217,7 +217,7 @@ class MSBuildToCMake: toReturn += "\n //Enum Properties\n" for i in self.enumProperties: for j in i.values: - toReturn+=" {\""+i.attributes["Name"]+"\", \""+j.attributes["Switch"]+"\", \""+j.DisplayName+"\", \""+j.attributes["Name"]+"\", 0},\n" + toReturn+=" {\""+i.attributes["Name"]+"\", \""+j.attributes["Switch"]+"\",\n \""+j.DisplayName+"\", \""+j.attributes["Name"]+"\", 0},\n" toReturn += "\n" @@ -234,14 +234,17 @@ class MSBuildToCMake: if i.argumentProperty != "": if i.attributes["ReverseSwitch"] != "": toReturn += " {\""+i.attributes["Name"]+"\", \""+i.attributes["ReverseSwitch"]+"\", \"\", \"false\", cmVS7FlagTable::Continue},\n" - toReturn += " {\""+i.attributes["Name"]+"\", \""+i.attributes["ReverseSwitch"]+"\", \""+i.DisplayName+"\", \"\", cmVS7FlagTable::UserValueRequired},\n" + toReturn += " {\""+i.attributes["Name"]+"\", \""+i.attributes["ReverseSwitch"]+"\", \""+i.DisplayName+"\", \"\",\n cmVS7FlagTable::UserValueRequired},\n" if i.attributes["Switch"] != "": toReturn += " {\""+i.attributes["Name"]+"\", \""+i.attributes["Switch"]+"\", \"\", \"true\", cmVS7FlagTable::Continue},\n" - toReturn += " {\""+i.argumentProperty+"\", \""+i.attributes["Switch"]+"\", \""+i.DisplayName+"\", \"\", cmVS7FlagTable::UserValueRequired},\n" + toReturn += " {\""+i.argumentProperty+"\", \""+i.attributes["Switch"]+"\", \""+i.DisplayName+"\", \"\",\n cmVS7FlagTable::UserValueRequired},\n" toReturn += "\n //String List Properties\n" for i in self.stringListProperties: - toReturn+=" {\""+i.attributes["Name"]+"\", \""+i.attributes["Switch"]+"\", \""+i.DisplayName+"\", \"\", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},\n" + if i.attributes["Switch"] == "": + toReturn += " // Skip [" + i.attributes["Name"] + "] - no command line Switch.\n"; + else: + toReturn +=" {\""+i.attributes["Name"]+"\", \""+i.attributes["Switch"]+"\",\n \""+i.DisplayName+"\",\n \"\", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},\n" toReturn += " {0,0,0,0,0}\n};" return toReturn |