|
|
|
@ -102,56 +102,58 @@ task copyJmeAndroid(type: Copy, dependsOn:copyJmeCpp) { |
|
|
|
|
into outputDir |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
task generateNativeHeaders(dependsOn: copyJmeAndroid) << { |
|
|
|
|
String destDirPath = jniPath |
|
|
|
|
String classes = " \ |
|
|
|
|
com.jme3.bullet.PhysicsSpace, \ |
|
|
|
|
\ |
|
|
|
|
com.jme3.bullet.collision.PhysicsCollisionEvent, \ |
|
|
|
|
com.jme3.bullet.collision.PhysicsCollisionObject,\ |
|
|
|
|
com.jme3.bullet.objects.PhysicsCharacter, \ |
|
|
|
|
com.jme3.bullet.objects.PhysicsGhostObject, \ |
|
|
|
|
com.jme3.bullet.objects.PhysicsRigidBody, \ |
|
|
|
|
com.jme3.bullet.objects.PhysicsVehicle, \ |
|
|
|
|
com.jme3.bullet.objects.VehicleWheel, \ |
|
|
|
|
com.jme3.bullet.objects.infos.RigidBodyMotionState, \ |
|
|
|
|
\ |
|
|
|
|
com.jme3.bullet.collision.shapes.CollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.BoxCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.CapsuleCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.CompoundCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.ConeCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.CylinderCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.GImpactCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.HeightfieldCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.HullCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.MeshCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.PlaneCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.SimplexCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.SphereCollisionShape, \ |
|
|
|
|
\ |
|
|
|
|
com.jme3.bullet.joints.PhysicsJoint, \ |
|
|
|
|
com.jme3.bullet.joints.ConeJoint, \ |
|
|
|
|
com.jme3.bullet.joints.HingeJoint, \ |
|
|
|
|
com.jme3.bullet.joints.Point2PointJoint, \ |
|
|
|
|
com.jme3.bullet.joints.SixDofJoint, \ |
|
|
|
|
com.jme3.bullet.joints.SixDofSpringJoint, \ |
|
|
|
|
com.jme3.bullet.joints.SliderJoint, \ |
|
|
|
|
com.jme3.bullet.joints.motors.RotationalLimitMotor, \ |
|
|
|
|
com.jme3.bullet.joints.motors.TranslationalLimitMotor, \ |
|
|
|
|
\ |
|
|
|
|
com.jme3.bullet.util.NativeMeshUtil, \ |
|
|
|
|
com.jme3.bullet.util.DebugShapeFactory" |
|
|
|
|
|
|
|
|
|
String projectClassPath = configurations.runtime.asFileTree.matching { |
|
|
|
|
exclude ".gradle" |
|
|
|
|
}.asPath |
|
|
|
|
|
|
|
|
|
exec { |
|
|
|
|
executable org.gradle.internal.jvm.Jvm.current().getExecutable('javah') |
|
|
|
|
args '-d', destDirPath |
|
|
|
|
args '-classpath', projectClassPath |
|
|
|
|
args classes.split(",").collect { it.trim() } |
|
|
|
|
task generateNativeHeaders(dependsOn: copyJmeAndroid) { |
|
|
|
|
doLast { |
|
|
|
|
String destDirPath = jniPath |
|
|
|
|
String classes = " \ |
|
|
|
|
com.jme3.bullet.PhysicsSpace, \ |
|
|
|
|
\ |
|
|
|
|
com.jme3.bullet.collision.PhysicsCollisionEvent, \ |
|
|
|
|
com.jme3.bullet.collision.PhysicsCollisionObject,\ |
|
|
|
|
com.jme3.bullet.objects.PhysicsCharacter, \ |
|
|
|
|
com.jme3.bullet.objects.PhysicsGhostObject, \ |
|
|
|
|
com.jme3.bullet.objects.PhysicsRigidBody, \ |
|
|
|
|
com.jme3.bullet.objects.PhysicsVehicle, \ |
|
|
|
|
com.jme3.bullet.objects.VehicleWheel, \ |
|
|
|
|
com.jme3.bullet.objects.infos.RigidBodyMotionState, \ |
|
|
|
|
\ |
|
|
|
|
com.jme3.bullet.collision.shapes.CollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.BoxCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.CapsuleCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.CompoundCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.ConeCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.CylinderCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.GImpactCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.HeightfieldCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.HullCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.MeshCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.PlaneCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.SimplexCollisionShape, \ |
|
|
|
|
com.jme3.bullet.collision.shapes.SphereCollisionShape, \ |
|
|
|
|
\ |
|
|
|
|
com.jme3.bullet.joints.PhysicsJoint, \ |
|
|
|
|
com.jme3.bullet.joints.ConeJoint, \ |
|
|
|
|
com.jme3.bullet.joints.HingeJoint, \ |
|
|
|
|
com.jme3.bullet.joints.Point2PointJoint, \ |
|
|
|
|
com.jme3.bullet.joints.SixDofJoint, \ |
|
|
|
|
com.jme3.bullet.joints.SixDofSpringJoint, \ |
|
|
|
|
com.jme3.bullet.joints.SliderJoint, \ |
|
|
|
|
com.jme3.bullet.joints.motors.RotationalLimitMotor, \ |
|
|
|
|
com.jme3.bullet.joints.motors.TranslationalLimitMotor, \ |
|
|
|
|
\ |
|
|
|
|
com.jme3.bullet.util.NativeMeshUtil, \ |
|
|
|
|
com.jme3.bullet.util.DebugShapeFactory" |
|
|
|
|
|
|
|
|
|
String projectClassPath = configurations.runtime.asFileTree.matching { |
|
|
|
|
exclude ".gradle" |
|
|
|
|
}.asPath |
|
|
|
|
|
|
|
|
|
exec { |
|
|
|
|
executable org.gradle.internal.jvm.Jvm.current().getExecutable('javah') |
|
|
|
|
args '-d', destDirPath |
|
|
|
|
args '-classpath', projectClassPath |
|
|
|
|
args classes.split(",").collect { it.trim() } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|