updated Jamfile build system for reorganized files/folders

This commit is contained in:
erwin.coumans
2008-10-11 05:23:00 +00:00
parent b6f0434832
commit 22a79e61b1
20 changed files with 58 additions and 62 deletions

View File

@@ -23,17 +23,17 @@ subject to the following restrictions:
//#define BATCH_RAYCASTER
#ifdef BATCH_RAYCASTER
#include "../../Extras/BulletMultiThreaded/SpuBatchRaycaster.h"
#include "BulletMultiThreaded/SpuBatchRaycaster.h"
static SpuBatchRaycaster* gBatchRaycaster = NULL;
#endif
#ifdef USE_LIBSPE2
#include "../../Extras/BulletMultiThreaded/SpuLibspe2Support.h"
#include "BulletMultiThreaded/SpuLibspe2Support.h"
#elif defined (WIN32)
#include "../../Extras/BulletMultiThreaded/Win32ThreadSupport.h"
#include "BulletMultiThreaded/Win32ThreadSupport.h"
#else
//other platforms run the parallel code sequentially (until pthread support or other parallel implementation is added)
#include "../../Extras/BulletMultiThreaded/SequentialThreadSupport.h"
#include "BulletMultiThreaded/SequentialThreadSupport.h"
#endif //USE_LIBSPE2
static btVector3* gVertices=0;

View File

@@ -6,7 +6,7 @@ SubDir TOP Demos EPAPenDepthDemo ;
{
Application $(<) : $(>) : noinstall console nomanifest ;
LinkWith $(<) : GIMPACT bulletopenglsupport bulletdynamics bulletcollision bulletmath ;
LinkWith $(<) : bulletopenglsupport bulletdynamics bulletcollision bulletmath ;
CFlags $(<) :
[ FIncludes $(TOP)/Demos/OpenGL ]
[ FIncludes $(TOP)/Extras/GIMPACT/include ]
@@ -14,8 +14,7 @@ SubDir TOP Demos EPAPenDepthDemo ;
;
MsvcIncDirs $(<) :
"../../Demos/OpenGL"
"../../Extras/GIMPACT/include" ;
"../../Demos/OpenGL" ;
}
ExtraDemo4 EPAPenDepthDemo : [ Wildcard *.h *.cpp ] ;

View File

@@ -27,16 +27,16 @@ class btDefaultCollisionConfiguration;
#ifdef BULLET_GIMPACT
#include "GIMPACT/Bullet/btGImpactCollisionAlgorithm.h"
#include "BulletCollision/Gimpact/btGImpactCollisionAlgorithm.h"
#ifdef BULLET_GIMPACT_CONVEX_DECOMPOSITION
#include "btGImpactConvexDecompositionShape.h"
#include "../Extras/GIMPACTUtils/btGImpactConvexDecompositionShape.h"
#endif
#else
#include "btConcaveConcaveCollisionAlgorithm.h"
#include "btGIMPACTMeshShape.h"
#include "BulletCollision/Gimpact/btConcaveConcaveCollisionAlgorithm.h"
#include "BulletCollision/Gimpact/btGIMPACTMeshShape.h"
#endif

View File

@@ -6,16 +6,14 @@ SubDir TOP Demos GimpactTestDemo ;
{
Application $(<) : $(>) : noinstall console nomanifest ;
LinkWith $(<) : GIMPACTUtils GIMPACT bulletopenglsupport bulletdynamics bulletcollision bulletmath ;
LinkWith $(<) : GIMPACTUtils bulletopenglsupport bulletdynamics bulletcollision bulletmath ;
CFlags $(<) :
[ FIncludes $(TOP)/Demos/OpenGL ]
[ FIncludes $(TOP)/Extras/GIMPACT/include ]
[ FIncludes $(TOP)/Extras/GIMPACTUtils ]
;
MsvcIncDirs $(<) :
"../../Demos/OpenGL"
"../../Extras/GIMPACT/include"
"../../Extras/GIMPACTUtils"
;
}

View File

