Permalink
Browse files

Add Code::blocks project file (cbp) for Chipmunk 7, 2 fixes for

compilation and usage:
- const for the first data fields in cpCollisionHandler cause compilation
  errors on MinGW, not sure why but just remove const fixes it
- including chipmunk_private.h the second time would cause error because
  it checks if chipmunk.h has been included right in the beginning.
  basically just add a guard ifdef CHIPMUNK_PRIVATE_H_INCLUDED to the
  start of the file to fix
  • Loading branch information...
1 parent 5eb7999 commit fb847e435a12620048f86693a0277c10fc2f0300 @wilonth wilonth committed Apr 25, 2014
Showing with 250 additions and 95 deletions.
  1. +157 −0 codeblocks/Chipmunk.cbp
  2. +87 −89 include/chipmunk/chipmunk_private.h
  3. +6 −6 include/chipmunk/cpSpace.h
@@ -0,0 +1,157 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<CodeBlocks_project_file>
+ <FileVersion major="1" minor="6" />
+ <Project>
+ <Option title="Chipmunk" />
+ <Option pch_mode="2" />
+ <Option compiler="gcc" />
+ <Build>
+ <Target title="Debug">
+ <Option output="bin/Debug/libChipmunk" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj/Debug/" />
+ <Option type="3" />
+ <Option compiler="gcc" />
+ <Option createDefFile="1" />
+ <Option createStaticLib="1" />
+ <Compiler>
+ <Add option="-g" />
+ <Add directory="../include" />
+ <Add directory="../include/chipmunk" />
+ </Compiler>
+ </Target>
+ <Target title="Release">
+ <Option output="bin/Release/libChipmunk" prefix_auto="1" extension_auto="1" />
+ <Option object_output="obj/Release/" />
+ <Option type="3" />
+ <Option compiler="gcc" />
+ <Option createDefFile="1" />
+ <Option createStaticLib="1" />
+ <Compiler>
+ <Add option="-O2" />
+ </Compiler>
+ <Linker>
+ <Add option="-s" />
+ </Linker>
+ </Target>
+ </Build>
+ <Compiler>
+ <Add option="-Wall" />
+ <Add option="-std=c99" />
+ </Compiler>
+ <Unit filename="../include/chipmunk/chipmunk.h" />
+ <Unit filename="../include/chipmunk/chipmunk_ffi.h" />
+ <Unit filename="../include/chipmunk/chipmunk_private.h" />
+ <Unit filename="../include/chipmunk/chipmunk_types.h" />
+ <Unit filename="../include/chipmunk/chipmunk_unsafe.h" />
+ <Unit filename="../include/chipmunk/cpArbiter.h" />
+ <Unit filename="../include/chipmunk/cpBB.h" />
+ <Unit filename="../include/chipmunk/cpBody.h" />
+ <Unit filename="../include/chipmunk/cpConstraint.h" />
+ <Unit filename="../include/chipmunk/cpDampedRotarySpring.h" />
+ <Unit filename="../include/chipmunk/cpDampedSpring.h" />
+ <Unit filename="../include/chipmunk/cpGearJoint.h" />
+ <Unit filename="../include/chipmunk/cpGrooveJoint.h" />
+ <Unit filename="../include/chipmunk/cpPinJoint.h" />
+ <Unit filename="../include/chipmunk/cpPivotJoint.h" />
+ <Unit filename="../include/chipmunk/cpPolyShape.h" />
+ <Unit filename="../include/chipmunk/cpRatchetJoint.h" />
+ <Unit filename="../include/chipmunk/cpRotaryLimitJoint.h" />
+ <Unit filename="../include/chipmunk/cpShape.h" />
+ <Unit filename="../include/chipmunk/cpSimpleMotor.h" />
+ <Unit filename="../include/chipmunk/cpSlideJoint.h" />
+ <Unit filename="../include/chipmunk/cpSpace.h" />
+ <Unit filename="../include/chipmunk/cpSpatialIndex.h" />
+ <Unit filename="../include/chipmunk/cpTransform.h" />
+ <Unit filename="../include/chipmunk/cpVect.h" />
+ <Unit filename="../src/chipmunk.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpArbiter.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpArray.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpBBTree.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpBody.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpCollision.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpConstraint.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpDampedRotarySpring.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpDampedSpring.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpGearJoint.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpGrooveJoint.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpHashSet.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpPinJoint.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpPivotJoint.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpPolyShape.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpRatchetJoint.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpRotaryLimitJoint.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpShape.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpSimpleMotor.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpSlideJoint.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpSpace.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpSpaceComponent.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpSpaceDebug.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpSpaceHash.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpSpaceQuery.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpSpaceStep.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpSpatialIndex.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/cpSweep1D.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/prime.h" />
+ <Extensions>
+ <code_completion />
+ <envvars />
+ <debugger />
+ </Extensions>
+ </Project>
+</CodeBlocks_project_file>
Oops, something went wrong.

0 comments on commit fb847e4

Please sign in to comment.