Browse Source

BUG: cmparseMSBuildXML should output StringProperty values too

Zack Galbreath 16 years ago
parent
commit
70614b9e6a
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Source/cmparseMSBuildXML.py

+ 7 - 0
Source/cmparseMSBuildXML.py

@@ -246,6 +246,13 @@ class MSBuildToCMake:
       else:
         toReturn +="  {\""+i.attributes["Name"]+"\", \""+i.attributes["Switch"]+"\",\n   \""+i.DisplayName+"\",\n   \"\", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},\n"
 
+    toReturn += "\n  //String Properties\n"
+    for i in self.stringProperties:
+      if i.attributes["Switch"] == "":
+        toReturn += "  // Skip [" + i.attributes["Name"] + "] - no command line Switch.\n";
+      else:
+        toReturn +="  {\""+i.attributes["Name"]+"\", \""+i.attributes["Switch"]+i.attributes["Separator"]+"\",\n   \""+i.DisplayName+"\",\n   \"\", cmVS7FlagTable::UserValue},\n"
+
     toReturn += "  {0,0,0,0,0}\n};"
     return toReturn
     pass