Browse Source

Package-definition for physx.

enn0x 16 years ago
parent
commit
3c680af9b5
2 changed files with 12 additions and 0 deletions
  1. 1 0
      direct/src/ffi/panda3d.py
  2. 11 0
      direct/src/p3d/panda3d.pdef

+ 1 - 0
direct/src/ffi/panda3d.py

@@ -10,6 +10,7 @@ panda3d_modules = {
     "egg"         : "libpandaegg",
     "ode"         : "libpandaode",
     "vision"      : "libp3vision",
+    "physx"       : "libpandaphysx",
 }
 
 class panda3d_import_manager:

+ 11 - 0
direct/src/p3d/panda3d.pdef

@@ -66,6 +66,7 @@ class panda3d(package):
     excludeModule('libpandaode')
     excludeModule('libp3vision')
     excludeModule('libpandaskel')
+    excludeModule('libpandaphysx')
 
     # Exclude these GUI toolkits; they're big, and many applications don't
     # use them.  We define them as separate, optional packages, below.
@@ -256,6 +257,16 @@ class ode(package):
 
     file('libpandaode.dll')
 
+class physx(package):
+    # This package contains the code for the NVIDIA PhysX integration.
+    # As not every application uses the NVIDIA PhysX layers, and to cut down
+    # the download size, it is provided as separate package.
+
+    config(display_name = "Panda3D PhysX integration")
+    require('panda3d')
+
+    file('libpandaphysx.dll')
+
 class vision(package):
     # This package contains the code for webcam support, augmented
     # reality and computer vision. As many games will not need this