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