Commits

Anonymous committed cba30cd

Added VS.NET 2005 solution. Added Win32 build batch file

Comments (0)

Files changed (5)

+rem If you are using the VC++ Toolkit, set the PATH, INCLUDE and LIB to include
+rem the Platform SDK and VC++ Toolkit paths of your system.
+rem
+rem Note that this requires a slightly changed MSVCCompiler class, see
+rem http://www.vrplumber.com/programming/mstoolkit/
+rem for details
+rem 
+rem Set PATH=C:\Program files\Microsoft Visual C++ Toolkit 2003\bin;C:\Program files\Microsoft Platform SDK\Bin;%PATH%
+rem Set INCLUDE=C:\Program files\Microsoft Visual C++ Toolkit 2003\include;C:\Program files\Microsoft Platform SDK\Include;%INCLUDE%
+rem Set LIB=C:\Program files\Microsoft Visual Studio .NET 2003\Vc7\lib;C:\Program files\Microsoft Visual C++ Toolkit 2003\lib;C:\Program files\Microsoft Platform SDK\Lib;%LIB%
+
+rem Set up the python exe path
+Set PATH=C:\Python25;%PATH%
+
+rem Delete the previous builds
+del /S /Q build
+rem Build and install anything.
+python setup.py build install
+
+pause
 
 if __name__ == "__main__":
 
-    warn_flags = ["-W", "-Wall", "-Wpointer-arith", "-Wcast-qual",
-                  "-Winline", "-Wcast-align", "-Wconversion",
-                  "-Wstrict-prototypes", "-Wmissing-prototypes",
-                  "-Wmissing-declarations", "-Wnested-externs",
-                  "-Wshadow", "-Wredundant-decls"
-                  ]
-    compile_args = [ "-std=c99", "-g"]
-    compile_args += warn_flags
+    compile_args = []
+    if sys.platform == "win32":
+        pass
+    else:
+        warn_flags = ["-W", "-Wall", "-Wpointer-arith", "-Wcast-qual",
+                      "-Winline", "-Wcast-align", "-Wconversion",
+                      "-Wstrict-prototypes", "-Wmissing-prototypes",
+                      "-Wmissing-declarations", "-Wnested-externs",
+                      "-Wshadow", "-Wredundant-decls"
+                     ]
+        compile_args = [ "-std=c99", "-g"]
+        compile_args += warn_flags
 
     extphysics = Extension ("physics", sources = get_c_files (),
                             include_dirs = [ "include" ],

win32/Physics.sln

+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Physics_Test", "Physics_Test.vcproj", "{2C436876-149E-4AF0-AD5D-3BBA93CF9313}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Physics_Module", "Physics_Module.vcproj", "{8EF22482-B2E1-4D85-BCB8-BFEC4EFD541E}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Win32 = Debug|Win32
+		Release|Win32 = Release|Win32
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{2C436876-149E-4AF0-AD5D-3BBA93CF9313}.Debug|Win32.ActiveCfg = Debug|Win32
+		{2C436876-149E-4AF0-AD5D-3BBA93CF9313}.Debug|Win32.Build.0 = Debug|Win32
+		{2C436876-149E-4AF0-AD5D-3BBA93CF9313}.Release|Win32.ActiveCfg = Release|Win32
+		{2C436876-149E-4AF0-AD5D-3BBA93CF9313}.Release|Win32.Build.0 = Release|Win32
+		{8EF22482-B2E1-4D85-BCB8-BFEC4EFD541E}.Debug|Win32.ActiveCfg = Debug|Win32
+		{8EF22482-B2E1-4D85-BCB8-BFEC4EFD541E}.Debug|Win32.Build.0 = Debug|Win32
+		{8EF22482-B2E1-4D85-BCB8-BFEC4EFD541E}.Release|Win32.ActiveCfg = Release|Win32
+		{8EF22482-B2E1-4D85-BCB8-BFEC4EFD541E}.Release|Win32.Build.0 = Release|Win32
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal

win32/Physics_Module.vcproj

+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="8,00"
+	Name="Physics_Module"
+	ProjectGUID="{8EF22482-B2E1-4D85-BCB8-BFEC4EFD541E}"
+	RootNamespace="Physics_Module"
+	Keyword="Win32Proj"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="2"
+			CharacterSet="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="C:\Python25\include;..\include"
+				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PHYSICS_INTERNAL"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="true"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				LinkIncremental="2"
+				GenerateDebugInformation="true"
+				SubSystem="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="2"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				AdditionalIncludeDirectories="C:\Python25\include;..\include"
+				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PHYSICS_INTERNAL"
+				RuntimeLibrary="2"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="true"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				LinkIncremental="1"
+				AdditionalLibraryDirectories="C:\Python25\libs"
+				GenerateDebugInformation="true"
+				SubSystem="2"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath="..\src\pgAABBBox.c"
+				>
+			</File>
+			<File
+				RelativePath="..\src\pgBodyObject.c"
+				>
+			</File>
+			<File
+				RelativePath="..\src\pgCollision.c"
+				>
+			</File>
+			<File
+				RelativePath="..\src\pgHelpFunctions.c"
+				>
+			</File>
+			<File
+				RelativePath="..\src\pgJointObject.c"
+				>
+			</File>
+			<File
+				RelativePath="..\src\pgModuleInit.c"
+				>
+			</File>
+			<File
+				RelativePath="..\src\pgShapeObject.c"
+				>
+			</File>
+			<File
+				RelativePath="..\src\pgVector2.c"
+				>
+			</File>
+			<File
+				RelativePath="..\src\pgWorldObject.c"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Header Files"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+			<File
+				RelativePath="..\include\pgAABBBox.h"
+				>
+			</File>
+			<File
+				RelativePath="..\include\pgBodyObject.h"
+				>
+			</File>
+			<File
+				RelativePath="..\include\pgCollision.h"
+				>
+			</File>
+			<File
+				RelativePath="..\include\pgDeclare.h"
+				>
+			</File>
+			<File
+				RelativePath="..\include\pgHelpFunctions.h"
+				>
+			</File>
+			<File
+				RelativePath="..\include\pgJointObject.h"
+				>
+			</File>
+			<File
+				RelativePath="..\include\pgphysics.h"
+				>
+			</File>
+			<File
+				RelativePath="..\include\pgShapeObject.h"
+				>
+			</File>
+			<File
+				RelativePath="..\include\pgVector2.h"
+				>
+			</File>
+			<File
+				RelativePath="..\include\pgWorldObject.h"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Resource Files"
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+			>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

win32/Physics_Test.vcproj

+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="8,00"
+	Name="Physics_Test"
+	ProjectGUID="{2C436876-149E-4AF0-AD5D-3BBA93CF9313}"
+	RootNamespace="Physics_Test"
+	Keyword="Win32Proj"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="C:\Python25\include"
+				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_CONSOLE;_CRT_TERMINATE_DEFINED"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="true"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				LinkIncremental="2"
+				GenerateDebugInformation="true"
+				SubSystem="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				AdditionalIncludeDirectories="C:\Python25\include"
+				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_CONSOLE;_CRT_TERMINATE_DEFINED"
+				RuntimeLibrary="2"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="true"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="python25.lib"
+				LinkIncremental="1"
+				AdditionalLibraryDirectories="C:\Python25\libs"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath="..\Test\Main.c"
+				>
+			</File>
+			<File
+				RelativePath="..\Test\pgPhysicsRenderer.c"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Header Files"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+			<File
+				RelativePath="..\Test\pgPhysicsRenderer.h"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Resource Files"
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+			>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>