mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Add ppremake package for bullet
This commit is contained in:
parent
c7c5671911
commit
91e305789a
@ -1126,6 +1126,16 @@
|
||||
// Unset this if you built libRocket without Python bindings
|
||||
#defer HAVE_ROCKET_PYTHON $[and $[HAVE_ROCKET],$[HAVE_PYTHON]]
|
||||
|
||||
// Bullet is a physics engine
|
||||
#define BULLET_IPATH /usr/local/include
|
||||
#define BULLET_LPATH /usr/local/lib
|
||||
#if $[WINDOWS_PLATFORM]
|
||||
#define BULLET_LIBS BulletSoftBody.lib BulletDynamics.lib BulletCollision.lib LinearMath.lib
|
||||
#else
|
||||
#define BULLET_LIBS BulletSoftBody BulletDynamics BulletCollision LinearMath
|
||||
#endif
|
||||
#defer HAVE_BULLET $[libtest $[BULLET_LPATH],$[BULLET_LIBS]]
|
||||
|
||||
// Define this to explicitly indicate the given platform string within
|
||||
// the resulting Panda runtime. Normally it is best to leave this
|
||||
// undefined, in which case Panda will determine the best value
|
||||
|
@ -239,6 +239,11 @@
|
||||
#else
|
||||
#print - Did not find libRocket
|
||||
#endif
|
||||
#if $[HAVE_BULLET]
|
||||
#print + Bullet Physics
|
||||
#else
|
||||
#print - Did not find Bullet Physics
|
||||
#endif
|
||||
|
||||
#print
|
||||
#if $[and $[HAVE_INTERROGATE],$[HAVE_PYTHON]]
|
||||
|
@ -386,6 +386,11 @@
|
||||
#set HAVE_ROCKET $[HAVE_ROCKET]
|
||||
#set HAVE_ROCKET_PYTHON $[HAVE_ROCKET_PYTHON]
|
||||
|
||||
#set BULLET_IPATH $[unixfilename $[BULLET_IPATH]]
|
||||
#set BULLET_LPATH $[unixfilename $[BULLET_LPATH]]
|
||||
#set BULLET_LIBS $[BULLET_LIBS]
|
||||
#set HAVE_BULLET $[HAVE_BULLET]
|
||||
|
||||
// Now infer a few more variables based on what was defined.
|
||||
#if $[and $[HAVE_GTK],$[PKG_CONFIG]]
|
||||
#define cflags $[shell $[PKG_CONFIG] gtk+-2.0 --cflags]
|
||||
|
@ -504,6 +504,12 @@
|
||||
#define rocket_libs $[ROCKET_LIBS]
|
||||
#endif
|
||||
|
||||
#if $[HAVE_BULLET]
|
||||
#define bullet_ipath $[wildcard $[BULLET_IPATH]]
|
||||
#define bullet_lpath $[wildcard $[BULLET_LPATH]]
|
||||
#define bullet_libs $[BULLET_LIBS]
|
||||
#endif
|
||||
|
||||
// We define these two variables true here in the global scope; a
|
||||
// particular Sources.pp file can redefine these to be false to
|
||||
// prevent a particular directory or target from being built in
|
||||
|
Loading…
x
Reference in New Issue
Block a user