mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
OSX support for the PhysX SDK
This commit is contained in:
parent
3d43d0c8ad
commit
0d12ddf3e9
@ -636,8 +636,12 @@ if (COMPILER=="LINUX"):
|
|||||||
IncDirectory("PHYSX", SDK["PHYSX"] + "/Foundation/include")
|
IncDirectory("PHYSX", SDK["PHYSX"] + "/Foundation/include")
|
||||||
IncDirectory("PHYSX", SDK["PHYSX"] + "/Cooking/include")
|
IncDirectory("PHYSX", SDK["PHYSX"] + "/Cooking/include")
|
||||||
LibDirectory("PHYSX", SDK["PHYSXLIBS"])
|
LibDirectory("PHYSX", SDK["PHYSXLIBS"])
|
||||||
LibName("PHYSX", "-lPhysXLoader")
|
if (sys.platform == "darwin"):
|
||||||
LibName("PHYSX", "-lNxCharacter")
|
LibName("PHYSX", SDK["PHYSXLIBS"] + "/osxstatic/PhysXCooking.a")
|
||||||
|
LibName("PHYSX", SDK["PHYSXLIBS"] + "/osxstatic/PhysXCore.a")
|
||||||
|
else:
|
||||||
|
LibName("PHYSX", "-lPhysXLoader")
|
||||||
|
LibName("PHYSX", "-lNxCharacter")
|
||||||
|
|
||||||
DefSymbol("ALWAYS", "MAKEPANDA", "")
|
DefSymbol("ALWAYS", "MAKEPANDA", "")
|
||||||
DefSymbol("WITHINPANDA", "WITHIN_PANDA", "1")
|
DefSymbol("WITHINPANDA", "WITHIN_PANDA", "1")
|
||||||
@ -3349,7 +3353,7 @@ if (PkgSkip("ODE")==0 and not RUNTIME):
|
|||||||
#
|
#
|
||||||
|
|
||||||
if (PkgSkip("PHYSX")==0):
|
if (PkgSkip("PHYSX")==0):
|
||||||
OPTS=['DIR:panda/src/physx', 'BUILDING:PANDAPHYSX', 'PHYSX']
|
OPTS=['DIR:panda/src/physx', 'BUILDING:PANDAPHYSX', 'PHYSX', 'NOPPC']
|
||||||
TargetAdd('physx_composite.obj', opts=OPTS, input='physx_composite.cxx')
|
TargetAdd('physx_composite.obj', opts=OPTS, input='physx_composite.cxx')
|
||||||
IGATEFILES=GetDirectoryContents('panda/src/physx', ["*.h", "*_composite.cxx"])
|
IGATEFILES=GetDirectoryContents('panda/src/physx', ["*.h", "*_composite.cxx"])
|
||||||
TargetAdd('libpandaphysx.in', opts=OPTS, input=IGATEFILES)
|
TargetAdd('libpandaphysx.in', opts=OPTS, input=IGATEFILES)
|
||||||
@ -3361,7 +3365,7 @@ if (PkgSkip("PHYSX")==0):
|
|||||||
#
|
#
|
||||||
|
|
||||||
if (PkgSkip("PHYSX")==0):
|
if (PkgSkip("PHYSX")==0):
|
||||||
OPTS=['DIR:panda/metalibs/pandaphysx', 'BUILDING:PANDAPHYSX', 'PHYSX']
|
OPTS=['DIR:panda/metalibs/pandaphysx', 'BUILDING:PANDAPHYSX', 'PHYSX', 'NOPPC']
|
||||||
TargetAdd('pandaphysx_pandaphysx.obj', opts=OPTS, input='pandaphysx.cxx')
|
TargetAdd('pandaphysx_pandaphysx.obj', opts=OPTS, input='pandaphysx.cxx')
|
||||||
|
|
||||||
TargetAdd('libpandaphysx_module.obj', input='libpandaphysx.in')
|
TargetAdd('libpandaphysx_module.obj', input='libpandaphysx.in')
|
||||||
@ -3373,7 +3377,7 @@ if (PkgSkip("PHYSX")==0):
|
|||||||
TargetAdd('libpandaphysx.dll', input='physx_composite.obj')
|
TargetAdd('libpandaphysx.dll', input='physx_composite.obj')
|
||||||
TargetAdd('libpandaphysx.dll', input='libpandaphysx_igate.obj')
|
TargetAdd('libpandaphysx.dll', input='libpandaphysx_igate.obj')
|
||||||
TargetAdd('libpandaphysx.dll', input=COMMON_PANDA_LIBS)
|
TargetAdd('libpandaphysx.dll', input=COMMON_PANDA_LIBS)
|
||||||
TargetAdd('libpandaphysx.dll', opts=['WINUSER', 'PHYSX'])
|
TargetAdd('libpandaphysx.dll', opts=['WINUSER', 'PHYSX', 'NOPPC'])
|
||||||
|
|
||||||
#
|
#
|
||||||
# DIRECTORY: panda/src/physics/
|
# DIRECTORY: panda/src/physics/
|
||||||
|
@ -17,34 +17,23 @@
|
|||||||
|
|
||||||
|
|
||||||
// Platform-specific defines
|
// Platform-specific defines
|
||||||
#ifdef WIN32
|
#if NATIVE_WORDSIZE == 64
|
||||||
#if _WIN64 || __amd64__
|
#define NX64
|
||||||
#define NX64 1
|
|
||||||
#else
|
|
||||||
#define NX32 1
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if NATIVE_WORDSIZE == 32
|
||||||
|
#define NX32
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef IS_LINUX
|
#ifdef IS_LINUX
|
||||||
#define LINUX 1
|
#define LINUX 1
|
||||||
#ifdef _LP64
|
|
||||||
#define NX64 1
|
|
||||||
#else
|
|
||||||
#define NX32 1
|
|
||||||
#endif
|
|
||||||
#define CORELIB 1
|
#define CORELIB 1
|
||||||
#define NX_DISABLE_FLUIDS 1
|
#define NX_DISABLE_FLUIDS 1
|
||||||
#define NX_DISABLE_HARDWARE 1
|
#define NX_DISABLE_HARDWARE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef IS_FREEBSD
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef IS_OSX
|
// Undefine min and max before any PhysX headers get included
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// Undefine min and max before ay PhysX headers get included
|
|
||||||
#undef min
|
#undef min
|
||||||
#undef max
|
#undef max
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user