Permalink
Browse files

Enables Chipmunk2D to compile with VS 2015

  • Loading branch information...
1 parent a46ebb9 commit 37f8088561be395771e2fe4f5a5afa190f525f8b Dogbert committed Dec 11, 2015
View
@@ -29,6 +29,7 @@ chipmunk_demos
# Visual studio
*.opensdf
+*.opendb
*.sdf
*.suo
*.pdb
@@ -46,4 +47,6 @@ msvc/vc13/chipmunk/Win32/
msvc/vc13/chipmunk/x64/
msvc/vc13/demo/Win32/
msvc/vc13/demo/x64/
+msvc/vc14/demo/Win32/
+msvc/vc14/demo/x64/
View
@@ -36,6 +36,16 @@
#include <limits.h>
#include <stdarg.h>
+#ifdef _MSC_VER
+ // Needed for VS 2015 compatability
+ // http://stackoverflow.com/questions/30412951/unresolved-external-symbol-imp-fprintf-and-imp-iob-func-sdl2
+ #if _MSC_VER >= 1700
+ #ifndef __iob_func
+ extern "C" { FILE __iob_func[3] = { *stdin,*stdout,*stderr }; }
+ #endif
+ #endif
+#endif
+
#include "GL/glew.h"
#include "GL/glfw.h"
@@ -0,0 +1,274 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug SCRT|Win32">
+ <Configuration>Debug SCRT</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug DLL|Win32">
+ <Configuration>Debug DLL</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release SCRT|Win32">
+ <Configuration>Release SCRT</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release DLL|Win32">
+ <Configuration>Release DLL</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="chipmunk.def" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="..\..\..\include\chipmunk\chipmunk.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\chipmunk_ffi.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\chipmunk_private.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\chipmunk_types.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\chipmunk_unsafe.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpArbiter.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpBB.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpBody.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpConstraint.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpDampedRotarySpring.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpDampedSpring.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpGearJoint.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpGrooveJoint.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpPinJoint.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpPivotJoint.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpPolyShape.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpRatchetJoint.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpRotaryLimitJoint.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpShape.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpSimpleMotor.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpSlideJoint.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpSpace.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpSpatialIndex.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpTransform.h" />
+ <ClInclude Include="..\..\..\include\chipmunk\cpVect.h" />
+ <ClInclude Include="..\..\..\src\prime.h" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="..\..\..\src\chipmunk.c" />
+ <ClCompile Include="..\..\..\src\cpArbiter.c" />
+ <ClCompile Include="..\..\..\src\cpArray.c" />
+ <ClCompile Include="..\..\..\src\cpBBTree.c" />
+ <ClCompile Include="..\..\..\src\cpBody.c" />
+ <ClCompile Include="..\..\..\src\cpCollision.c" />
+ <ClCompile Include="..\..\..\src\cpConstraint.c" />
+ <ClCompile Include="..\..\..\src\cpDampedRotarySpring.c" />
+ <ClCompile Include="..\..\..\src\cpDampedSpring.c" />
+ <ClCompile Include="..\..\..\src\cpGearJoint.c" />
+ <ClCompile Include="..\..\..\src\cpGrooveJoint.c" />
+ <ClCompile Include="..\..\..\src\cpHashSet.c" />
+ <ClCompile Include="..\..\..\src\cpPinJoint.c" />
+ <ClCompile Include="..\..\..\src\cpPivotJoint.c" />
+ <ClCompile Include="..\..\..\src\cpPolyShape.c" />
+ <ClCompile Include="..\..\..\src\cpRatchetJoint.c" />
+ <ClCompile Include="..\..\..\src\cpRobust.c" />
+ <ClCompile Include="..\..\..\src\cpRotaryLimitJoint.c" />
+ <ClCompile Include="..\..\..\src\cpShape.c" />
+ <ClCompile Include="..\..\..\src\cpSimpleMotor.c" />
+ <ClCompile Include="..\..\..\src\cpSlideJoint.c" />
+ <ClCompile Include="..\..\..\src\cpSpace.c" />
+ <ClCompile Include="..\..\..\src\cpSpaceComponent.c" />
+ <ClCompile Include="..\..\..\src\cpSpaceDebug.c" />
+ <ClCompile Include="..\..\..\src\cpSpaceHash.c" />
+ <ClCompile Include="..\..\..\src\cpSpaceQuery.c" />
+ <ClCompile Include="..\..\..\src\cpSpaceStep.c" />
+ <ClCompile Include="..\..\..\src\cpSpatialIndex.c" />
+ <ClCompile Include="..\..\..\src\cpSweep1D.c" />
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{C1ACE86E-5A14-490A-9678-104BA2546723}</ProjectGuid>
+ <Keyword>Win32Proj</Keyword>
+ <RootNamespace>chipmunk</RootNamespace>
+ <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>StaticLibrary</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v140</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug SCRT|Win32'" Label="Configuration">
+ <ConfigurationType>StaticLibrary</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v140</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v140</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>StaticLibrary</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <PlatformToolset>v140</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release SCRT|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <PlatformToolset>v140</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <PlatformToolset>v140</PlatformToolset>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug SCRT|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release SCRT|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <OutDir>$(PlatformName)\$(Configuration)\</OutDir>
+ <IntDir>$(PlatformName)\$(Configuration)\</IntDir>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug SCRT|Win32'">
+ <OutDir>$(PlatformName)\$(Configuration)\</OutDir>
+ <IntDir>$(PlatformName)\$(Configuration)\</IntDir>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">
+ <OutDir>$(PlatformName)\$(Configuration)\</OutDir>
+ <IntDir>$(PlatformName)\$(Configuration)\</IntDir>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <OutDir>$(PlatformName)\$(Configuration)\</OutDir>
+ <IntDir>$(PlatformName)\$(Configuration)\</IntDir>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release SCRT|Win32'">
+ <OutDir>$(PlatformName)\$(Configuration)\</OutDir>
+ <IntDir>$(PlatformName)\$(Configuration)\</IntDir>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">
+ <OutDir>$(PlatformName)\$(Configuration)\</OutDir>
+ <IntDir>$(PlatformName)\$(Configuration)\</IntDir>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <AdditionalIncludeDirectories>..\..\..\include</AdditionalIncludeDirectories>
+ <CompileAs>CompileAsC</CompileAs>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug SCRT|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <AdditionalIncludeDirectories>..\..\..\include</AdditionalIncludeDirectories>
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
+ <CompileAs>CompileAsC</CompileAs>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <AdditionalIncludeDirectories>..\..\..\include</AdditionalIncludeDirectories>
+ <CompileAs>CompileAsC</CompileAs>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <ModuleDefinitionFile>
+ </ModuleDefinitionFile>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>MaxSpeed</Optimization>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <AdditionalIncludeDirectories>..\..\..\include</AdditionalIncludeDirectories>
+ <CompileAs>CompileAsC</CompileAs>
+ <FloatingPointModel>Fast</FloatingPointModel>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release SCRT|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>MaxSpeed</Optimization>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <AdditionalIncludeDirectories>..\..\..\include</AdditionalIncludeDirectories>
+ <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+ <CompileAs>CompileAsC</CompileAs>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>MaxSpeed</Optimization>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <CompileAs>CompileAsC</CompileAs>
+ <AdditionalIncludeDirectories>..\..\..\include</AdditionalIncludeDirectories>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <ModuleDefinitionFile>
+ </ModuleDefinitionFile>
+ </Link>
+ </ItemDefinitionGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project>
Oops, something went wrong.

0 comments on commit 37f8088

Please sign in to comment.