updated build systems/GPU_physics for Mac OS X

This commit is contained in:
ejcoumans
2006-12-08 22:04:02 +00:00
parent 1aa4e010f0
commit f9832f6b88
15 changed files with 119 additions and 49 deletions

View File

@@ -1,8 +1,9 @@
SubDir TOP Extras COLLADA_DOM ;
IncludeDir Extras/COLLADA_DOM/include ;
IncludeDir Extras/COLLADA_DOM/include/1.4 ;
IncludeDir Extras/LibXML/include ;
#IncludeDir Extras/COLLADA_DOM/include ;
#IncludeDir Extras/COLLADA_DOM/include/1.4 ;
#IncludeDir Extras/LibXML/include ;
Library colladadom :
[ Wildcard src/dae : *.h *.cpp ]

View File

@@ -1,10 +1,13 @@
SubDir TOP Extras ConvexDecomposition ;
IncludeDir Extras/ConvexDecomposition ;
Library convexdecomposition : [ Wildcard *.h *.cpp ] ;
CFlags convexdecomposition : [ FIncludes $(TOP)/Extras/Decomposition ] ;
LibDepends convexdecomposition : ;
MsvcGenConfig ConvexDecomposition.INCDIRS : $(TOP)/Extras/ConvexDecomposition ;
InstallHeader [ Wildcard *.h ] : ConvexDecomposition ;

View File

@@ -88,15 +88,16 @@
#include <float.h>
#include <errno.h>
#include <GL/glew.h>
#if defined(GPUP_MAC_OSX) && !defined (VMDMESA)
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#include <OpenGL/glext.h>
#else
#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glew.h>
#endif
#ifdef DISABLE_GL_ERROR_CHECKS

View File

@@ -164,7 +164,10 @@ void initGLcontext ( int argc, char **argv,
glutKeyboardFunc ( keybd ) ;
glutReshapeFunc ( reshape ) ;
#if defined(GPUP_MAC_OSX) && !defined (VMDMESA)
#else
glewInit () ;
#endif
checkVertexTextureSupport ( disableVertexTextureSupport ) ;
}

View File

@@ -6,18 +6,16 @@ if $(GLUT.AVAILABLE) = "yes"
rule GPUDemo
{
Application $(<) : $(>) : noinstall console nomanifest ;
LinkWith $(<) : GLUT ;
# LinkWith $(<) : GLUT ;
CFlags $(<) :
[ FIncludes $(TOP)/Demos/OpenGL ]
[ FIncludes $(TOP)/Extras/PhysicsInterface/CcdPhysics ]
[ FIncludes $(TOP)/Extras/PhysicsInterface/Common ]
;
MsvcIncDirs $(<) :
"../../Demos/OpenGL"
"../../Extras/PhysicsInterface/CcdPhysics"
"../../Extras/PhysicsInterface/Common" ;
ExternalLibs $(<) : GLUT GLEW ;
ExternalLibs GPUphysics : GLUT ;
}
}

View File

@@ -3,7 +3,7 @@ HDRS = fboSupport.h shaderSupport.h
OBJS = GPU_physics_demo.o fboSupport.o shaderSupport.o clock.o
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}
g++ -c shaderSupport.cpp

View File

@@ -11,4 +11,4 @@ SubInclude TOP Extras GIMPACT ;
SubInclude TOP Extras GIMPACTBullet ;
#GPUphysics needs 'make', not jam compatible build yet:
#SubInclude TOP Extras GPUphysics ;
SubInclude TOP Extras GPUphysics ;

View File

@@ -1,10 +1,20 @@
SubDir TOP Extras quickstep ;
IncludeDir Extras/quickstep ;
#this is a bad global
#IncludeDir Extras/quickstep ;
Library quickstep : [ Wildcard *.h *.cpp ] ;
#internal header path to compile 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 ;