updated build systems/GPU_physics for Mac OS X
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
SubDir TOP Demos BspDemo ;
|
SubDir TOP Demos BspDemo ;
|
||||||
|
|
||||||
ExtraDemo BspDemo : [ Wildcard *.h *.cpp ] ;
|
BulletDemo BspDemo : [ Wildcard *.h *.cpp ] ;
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
SubDir TOP Demos BulletDinoDemo ;
|
SubDir TOP Demos BulletDinoDemo ;
|
||||||
|
|
||||||
ExtraDemo BulletDino : [ Wildcard *.h *.c ] ;
|
BulletDemo BulletDino : [ Wildcard *.h *.c ] ;
|
||||||
|
|||||||
@@ -1,4 +1,30 @@
|
|||||||
SubDir TOP Demos ColladaDemo ;
|
SubDir TOP Demos ColladaDemo ;
|
||||||
|
|
||||||
ExtraDemo ColladaDemo : [ Wildcard *.h *.cpp ] ;
|
#some demos need extra functionality, Collada / ConvexDecomposition etc.
|
||||||
|
|
||||||
|
rule ExtraDemo3
|
||||||
|
|
||||||
|
{
|
||||||
|
Application $(<) : $(>) : noinstall console nomanifest ;
|
||||||
|
LinkWith $(<) : colladadom libxml bulletopenglsupport bulletdynamics bulletcollision bulletmath ;
|
||||||
|
CFlags $(<) :
|
||||||
|
[ FIncludes $(TOP)/Demos/OpenGL ]
|
||||||
|
[ FIncludes $(TOP)/Extras/COLLADA_DOM/include ]
|
||||||
|
[ FIncludes $(TOP)/Extras/COLLADA_DOM/include/1.4 ]
|
||||||
|
[ FIncludes $(TOP)/Extras/LibXML ]
|
||||||
|
|
||||||
|
[ FIncludes $(TOP)/Extras/LibXML/include ]
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
MsvcIncDirs $(<) :
|
||||||
|
"../../Demos/OpenGL"
|
||||||
|
"../../Extras/COLLADA_DOM/include"
|
||||||
|
"../../Extras/COLLADA_DOM/include/1.4"
|
||||||
|
"../../Extras/LibXML"
|
||||||
|
"../../Extras/LibXML/include" ;
|
||||||
|
}
|
||||||
|
|
||||||
|
ExtraDemo3 ColladaDemo : [ Wildcard *.h *.cpp ] ;
|
||||||
|
|
||||||
MsvcIncDirs ColladaDemo : "../../Extras/FCollada" ;
|
MsvcIncDirs ColladaDemo : "../../Extras/FCollada" ;
|
||||||
|
|||||||
@@ -1,3 +1,20 @@
|
|||||||
SubDir TOP Demos ConvexDecompositionDemo ;
|
SubDir TOP Demos ConvexDecompositionDemo ;
|
||||||
|
|
||||||
ExtraDemo ConvexDecompositionDemo : [ Wildcard *.h *.cpp ] ;
|
#some demos need extra functionality, Collada / ConvexDecomposition etc.
|
||||||
|
|
||||||
|
rule ExtraDemo2
|
||||||
|
|
||||||
|
{
|
||||||
|
Application $(<) : $(>) : noinstall console nomanifest ;
|
||||||
|
LinkWith $(<) : bulletopenglsupport convexdecomposition bulletdynamics bulletcollision bulletmath ;
|
||||||
|
CFlags $(<) :
|
||||||
|
[ FIncludes $(TOP)/Demos/OpenGL ]
|
||||||
|
[ FIncludes $(TOP)/Extras/ConvexDecomposition ]
|
||||||
|
;
|
||||||
|
|
||||||
|
MsvcIncDirs $(<) :
|
||||||
|
"../../Demos/OpenGL"
|
||||||
|
"../../Extras/ConvexDecomposition" ;
|
||||||
|
}
|
||||||
|
|
||||||
|
ExtraDemo2 ConvexDecompositionDemo : [ Wildcard *.h *.cpp ] ;
|
||||||
|
|||||||
@@ -1,3 +1,23 @@
|
|||||||
SubDir TOP Demos EPAPenDepthDemo ;
|
SubDir TOP Demos EPAPenDepthDemo ;
|
||||||
|
|
||||||
ExtraDemo EPAPenDepthDemo : [ Wildcard *.h *.cpp ../../Extras/ExtraSolid35/*.cpp ../../Extras/EPA/*.cpp ] ;
|
#some demos need extra functionality, Collada / ConvexDecomposition etc.
|
||||||
|
|
||||||
|
rule ExtraDemo4
|
||||||
|
|
||||||
|
{
|
||||||
|
Application $(<) : $(>) : noinstall console nomanifest ;
|
||||||
|
LinkWith $(<) : GIMPACTBullet GIMPACT bulletopenglsupport bulletdynamics bulletcollision bulletmath ;
|
||||||
|
CFlags $(<) :
|
||||||
|
[ FIncludes $(TOP)/Demos/OpenGL ]
|
||||||
|
[ FIncludes $(TOP)/Extras/GIMPACT/include ]
|
||||||
|
[ FIncludes $(TOP)/Extras/GIMPACTBullet ]
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
MsvcIncDirs $(<) :
|
||||||
|
"../../Demos/OpenGL"
|
||||||
|
"../../Extras/GIMPACT/include"
|
||||||
|
"../../Extras/GIMPACTBullet" ;
|
||||||
|
}
|
||||||
|
|
||||||
|
ExtraDemo4 EPAPenDepthDemo : [ Wildcard *.h *.cpp ] ;
|
||||||
|
|||||||
@@ -17,39 +17,10 @@ if $(GLUT.AVAILABLE) = "yes"
|
|||||||
"../../src" ;
|
"../../src" ;
|
||||||
}
|
}
|
||||||
|
|
||||||
#some demos need extra functionality, Collada / ConvexDecomposition etc.
|
|
||||||
rule ExtraDemo
|
|
||||||
{
|
|
||||||
Application $(<) : $(>) : noinstall console nomanifest ;
|
|
||||||
LinkWith $(<) : GIMPACTBullet GIMPACT colladadom libxml bulletopenglsupport convexdecomposition bulletdynamics bulletcollision bulletmath ;
|
|
||||||
CFlags $(<) :
|
|
||||||
[ FIncludes $(TOP)/Demos/OpenGL ]
|
|
||||||
[ FIncludes $(TOP)/Extras/ConvexDecomposition ]
|
|
||||||
[ FIncludes $(TOP)/Extras/COLLADA_DOM/include ]
|
|
||||||
[ FIncludes $(TOP)/Extras/COLLADA_DOM/include/1.4 ]
|
|
||||||
[ FIncludes $(TOP)/Extras/LibXML ]
|
|
||||||
[ FIncludes $(TOP)/Extras/LibXML/include ]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;
|
|
||||||
MsvcIncDirs $(<) :
|
|
||||||
"../../Demos/OpenGL"
|
|
||||||
"../../Extras/ConvexDecomposition"
|
|
||||||
"../../Extras/COLLADA_DOM/include"
|
|
||||||
"../../Extras/COLLADA_DOM/include/1.4"
|
|
||||||
"../../Extras/LibXML"
|
|
||||||
"../../Extras/LibXML/include" ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
rule BulletDemo
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rule BulletBasicDemo
|
rule BulletBasicDemo
|
||||||
|
|||||||
@@ -1,3 +1,23 @@
|
|||||||
SubDir TOP Demos MovingConcaveDemo ;
|
SubDir TOP Demos MovingConcaveDemo ;
|
||||||
|
|
||||||
ExtraDemo MovingConcaveDemo : [ Wildcard *.h *.cpp ] ;
|
#some demos need extra functionality, Collada / ConvexDecomposition etc.
|
||||||
|
|
||||||
|
rule ExtraDemo1
|
||||||
|
|
||||||
|
{
|
||||||
|
Application $(<) : $(>) : noinstall console nomanifest ;
|
||||||
|
LinkWith $(<) : GIMPACTBullet GIMPACT bulletopenglsupport bulletdynamics bulletcollision bulletmath ;
|
||||||
|
CFlags $(<) :
|
||||||
|
[ FIncludes $(TOP)/Demos/OpenGL ]
|
||||||
|
[ FIncludes $(TOP)/Extras/GIMPACT/include ]
|
||||||
|
[ FIncludes $(TOP)/Extras/GIMPACTBullet ]
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
MsvcIncDirs $(<) :
|
||||||
|
"../../Demos/OpenGL"
|
||||||
|
"../../Extras/GIMPACT/include"
|
||||||
|
"../../Extras/GIMPACTBullet" ;
|
||||||
|
}
|
||||||
|
|
||||||
|
ExtraDemo1 MovingConcaveDemo : [ Wildcard *.h *.cpp ] ;
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
SubDir TOP Extras COLLADA_DOM ;
|
SubDir TOP Extras COLLADA_DOM ;
|
||||||
|
|
||||||
IncludeDir Extras/COLLADA_DOM/include ;
|
|
||||||
IncludeDir Extras/COLLADA_DOM/include/1.4 ;
|
#IncludeDir Extras/COLLADA_DOM/include ;
|
||||||
IncludeDir Extras/LibXML/include ;
|
#IncludeDir Extras/COLLADA_DOM/include/1.4 ;
|
||||||
|
#IncludeDir Extras/LibXML/include ;
|
||||||
|
|
||||||
Library colladadom :
|
Library colladadom :
|
||||||
[ Wildcard src/dae : *.h *.cpp ]
|
[ Wildcard src/dae : *.h *.cpp ]
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
SubDir TOP Extras ConvexDecomposition ;
|
SubDir TOP Extras ConvexDecomposition ;
|
||||||
|
|
||||||
IncludeDir Extras/ConvexDecomposition ;
|
|
||||||
|
|
||||||
Library convexdecomposition : [ Wildcard *.h *.cpp ] ;
|
Library convexdecomposition : [ Wildcard *.h *.cpp ] ;
|
||||||
|
|
||||||
CFlags convexdecomposition : [ FIncludes $(TOP)/Extras/Decomposition ] ;
|
CFlags convexdecomposition : [ FIncludes $(TOP)/Extras/Decomposition ] ;
|
||||||
|
|
||||||
LibDepends convexdecomposition : ;
|
LibDepends convexdecomposition : ;
|
||||||
|
|
||||||
|
MsvcGenConfig ConvexDecomposition.INCDIRS : $(TOP)/Extras/ConvexDecomposition ;
|
||||||
|
|
||||||
|
|
||||||
InstallHeader [ Wildcard *.h ] : ConvexDecomposition ;
|
InstallHeader [ Wildcard *.h ] : ConvexDecomposition ;
|
||||||
|
|||||||
@@ -88,15 +88,16 @@
|
|||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <GL/glew.h>
|
|
||||||
|
|
||||||
#if defined(GPUP_MAC_OSX) && !defined (VMDMESA)
|
#if defined(GPUP_MAC_OSX) && !defined (VMDMESA)
|
||||||
#include <OpenGL/gl.h>
|
#include <OpenGL/gl.h>
|
||||||
#include <OpenGL/glu.h>
|
#include <OpenGL/glu.h>
|
||||||
#include <GLUT/glut.h>
|
#include <GLUT/glut.h>
|
||||||
|
#include <OpenGL/glext.h>
|
||||||
#else
|
#else
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
|
#include <GL/glew.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DISABLE_GL_ERROR_CHECKS
|
#ifdef DISABLE_GL_ERROR_CHECKS
|
||||||
|
|||||||
@@ -164,7 +164,10 @@ void initGLcontext ( int argc, char **argv,
|
|||||||
glutKeyboardFunc ( keybd ) ;
|
glutKeyboardFunc ( keybd ) ;
|
||||||
glutReshapeFunc ( reshape ) ;
|
glutReshapeFunc ( reshape ) ;
|
||||||
|
|
||||||
|
#if defined(GPUP_MAC_OSX) && !defined (VMDMESA)
|
||||||
|
#else
|
||||||
glewInit () ;
|
glewInit () ;
|
||||||
|
#endif
|
||||||
|
|
||||||
checkVertexTextureSupport ( disableVertexTextureSupport ) ;
|
checkVertexTextureSupport ( disableVertexTextureSupport ) ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,18 +6,16 @@ if $(GLUT.AVAILABLE) = "yes"
|
|||||||
rule GPUDemo
|
rule GPUDemo
|
||||||
{
|
{
|
||||||
Application $(<) : $(>) : noinstall console nomanifest ;
|
Application $(<) : $(>) : noinstall console nomanifest ;
|
||||||
LinkWith $(<) : GLUT ;
|
# LinkWith $(<) : GLUT ;
|
||||||
CFlags $(<) :
|
CFlags $(<) :
|
||||||
[ FIncludes $(TOP)/Demos/OpenGL ]
|
[ FIncludes $(TOP)/Demos/OpenGL ]
|
||||||
[ FIncludes $(TOP)/Extras/PhysicsInterface/CcdPhysics ]
|
|
||||||
[ FIncludes $(TOP)/Extras/PhysicsInterface/Common ]
|
|
||||||
;
|
;
|
||||||
MsvcIncDirs $(<) :
|
MsvcIncDirs $(<) :
|
||||||
"../../Demos/OpenGL"
|
"../../Demos/OpenGL"
|
||||||
"../../Extras/PhysicsInterface/CcdPhysics"
|
"../../Extras/PhysicsInterface/CcdPhysics"
|
||||||
"../../Extras/PhysicsInterface/Common" ;
|
"../../Extras/PhysicsInterface/Common" ;
|
||||||
ExternalLibs $(<) : GLUT GLEW ;
|
|
||||||
|
|
||||||
|
ExternalLibs GPUphysics : GLUT ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ HDRS = fboSupport.h shaderSupport.h
|
|||||||
OBJS = GPU_physics_demo.o fboSupport.o shaderSupport.o clock.o
|
OBJS = GPU_physics_demo.o fboSupport.o shaderSupport.o clock.o
|
||||||
|
|
||||||
all: ${OBJS}
|
all: ${OBJS}
|
||||||
g++ -framework GLUT -framework OpenGL -L"/System/Library/Frameworks/OpenGL.framework/Libraries" -lGL -lGLU -o GPU_physics_demo ${OBJS} -L"/System/Library/Frameworks/OpenGL.framework/Libraries" -lGLU -lGLEW -lGL -lGLU -lobjc
|
g++ -framework GLUT -framework OpenGL -L"/System/Library/Frameworks/OpenGL.framework/Libraries" -lGL -lGLU -o GPU_physics_demo ${OBJS} -L"/System/Library/Frameworks/OpenGL.framework/Libraries" -lGLU -lGL -lGLU -lobjc
|
||||||
|
|
||||||
shaderSupport.o : shaderSupport.cpp ${HDRS}
|
shaderSupport.o : shaderSupport.cpp ${HDRS}
|
||||||
g++ -c shaderSupport.cpp
|
g++ -c shaderSupport.cpp
|
||||||
|
|||||||
@@ -11,4 +11,4 @@ SubInclude TOP Extras GIMPACT ;
|
|||||||
SubInclude TOP Extras GIMPACTBullet ;
|
SubInclude TOP Extras GIMPACTBullet ;
|
||||||
|
|
||||||
#GPUphysics needs 'make', not jam compatible build yet:
|
#GPUphysics needs 'make', not jam compatible build yet:
|
||||||
#SubInclude TOP Extras GPUphysics ;
|
SubInclude TOP Extras GPUphysics ;
|
||||||
|
|||||||
@@ -1,10 +1,20 @@
|
|||||||
SubDir TOP Extras quickstep ;
|
SubDir TOP Extras quickstep ;
|
||||||
|
|
||||||
IncludeDir Extras/quickstep ;
|
#this is a bad global
|
||||||
|
#IncludeDir Extras/quickstep ;
|
||||||
|
|
||||||
Library quickstep : [ Wildcard *.h *.cpp ] ;
|
Library quickstep : [ Wildcard *.h *.cpp ] ;
|
||||||
|
#internal header path to compile quickstep
|
||||||
CFlags quickstep : [ FIncludes $(TOP)/Extras/quickstep ] ;
|
CFlags quickstep : [ FIncludes $(TOP)/Extras/quickstep ] ;
|
||||||
LibDepends quickstep : ;
|
|
||||||
|
#expose header include path for apps that depend on quickstep
|
||||||
|
#QUICKSTEP.CFLAGS = [ FIncludes $(TOP)/Extras/quickstep ] ;
|
||||||
|
|
||||||
|
#same for msvcgen
|
||||||
|
MsvcGenConfig QUICKSTEP.INCDIRS : $(TOP)/Extras/quickstep ;
|
||||||
|
|
||||||
|
#for the include paths
|
||||||
|
LibDepends quickstep : BulletDynamics ;
|
||||||
|
|
||||||
|
|
||||||
InstallHeader [ Wildcard *.h ] : quickstep ;
|
InstallHeader [ Wildcard *.h ] : quickstep ;
|
||||||
|
|||||||
Reference in New Issue
Block a user