@@ -50,13 +50,12 @@ if $(GLUT.AVAILABLE) = "yes"
rule FrameWorkDemo
{
Application $(<) : $(>) : noinstall console nomanifest ;
LinkWith $(<) : GIMPACTUtils GIMPACT bulletopenglsupport bulletsoftbody convexdecomposition bulletdynamics bulletcollision bulletmath glui ;
LinkWith $(<) : GIMPACTUtils bulletopenglsupport bulletsoftbody convexdecomposition bulletdynamics bulletcollision bulletmath glui ;
CFlags $(<) :
[ FIncludes $(TOP)/Extras ]
[ FIncludes $(TOP)/Demos/OpenGL ]
[ FIncludes $(TOP)/Extras/ConvexDecomposition ]
[ FIncludes $(TOP)/Extras/ConvexHull ]
[ FIncludes $(TOP)/Extras/GIMPACT/include ]
[ FIncludes $(TOP)/Extras/GIMPACTUtils ]
;
MsvcIncDirs $(<) :
@@ -65,7 +64,6 @@ if $(GLUT.AVAILABLE) = "yes"
"../../Extras/ConvexHull"
"../../Demos/OpenGL"
"../../Extras/ConvexDecomposition"
"../../Extras/GIMPACT/include"
"../../Extras/GIMPACTUtils"
;

View File

@@ -20,8 +20,8 @@ subject to the following restrictions:
#include "LinearMath/btIDebugDraw.h"
#include "LinearMath/btQuickprof.h"
#include "LinearMath/btDefaultMotionState.h"
#include "GIMPACT/Bullet/btGImpactShape.h"
#include "GIMPACT/Bullet/btGImpactCollisionAlgorithm.h"
#include "BulletCollision/Gimpact/btGImpactShape.h"
#include "BulletCollision/Gimpact/btGImpactCollisionAlgorithm.h"

View File

@@ -6,16 +6,14 @@ SubDir TOP Demos MovingConcaveDemo ;
{
Application $(<) : $(>) : noinstall console nomanifest ;
LinkWith $(<) : GIMPACT bulletopenglsupport bulletdynamics bulletcollision bulletmath ;
LinkWith $(<) : bulletopenglsupport bulletdynamics bulletcollision bulletmath ;
CFlags $(<) :
[ FIncludes $(TOP)/Demos/OpenGL ]
[ FIncludes $(TOP)/Extras/GIMPACT/include ]
;
MsvcIncDirs $(<) :
"../../Demos/OpenGL"
"../../Extras/GIMPACT/include" ;
"../../Demos/OpenGL" ;
}
ExtraDemo1 MovingConcaveDemo : [ Wildcard *.h *.cpp ] ;

View File

@@ -21,29 +21,29 @@ subject to the following restrictions:
#include "BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.h"
#ifdef USE_PARALLEL_DISPATCHER
#include "../../Extras/BulletMultiThreaded/SpuGatheringCollisionDispatcher.h"
#include "../../Extras/BulletMultiThreaded/PlatformDefinitions.h"
#include "BulletMultiThreaded/SpuGatheringCollisionDispatcher.h"
#include "BulletMultiThreaded/PlatformDefinitions.h"
#ifdef USE_LIBSPE2
#include "../../Extras/BulletMultiThreaded/SpuLibspe2Support.h"
#include "BulletMultiThreaded/SpuLibspe2Support.h"
#elif defined (WIN32)
#include "../../Extras/BulletMultiThreaded/Win32ThreadSupport.h"
#include "../../Extras/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h"
#include "BulletMultiThreaded/Win32ThreadSupport.h"
#include "BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h"
#elif defined (USE_PTHREADS)
#include "../../Extras/BulletMultiThreaded/PosixThreadSupport.h"
#include "../../Extras/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h"
#include "BulletMultiThreaded/PosixThreadSupport.h"
#include "BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h"
#else
//other platforms run the parallel code sequentially (until pthread support or other parallel implementation is added)
#include "../../Extras/BulletMultiThreaded/SequentialThreadSupport.h"
#include "../../Extras/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h"
#include "BulletMultiThreaded/SequentialThreadSupport.h"
#include "BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h"
#endif //USE_LIBSPE2
#ifdef USE_PARALLEL_SOLVER
#include "../../Extras/BulletMultiThreaded/SpuParallelSolver.h"
#include "../../Extras/BulletMultiThreaded/SpuSolverTask/SpuParallellSolverTask.h"
#include "BulletMultiThreaded/SpuParallelSolver.h"
#include "BulletMultiThreaded/SpuSolverTask/SpuParallellSolverTask.h"
#endif //USE_PARALLEL_SOLVER
#endif//USE_PARALLEL_DISPATCHER

View File

@@ -1,5 +1 @@
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
SUBDIRS( glui ConvexDecomposition BulletColladaConverter LibXML COLLADA_DOM GIMPACTUtils GIMPACT )
else (CMAKE_SIZEOF_VOID_P MATCHES "8")
SUBDIRS( glui ConvexDecomposition BulletMultiThreaded BulletColladaConverter LibXML COLLADA_DOM GIMPACTUtils GIMPACT )
endif (CMAKE_SIZEOF_VOID_P MATCHES "8")
SUBDIRS( glui ConvexDecomposition BulletColladaConverter LibXML COLLADA_DOM GIMPACTUtils )

View File

@@ -1,10 +1,8 @@
SubDir TOP Extras GIMPACTUtils ;
#IncludeDir Extras/GIMPACT/include ;
Library GIMPACTUtils : [ Wildcard . : */.h *.cpp ] : noinstall ;
CFlags GIMPACTUtils : [ FIncludes $(TOP)/Extras/GIMPACT/include ] [ FIncludes $(TOP)/Extras/GIMPACTUtils ] [ FIncludes $(TOP)/Extras/ConvexDecomposition ] ;
LibDepends GIMPACTUtils : GIMPACT ;
CFlags GIMPACTUtils : [ FIncludes $(TOP)/Extras/GIMPACTUtils ] [ FIncludes $(TOP)/Extras/ConvexDecomposition ] ;
LibDepends GIMPACTUtils : convexdecomposition ;
MsvcIncDirs GIMPACTUtils :

View File

@@ -25,7 +25,7 @@ subject to the following restrictions:
#define GIMPACT_CONVEX_DECOMPOSITION_SHAPE_H
#include "GIMPACT/Bullet/btGImpactShape.h" // box tree class
#include "BulletCollision/Gimpact/btGImpactShape.h" // box tree class

View File

@@ -5,10 +5,8 @@ SubInclude TOP Extras COLLADA_DOM ;
SubInclude TOP Extras glui ;
SubInclude TOP Extras LibXML ;
SubInclude TOP Extras BulletColladaConverter ;
SubInclude TOP Extras BulletMultiThreaded ;
#SubInclude TOP Extras EPA ;
#SubInclude TOP Extras ExtraSolid35 ;
SubInclude TOP Extras GIMPACT ;
SubInclude TOP Extras GIMPACTUtils ;
#GPUphysics needs 'make', not jam compatible build yet:
#SubInclude TOP Extras GPUphysics ;

View File

@@ -15,6 +15,16 @@ subject to the following restrictions:
#include "BulletCollision/CollisionShapes/btPolyhedralConvexShape.h"
btPolyhedralConvexShape::btPolyhedralConvexShape() :btConvexInternalShape(),
m_localAabbMin(1,1,1),
m_localAabbMax(-1,-1,-1),
m_isLocalAabbValid(false),
m_optionalHull(0)
{
}
btVector3 btPolyhedralConvexShape::localGetSupportingVertexWithoutMargin(const btVector3& vec0)const
{
int i;

View File

@@ -31,17 +31,9 @@ protected:
btVector3 m_localAabbMax;
bool m_isLocalAabbValid;
btPolyhedralConvexShape() :btConvexInternalShape(),
m_localAabbMin(1,1,1),
m_localAabbMax(-1,-1,-1),
m_isLocalAabbValid(false),
m_optionalHull(0)
{
}
public:
btPolyhedralConvexShape();
//brute force implementations

View File

@@ -3,6 +3,7 @@ SubDir TOP src BulletCollision ;
Description bulletcollision : "Bullet Collision Detection" ;
Library bulletcollision :
[ Wildcard Gimpact : *.h *.cpp ]
[ Wildcard BroadphaseCollision : *.h *.cpp ]
[ Wildcard CollisionDispatch : *.h *.cpp ]
[ Wildcard CollisionShapes : *.h *.cpp ]

View File

@@ -1,5 +1,4 @@
INCLUDE_DIRECTORIES(
${BULLET_PHYSICS_SOURCE_DIR}/Extras/BulletMultiThreaded/
${BULLET_PHYSICS_SOURCE_DIR}/src
)

View File

@@ -1,12 +1,12 @@
SubDir TOP Extras BulletMultiThreaded ;
SubDir TOP src BulletMultiThreaded ;
#IncludeDir Extras/BulletMultiThreaded ;
#IncludeDir src/BulletMultiThreaded ;
Library bulletmultithreaded : [ Wildcard . : */.h *.cpp ] [ Wildcard SpuNarrowPhaseCollisionTask : *.h *.cpp ] [ Wildcard SpuSolverTask : *.h *.cpp ] : noinstall ;
CFlags bulletmultithreaded : [ FIncludes $(TOP)/Extras/BulletMultiThreaded ] ;
CFlags bulletmultithreaded : [ FIncludes $(TOP)/src/BulletMultiThreaded ] ;
LibDepends bulletmultithreaded : ;
MsvcIncDirs bulletmultithreaded :
"../../Extras/BulletMultiThreaded" ;
"../../src/BulletMultiThreaded" ;
InstallHeader [ Wildcard *.h ] : bulletmultithreaded ;

View File

@@ -111,6 +111,10 @@ public:
///tell the task scheduler we are done with the SPU tasks
virtual void stopSPU();
virtual void setNumTasks(int numTasks)
{
}
};
#endif // POSIX_THREAD_SUPPORT_H

View File

@@ -1 +1,7 @@
SUBDIRS( BulletSoftBody BulletCollision BulletDynamics LinearMath )
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
SUBDIRS( BulletSoftBody BulletCollision BulletDynamics Linea
rMath )
else (CMAKE_SIZEOF_VOID_P MATCHES "8")
SUBDIRS( BulletMultiThreaded BulletSoftBody BulletCollision BulletDynamics Linea
rMath )
endif (CMAKE_SIZEOF_VOID_P MATCHES "8")

View File

@@ -1,8 +1,7 @@
SubDir TOP src ;
SubInclude TOP src BulletMultiThreaded ;
SubInclude TOP src BulletSoftBody ;
SubInclude TOP src BulletCollision ;
SubInclude TOP src BulletDynamics ;
SubInclude TOP src LinearMath ;
Recurse InstallHeader : .h ;