summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-09-29 19:24:52 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-09-29 19:24:52 (GMT)
commitd8397995e67661c8ed6b6abddd2deb2e70ea15e6 (patch)
treef3c570acf9403d77ce2b1fdd35bee04b35451bb0 /BuildTools
parentbbe1d048955fb9e03769a92387b83389ac3fd781 (diff)
downloadswift-d8397995e67661c8ed6b6abddd2deb2e70ea15e6.zip
swift-d8397995e67661c8ed6b6abddd2deb2e70ea15e6.tar.bz2
Create Swift MSVS solution.
Diffstat (limited to 'BuildTools')
-rw-r--r--BuildTools/MSVS/.gitignore4
-rw-r--r--BuildTools/MSVS/GenerateProjects.py100
-rw-r--r--BuildTools/MSVS/Swift.sln26
3 files changed, 130 insertions, 0 deletions
diff --git a/BuildTools/MSVS/.gitignore b/BuildTools/MSVS/.gitignore
new file mode 100644
index 0000000..95a4834
--- /dev/null
+++ b/BuildTools/MSVS/.gitignore
@@ -0,0 +1,4 @@
+*.suo
+*.ncp
+Slimber
+Swift
diff --git a/BuildTools/MSVS/GenerateProjects.py b/BuildTools/MSVS/GenerateProjects.py
new file mode 100644
index 0000000..d13df08
--- /dev/null
+++ b/BuildTools/MSVS/GenerateProjects.py
@@ -0,0 +1,100 @@
+import os, os.path
+
+projects = [("Swift", "Swift\QtUI\Swift.exe"), ("Slimber", "Slimber\Qt\Slimber.exe")]
+
+for (project, outputbin) in projects :
+ if not os.path.exists(project) :
+ os.mkdir(project)
+ output = open(os.path.join(project, project + ".vcproj"), "w")
+
+ headers = []
+ sources = []
+ for root, dirs, files in os.walk(os.path.join("..", "..", project)) :
+ for file in files :
+ if file.endswith(".h") :
+ headers.append('<File RelativePath="' + os.path.join("..", root, file) + '" />')
+ elif file.endswith(".cpp") :
+ sources.append('<File RelativePath="' + os.path.join("..", root, file) + '" />')
+
+ output.write("""<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9.00"
+ Name="%(project)s"
+ Keyword="MakeFileProj"
+ TargetFrameworkVersion="196613"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="0"
+ >
+ <Tool
+ Name="VCNMakeTool"
+ BuildCommandLine="cd ..\..\..\ &amp;&amp; scons debug=1 %(project)s"
+ ReBuildCommandLine=""
+ CleanCommandLine="cd ..\..\..\ &amp;&amp; scons -c debug=1 %(project)s"
+ Output="..\..\..\%(output)s"
+ PreprocessorDefinitions="WIN32;_DEBUG"
+ IncludeSearchPath=""
+ ForcedIncludes=""
+ AssemblySearchPath=""
+ ForcedUsingAssemblies=""
+ CompileAsManaged=""
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="0"
+ >
+ <Tool
+ Name="VCNMakeTool"
+ BuildCommandLine="cd ..\..\..\ &amp;&amp; scons %(project)s"
+ ReBuildCommandLine=""
+ CleanCommandLine="cd ..\..\..\ &amp;&amp; scons -c %(project)s"
+ Output="..\..\..\%(output)s"
+ PreprocessorDefinitions="WIN32;NDEBUG"
+ IncludeSearchPath=""
+ ForcedIncludes=""
+ AssemblySearchPath=""
+ ForcedUsingAssemblies=""
+ CompileAsManaged=""
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+ >
+ %(sources)s
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ >
+ %(headers)s
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+ >
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>""" % { "project": project, "output" : outputbin, "headers" : '\n'.join(headers), "sources": '\n'.join(sources) })
+ output.close()
diff --git a/BuildTools/MSVS/Swift.sln b/BuildTools/MSVS/Swift.sln
new file mode 100644
index 0000000..2724f81
--- /dev/null
+++ b/BuildTools/MSVS/Swift.sln
@@ -0,0 +1,26 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual C++ Express 2008
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Swift", "Swift\Swift.vcproj", "{C67C3A5B-1382-4B4A-88F7-3BFC98DA43A2}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Slimber", "Slimber\Slimber.vcproj", "{597242B2-A667-47A1-B69E-D2C4281183D0}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {C67C3A5B-1382-4B4A-88F7-3BFC98DA43A2}.Debug|Win32.ActiveCfg = Debug|Win32
+ {C67C3A5B-1382-4B4A-88F7-3BFC98DA43A2}.Debug|Win32.Build.0 = Debug|Win32
+ {C67C3A5B-1382-4B4A-88F7-3BFC98DA43A2}.Release|Win32.ActiveCfg = Release|Win32
+ {C67C3A5B-1382-4B4A-88F7-3BFC98DA43A2}.Release|Win32.Build.0 = Release|Win32
+ {597242B2-A667-47A1-B69E-D2C4281183D0}.Debug|Win32.ActiveCfg = Debug|Win32
+ {597242B2-A667-47A1-B69E-D2C4281183D0}.Debug|Win32.Build.0 = Debug|Win32
+ {597242B2-A667-47A1-B69E-D2C4281183D0}.Release|Win32.ActiveCfg = Release|Win32
+ {597242B2-A667-47A1-B69E-D2C4281183D0}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal