Skip to content

Commit

Permalink
add CMakeLists.txt back inso .list files
Browse files Browse the repository at this point in the history
fix script
  • Loading branch information
Altren committed Jul 13, 2012
1 parent 34ec101 commit 8af3e70
Show file tree
Hide file tree
Showing 32 changed files with 44 additions and 15 deletions.
1 change: 1 addition & 0 deletions Demos/Demo_Colour/Demo_Colour.list
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Demos/Demo_Console/Demo_Console.list
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Demos/Demo_Controllers/Demo_Controllers.list
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Demos/Demo_Gui/Demo_Gui.list
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Demos/Demo_ItemBox/Demo_ItemBox.list
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Demos/Demo_PanelView/Demo_PanelView.list
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Demos/Demo_Picking/Demo_Picking.list
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Demos/Demo_Pointers/Demo_Pointers.list
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Demos/Demo_RenderBox/Demo_RenderBox.list
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Demos/Demo_ScrollView/Demo_ScrollView.list
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Demos/Demo_Themes/Demo_Themes.list
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
Binary file modified Scripts/ConvertVcxprojToList.exe
Binary file not shown.
25 changes: 12 additions & 13 deletions Scripts/ConvertVcxprojToList.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@

def addSourceOrHeader(fileName):
#print line
if fileName.endswith("CMakeLists.txt"):
return
if fileName.endswith('.h'):
headers.append(" " + fileName + "\n")
else:
Expand All @@ -41,18 +39,19 @@ def parseFilterFile(_node):
fileName = str(_node.attributes["Include"].nodeValue)
fileName = convertRelativePath(fileName)

filterName = _node.getElementsByTagName("Filter")[0].childNodes[0].nodeValue
filterName = filterName.replace("\\", "\\\\")
if (len(_node.getElementsByTagName("Filter")) != 0):
filterName = _node.getElementsByTagName("Filter")[0].childNodes[0].nodeValue
filterName = filterName.replace("\\", "\\\\")

global lastFilter
if (filterName != lastFilter):
if lastFilter != "":
# close last filter
filters.append(")\n")
filters.append("SOURCE_GROUP(\"" + filterName + "\" FILES\n")
lastFilter = filterName
global lastFilter
if (filterName != lastFilter):
if lastFilter != "":
# close last filter
filters.append(")\n")
filters.append("SOURCE_GROUP(\"" + filterName + "\" FILES\n")
lastFilter = filterName

filters.append(" " + fileName + "\n")
filters.append(" " + fileName + "\n")

def createFilesList(fileName, listName):

Expand All @@ -79,7 +78,7 @@ def createFilesList(fileName, listName):
for subNode in rootNode.childNodes:
if subNode.localName == "ItemGroup":
for subSubNode in subNode.childNodes:
if subSubNode.nodeType == subSubNode.ELEMENT_NODE and (subSubNode.localName == "ClInclude" or subSubNode.localName == "ClCompile" or subSubNode.localName == "ResourceCompile"):
if subSubNode.nodeType == subSubNode.ELEMENT_NODE and (subSubNode.localName == "ClInclude" or subSubNode.localName == "ClCompile" or subSubNode.localName == "ResourceCompile" or subSubNode.localName == "CustomBuild"):
parseFilterFile(subSubNode)

filters.append(")\n")
Expand Down
1 change: 1 addition & 0 deletions Tools/FontViewer/FontViewer.list
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Tools/ImageEditor/ImageEditor.list
Original file line number Diff line number Diff line change
Expand Up @@ -471,4 +471,5 @@ SOURCE_GROUP("Utility" FILES
)
SOURCE_GROUP("Resources" FILES
ImageEditor.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Tools/ImageSetViewer/ImageSetViewer.list
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resource" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Tools/LayoutEditor/LayoutEditor.list
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,5 @@ SOURCE_GROUP("CodeGenerator" FILES
)
SOURCE_GROUP("Resources" FILES
LayoutEditor.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions Tools/SkinEditor/SkinEditor.list
Original file line number Diff line number Diff line change
Expand Up @@ -327,4 +327,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
SkinEditor.rc
CMakeLists.txt
)
5 changes: 3 additions & 2 deletions UnitTests/TestApp/TestApp.list
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ SOURCE_GROUP("Header Files" FILES
DataPropertyInfo.h
DataInfoManager.h
DataManager.h
pugiconfig.hpp
pugixml.hpp
Action.h
ActionCreateData.h
ActionDestroyData.h
ActionManager.h
DataListUI.h
pugiconfig.hpp
pugixml.hpp
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions UnitTests/UnitTest_AttachDetach/UnitTest_AttachDetach.list
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions UnitTests/UnitTest_ChildAttach/UnitTest_ChildAttach.list
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions UnitTests/UnitTest_Delegates/UnitTest_Delegates.list
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions UnitTests/UnitTest_GraphView/UnitTest_GraphView.list
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,5 @@ SOURCE_GROUP("OpenSaveFileDialog" FILES
)
SOURCE_GROUP("Demo\\Resource" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions UnitTests/UnitTest_ItemBox_Info/UnitTest_ItemBox_Info.list
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions UnitTests/UnitTest_Layers/UnitTest_Layers.list
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ SOURCE_GROUP("Header Files\\Layer" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions UnitTests/UnitTest_MultiList/UnitTest_MultiList.list
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions UnitTests/UnitTest_RTTLayer/UnitTest_RTTLayer.list
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ SOURCE_GROUP("Header Files\\Layer" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions UnitTests/UnitTest_RotatingSkin/UnitTest_RotatingSkin.list
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions UnitTests/UnitTest_Spline/UnitTest_Spline.list
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ SOURCE_GROUP("Header Files" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ SOURCE_GROUP("Header Files\\Layer" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)
1 change: 1 addition & 0 deletions UnitTests/UnitTest_TreeControl/UnitTest_TreeControl.list
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ SOURCE_GROUP("Header Files\\TreeControl" FILES
)
SOURCE_GROUP("Resources" FILES
../../Common/Base/BaseResource.rc
CMakeLists.txt
)

0 comments on commit 8af3e70

Please sign in to comment.