forked from jwagner/box2d2-js
-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.sh
executable file
·11 lines (11 loc) · 11.6 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
if [ ! -f closure/compiler.jar ]
then
echo "closure compiler seems to be missing"
echo "read and follow instruction directory ./closure/"
exit 1
fi
echo "compiling box2d.js"
java -jar closure/compiler.jar --compilation_level=WHITESPACE_ONLY --formatting PRETTY_PRINT --js javascript/misc/extend.js --js javascript/Box2D/Collision/b2BoundValues.js --js javascript/Box2D/Collision/b2PairManager.js --js javascript/Box2D/Dynamics/b2TimeStep.js --js javascript/Box2D/Dynamics/Controllers/b2Controller.js --js javascript/Box2D/Dynamics/Controllers/b2GravityController.js --js javascript/Box2D/Dynamics/b2DestructionListener.js --js javascript/Box2D/Dynamics/Contacts/b2ContactEdge.js --js javascript/Box2D/Collision/Shapes/b2EdgeChainDef.js --js javascript/Box2D/Common/Math/b2Vec2.js --js javascript/Box2D/Common/Math/b2Vec3.js --js javascript/Box2D/Collision/b2DistanceProxy.js --js javascript/Box2D/Dynamics/Contacts/b2ContactFactory.js --js javascript/Box2D/Dynamics/Controllers/b2ConstantAccelController.js --js javascript/Box2D/Collision/b2SeparationFunction.js --js javascript/Box2D/Collision/b2DynamicTreePair.js --js javascript/Box2D/Dynamics/Contacts/b2ContactConstraintPoint.js --js javascript/Box2D/Dynamics/Controllers/b2ControllerEdge.js --js javascript/Box2D/Collision/b2DistanceInput.js --js javascript/Box2D/Common/b2Settings.js --js javascript/Box2D/Collision/b2Proxy.js --js javascript/Box2D/Collision/b2Point.js --js javascript/Box2D/Collision/b2WorldManifold.js --js javascript/Box2D/Collision/b2RayCastOutput.js --js javascript/Box2D/Dynamics/Controllers/b2ConstantForceController.js --js javascript/Box2D/Collision/Shapes/b2MassData.js --js javascript/Box2D/Collision/b2DynamicTree.js --js javascript/Box2D/Dynamics/Joints/b2JointEdge.js --js javascript/Box2D/Collision/b2RayCastInput.js --js javascript/Box2D/Collision/Features.js --js javascript/Box2D/Dynamics/b2FilterData.js --js javascript/Box2D/Collision/b2AABB.js --js javascript/Box2D/Dynamics/Joints/b2Jacobian.js --js javascript/Box2D/Collision/b2Bound.js --js javascript/Box2D/Collision/b2SimplexVertex.js --js javascript/Box2D/Common/Math/b2Mat22.js --js javascript/Box2D/Collision/b2SimplexCache.js --js javascript/Box2D/Collision/Shapes/b2Shape.js --js javascript/Box2D/Collision/b2Segment.js --js javascript/Box2D/Dynamics/Contacts/b2ContactRegister.js --js javascript/Box2D/Dynamics/b2DebugDraw.js --js javascript/Box2D/Common/Math/b2Sweep.js --js javascript/Box2D/Collision/b2DistanceOutput.js --js javascript/Box2D/Common/Math/b2Mat33.js --js javascript/Box2D/Dynamics/Contacts/b2PositionSolverManifold.js --js javascript/Box2D/Collision/b2OBB.js --js javascript/Box2D/Collision/b2Pair.js --js javascript/Box2D/Dynamics/b2FixtureDef.js --js javascript/Box2D/Collision/b2ContactID.js --js javascript/Box2D/Common/Math/b2Transform.js --js javascript/Box2D/Collision/Shapes/b2EdgeShape.js --js javascript/Box2D/Dynamics/Controllers/b2BuoyancyController.js --js javascript/Box2D/Dynamics/b2Body.js --js javascript/Box2D/Dynamics/b2ContactImpulse.js --js javascript/Box2D/Dynamics/Controllers/b2TensorDampingController.js --js javascript/Box2D/Collision/b2ManifoldPoint.js --js javascript/Box2D/Collision/Shapes/b2PolygonShape.js --js javascript/Box2D/Dynamics/b2Fixture.js --js javascript/Box2D/Collision/b2DynamicTreeNode.js --js javascript/Box2D/Dynamics/b2BodyDef.js --js javascript/Box2D/Collision/b2DynamicTreeBroadPhase.js --js javascript/Box2D/Collision/b2BroadPhase.js --js javascript/Box2D/Collision/b2Manifold.js --js javascript/Box2D/Collision/Shapes/b2CircleShape.js --js javascript/Box2D/Dynamics/Joints/b2Joint.js --js javascript/Box2D/Dynamics/Joints/b2LineJoint.js --js javascript/Box2D/Dynamics/Contacts/b2ContactSolver.js --js javascript/Box2D/Collision/b2Simplex.js --js javascript/Box2D/Dynamics/Joints/b2WeldJoint.js --js javascript/Box2D/Common/Math/b2Math.js --js javascript/Box2D/Dynamics/Joints/b2PulleyJoint.js --js javascript/Box2D/Dynamics/Joints/b2PrismaticJoint.js --js javascript/Box2D/Dynamics/Joints/b2RevoluteJoint.js --js javascript/Box2D/Dynamics/Joints/b2JointDef.js --js javascript/Box2D/Dynamics/Joints/b2LineJointDef.js --js javascript/Box2D/Dynamics/Joints/b2DistanceJoint.js --js javascript/Box2D/Dynamics/Joints/b2PulleyJointDef.js --js javascript/Box2D/Dynamics/Joints/b2DistanceJointDef.js --js javascript/Box2D/Dynamics/Joints/b2FrictionJointDef.js --js javascript/Box2D/Dynamics/Joints/b2WeldJointDef.js --js javascript/Box2D/Dynamics/Joints/b2GearJointDef.js --js javascript/Box2D/Common/b2Color.js --js javascript/Box2D/Dynamics/Joints/b2FrictionJoint.js --js javascript/Box2D/Collision/b2Distance.js --js javascript/Box2D/Dynamics/Joints/b2MouseJoint.js --js javascript/Box2D/Dynamics/Joints/b2PrismaticJointDef.js --js javascript/Box2D/Collision/b2TimeOfImpact.js --js javascript/Box2D/Dynamics/Joints/b2GearJoint.js --js javascript/Box2D/Collision/b2TOIInput.js --js javascript/Box2D/Dynamics/Joints/b2RevoluteJointDef.js --js javascript/Box2D/Dynamics/Joints/b2MouseJointDef.js --js javascript/Box2D/Dynamics/Contacts/b2Contact.js --js javascript/Box2D/Dynamics/Contacts/b2ContactConstraint.js --js javascript/Box2D/Dynamics/Contacts/b2ContactResult.js --js javascript/Box2D/Dynamics/Contacts/b2PolygonContact.js --js javascript/Box2D/Collision/ClipVertex.js --js javascript/Box2D/Dynamics/b2ContactFilter.js --js javascript/Box2D/Dynamics/Contacts/b2NullContact.js --js javascript/Box2D/Dynamics/b2ContactListener.js --js javascript/Box2D/Dynamics/b2Island.js --js javascript/Box2D/Dynamics/Contacts/b2PolyAndEdgeContact.js --js javascript/Box2D/Collision/b2Collision.js --js javascript/Box2D/Dynamics/Contacts/b2PolyAndCircleContact.js --js javascript/Box2D/Collision/b2ContactPoint.js --js javascript/Box2D/Dynamics/Contacts/b2CircleContact.js --js javascript/Box2D/Dynamics/Contacts/b2EdgeAndCircleContact.js --js javascript/Box2D/Dynamics/b2ContactManager.js --js javascript/Box2D/Dynamics/b2World.js --js javascript/misc/exports.js --js_output_file javascript/Box2D/box2d.js
echo "compiling box2d.min.js"
java -jar closure/compiler.jar --js javascript/misc/extend.js --js javascript/Box2D/Collision/b2BoundValues.js --js javascript/Box2D/Collision/b2PairManager.js --js javascript/Box2D/Dynamics/b2TimeStep.js --js javascript/Box2D/Dynamics/Controllers/b2Controller.js --js javascript/Box2D/Dynamics/Controllers/b2GravityController.js --js javascript/Box2D/Dynamics/b2DestructionListener.js --js javascript/Box2D/Dynamics/Contacts/b2ContactEdge.js --js javascript/Box2D/Collision/Shapes/b2EdgeChainDef.js --js javascript/Box2D/Common/Math/b2Vec2.js --js javascript/Box2D/Common/Math/b2Vec3.js --js javascript/Box2D/Collision/b2DistanceProxy.js --js javascript/Box2D/Dynamics/Contacts/b2ContactFactory.js --js javascript/Box2D/Dynamics/Controllers/b2ConstantAccelController.js --js javascript/Box2D/Collision/b2SeparationFunction.js --js javascript/Box2D/Collision/b2DynamicTreePair.js --js javascript/Box2D/Dynamics/Contacts/b2ContactConstraintPoint.js --js javascript/Box2D/Dynamics/Controllers/b2ControllerEdge.js --js javascript/Box2D/Collision/b2DistanceInput.js --js javascript/Box2D/Common/b2Settings.js --js javascript/Box2D/Collision/b2Proxy.js --js javascript/Box2D/Collision/b2Point.js --js javascript/Box2D/Collision/b2WorldManifold.js --js javascript/Box2D/Collision/b2RayCastOutput.js --js javascript/Box2D/Dynamics/Controllers/b2ConstantForceController.js --js javascript/Box2D/Collision/Shapes/b2MassData.js --js javascript/Box2D/Collision/b2DynamicTree.js --js javascript/Box2D/Dynamics/Joints/b2JointEdge.js --js javascript/Box2D/Collision/b2RayCastInput.js --js javascript/Box2D/Collision/Features.js --js javascript/Box2D/Dynamics/b2FilterData.js --js javascript/Box2D/Collision/b2AABB.js --js javascript/Box2D/Dynamics/Joints/b2Jacobian.js --js javascript/Box2D/Collision/b2Bound.js --js javascript/Box2D/Collision/b2SimplexVertex.js --js javascript/Box2D/Common/Math/b2Mat22.js --js javascript/Box2D/Collision/b2SimplexCache.js --js javascript/Box2D/Collision/Shapes/b2Shape.js --js javascript/Box2D/Collision/b2Segment.js --js javascript/Box2D/Dynamics/Contacts/b2ContactRegister.js --js javascript/Box2D/Dynamics/b2DebugDraw.js --js javascript/Box2D/Common/Math/b2Sweep.js --js javascript/Box2D/Collision/b2DistanceOutput.js --js javascript/Box2D/Common/Math/b2Mat33.js --js javascript/Box2D/Dynamics/Contacts/b2PositionSolverManifold.js --js javascript/Box2D/Collision/b2OBB.js --js javascript/Box2D/Collision/b2Pair.js --js javascript/Box2D/Dynamics/b2FixtureDef.js --js javascript/Box2D/Collision/b2ContactID.js --js javascript/Box2D/Common/Math/b2Transform.js --js javascript/Box2D/Collision/Shapes/b2EdgeShape.js --js javascript/Box2D/Dynamics/Controllers/b2BuoyancyController.js --js javascript/Box2D/Dynamics/b2Body.js --js javascript/Box2D/Dynamics/b2ContactImpulse.js --js javascript/Box2D/Dynamics/Controllers/b2TensorDampingController.js --js javascript/Box2D/Collision/b2ManifoldPoint.js --js javascript/Box2D/Collision/Shapes/b2PolygonShape.js --js javascript/Box2D/Dynamics/b2Fixture.js --js javascript/Box2D/Collision/b2DynamicTreeNode.js --js javascript/Box2D/Dynamics/b2BodyDef.js --js javascript/Box2D/Collision/b2DynamicTreeBroadPhase.js --js javascript/Box2D/Collision/b2BroadPhase.js --js javascript/Box2D/Collision/b2Manifold.js --js javascript/Box2D/Collision/Shapes/b2CircleShape.js --js javascript/Box2D/Dynamics/Joints/b2Joint.js --js javascript/Box2D/Dynamics/Joints/b2LineJoint.js --js javascript/Box2D/Dynamics/Contacts/b2ContactSolver.js --js javascript/Box2D/Collision/b2Simplex.js --js javascript/Box2D/Dynamics/Joints/b2WeldJoint.js --js javascript/Box2D/Common/Math/b2Math.js --js javascript/Box2D/Dynamics/Joints/b2PulleyJoint.js --js javascript/Box2D/Dynamics/Joints/b2PrismaticJoint.js --js javascript/Box2D/Dynamics/Joints/b2RevoluteJoint.js --js javascript/Box2D/Dynamics/Joints/b2JointDef.js --js javascript/Box2D/Dynamics/Joints/b2LineJointDef.js --js javascript/Box2D/Dynamics/Joints/b2DistanceJoint.js --js javascript/Box2D/Dynamics/Joints/b2PulleyJointDef.js --js javascript/Box2D/Dynamics/Joints/b2DistanceJointDef.js --js javascript/Box2D/Dynamics/Joints/b2FrictionJointDef.js --js javascript/Box2D/Dynamics/Joints/b2WeldJointDef.js --js javascript/Box2D/Dynamics/Joints/b2GearJointDef.js --js javascript/Box2D/Common/b2Color.js --js javascript/Box2D/Dynamics/Joints/b2FrictionJoint.js --js javascript/Box2D/Collision/b2Distance.js --js javascript/Box2D/Dynamics/Joints/b2MouseJoint.js --js javascript/Box2D/Dynamics/Joints/b2PrismaticJointDef.js --js javascript/Box2D/Collision/b2TimeOfImpact.js --js javascript/Box2D/Dynamics/Joints/b2GearJoint.js --js javascript/Box2D/Collision/b2TOIInput.js --js javascript/Box2D/Dynamics/Joints/b2RevoluteJointDef.js --js javascript/Box2D/Dynamics/Joints/b2MouseJointDef.js --js javascript/Box2D/Dynamics/Contacts/b2Contact.js --js javascript/Box2D/Dynamics/Contacts/b2ContactConstraint.js --js javascript/Box2D/Dynamics/Contacts/b2ContactResult.js --js javascript/Box2D/Dynamics/Contacts/b2PolygonContact.js --js javascript/Box2D/Collision/ClipVertex.js --js javascript/Box2D/Dynamics/b2ContactFilter.js --js javascript/Box2D/Dynamics/Contacts/b2NullContact.js --js javascript/Box2D/Dynamics/b2ContactListener.js --js javascript/Box2D/Dynamics/b2Island.js --js javascript/Box2D/Dynamics/Contacts/b2PolyAndEdgeContact.js --js javascript/Box2D/Collision/b2Collision.js --js javascript/Box2D/Dynamics/Contacts/b2PolyAndCircleContact.js --js javascript/Box2D/Collision/b2ContactPoint.js --js javascript/Box2D/Dynamics/Contacts/b2CircleContact.js --js javascript/Box2D/Dynamics/Contacts/b2EdgeAndCircleContact.js --js javascript/Box2D/Dynamics/b2ContactManager.js --js javascript/Box2D/Dynamics/b2World.js --js javascript/misc/exports.js --js_output_file javascript//Box2D/box2d.min.js