[DEV] update 'lutin' build system

This commit is contained in:
Edouard DUPIN 2013-04-21 22:29:27 +02:00
parent 3c84f23849
commit 63d20a72e1
18 changed files with 419 additions and 427 deletions

2
build

@ -1 +1 @@
Subproject commit 860d7607affca2c1ce9bbc8c8802dceaa339e9d7
Subproject commit f3b74bbc02bc94ce4e08442eee9b0445188f9177

2
external/agg vendored

@ -1 +1 @@
Subproject commit 60870aaed544ddb8a33ba4eaa9a388d52a959cdd
Subproject commit 2f0d060a19a19322d0d2a3ec18da9a731c678b2b

View File

@ -1,188 +0,0 @@
#!/usr/bin/python
# --------------------------------------------------------
# -- Bullet librairy
# --------------------------------------------------------
import module
import buildTools
myModule = module.module(__file__, 'bullet', 'LIBRARY')
myModule.AddModuleDepend(['linearmath'])
myModule.CompileFlags_CC([
'-Wno-write-strings',
'-DHAVE_CONFIG_H',
'-O2'])
myModule.AddExportPath(buildTools.GetCurrentPath(__file__)+"/bullet/src/")
myModule.AddExportPath(buildTools.GetCurrentPath(__file__))
myModule.AddPath(buildTools.GetCurrentPath(__file__)+"/bullet/Extras/ConvexDecomposition")
# lib BulletCollision
myModule.AddSrcFile([
'bullet/src/BulletCollision/NarrowPhaseCollision/btRaycastCallback.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkConvexCast.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btPersistentManifold.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btConvexCast.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btPolyhedralContactClipping.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkEpa2.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btCollisionObject.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btEmptyCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btGhostObject.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btSphereBoxCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btCollisionDispatcher.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btSimulationIslandManager.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btBoxBoxDetector.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btConvexConcaveCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/SphereTriangleDetector.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btInternalEdgeUtility.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btManifoldResult.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btCollisionWorld.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btUnionFind.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTetrahedronShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btShapeHull.cpp',
'bullet/src/BulletCollision/CollisionShapes/btMinkowskiSumShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btCompoundShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConeShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvexPolyhedron.cpp',
'bullet/src/BulletCollision/CollisionShapes/btMultiSphereShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btUniformScalingShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btSphereShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTriangleIndexVertexArray.cpp',
'bullet/src/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTriangleMeshShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTriangleBuffer.cpp',
'bullet/src/BulletCollision/CollisionShapes/btStaticPlaneShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btPolyhedralConvexShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btEmptyShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btCollisionShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvexShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvex2dShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTriangleCallback.cpp',
'bullet/src/BulletCollision/CollisionShapes/btCapsuleShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvexTriangleMeshShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConcaveShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvexPointCloudShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btBoxShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btBox2dShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btOptimizedBvh.cpp',
'bullet/src/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btCylinderShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btStridingMeshInterface.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTriangleMesh.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btAxisSweep3.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btMultiSapBroadphase.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btDispatcher.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btBroadphaseProxy.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btDbvt.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp',
'bullet/src/BulletCollision/Gimpact/btGImpactBvh.cpp',
'bullet/src/BulletCollision/Gimpact/btGImpactQuantizedBvh.cpp',
'bullet/src/BulletCollision/Gimpact/btTriangleShapeEx.cpp',
'bullet/src/BulletCollision/Gimpact/btGImpactCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/Gimpact/btGImpactShape.cpp',
'bullet/src/BulletCollision/Gimpact/gim_box_set.cpp',
'bullet/src/BulletCollision/Gimpact/gim_contact.cpp',
'bullet/src/BulletCollision/Gimpact/gim_memory.cpp',
'bullet/src/BulletCollision/Gimpact/gim_tri_collision.cpp'])
# lib BulletDynamics
myModule.AddSrcFile([
'bullet/src/BulletDynamics/Dynamics/btRigidBody.cpp',
'bullet/src/BulletDynamics/Dynamics/btSimpleDynamicsWorld.cpp',
'bullet/src/BulletDynamics/Dynamics/Bullet-C-API.cpp',
'bullet/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btGearConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btSolve2LinearConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btPoint2PointConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btTypedConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btContactConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btUniversalConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp',
'bullet/src/BulletDynamics/Vehicle/btWheelInfo.cpp',
'bullet/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp',
'bullet/src/BulletDynamics/Character/btKinematicCharacterController.cpp'])
# lib BulletSoftBody
myModule.AddSrcFile([
'bullet/src/BulletSoftBody/btDefaultSoftBodySolver.cpp',
'bullet/src/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp',
'bullet/src/BulletSoftBody/btSoftBody.cpp',
'bullet/src/BulletSoftBody/btSoftRigidCollisionAlgorithm.cpp',
'bullet/src/BulletSoftBody/btSoftBodyConcaveCollisionAlgorithm.cpp',
'bullet/src/BulletSoftBody/btSoftRigidDynamicsWorld.cpp',
'bullet/src/BulletSoftBody/btSoftBodyHelpers.cpp',
'bullet/src/BulletSoftBody/btSoftSoftCollisionAlgorithm.cpp'])
# lib gimpactutils
myModule.AddSrcFile([
'bullet/Extras/GIMPACTUtils/btGImpactConvexDecompositionShape.cpp'])
"""
# lib convexdecomposition
myModule.AddSrcFile([
'bullet/Extras/ConvexDecomposition/concavity.cpp',
'bullet/Extras/ConvexDecomposition/ConvexDecomposition.cpp',
'bullet/Extras/ConvexDecomposition/vlookup.cpp',
'bullet/Extras/ConvexDecomposition/bestfit.cpp',
'bullet/Extras/ConvexDecomposition/ConvexBuilder.cpp',
'bullet/Extras/ConvexDecomposition/cd_hull.cpp',
'bullet/Extras/ConvexDecomposition/raytri.cpp',
'bullet/Extras/ConvexDecomposition/splitplane.cpp',
'bullet/Extras/ConvexDecomposition/float_math.cpp',
'bullet/Extras/ConvexDecomposition/planetri.cpp',
'bullet/Extras/ConvexDecomposition/cd_wavefront.cpp',
'bullet/Extras/ConvexDecomposition/bestfitobb.cpp',
'bullet/Extras/ConvexDecomposition/meshvolume.cpp',
'bullet/Extras/ConvexDecomposition/fitsphere.cpp'])
"""
"""
# lib HACD
myModule.AddSrcFile([
'bullet/Extras/HACD/hacdGraph.cpp',
'bullet/Extras/HACD/hacdHACD.cpp',
'bullet/Extras/HACD/hacdICHull.cpp',
'bullet/Extras/HACD/hacdManifoldMesh.cpp'])
"""
# add the currrent module at the
module.AddModule(myModule)

View File

@ -1,34 +0,0 @@
#!/usr/bin/python
# --------------------------------------------------------
# -- Linear Math librairy
# --------------------------------------------------------
import module
import buildTools
myModule = module.module(__file__, 'linearmath', 'LIBRARY')
myModule.AddSrcFile([
'bullet/src/LinearMath/btQuickprof.cpp',
'bullet/src/LinearMath/btGeometryUtil.cpp',
'bullet/src/LinearMath/btAlignedAllocator.cpp',
'bullet/src/LinearMath/btSerializer.cpp',
'bullet/src/LinearMath/btConvexHull.cpp',
'bullet/src/LinearMath/btPolarDecomposition.cpp',
'bullet/src/LinearMath/btVector3.cpp',
'bullet/src/LinearMath/btConvexHullComputer.cpp'])
myModule.CompileFlags_CC([
'-Wno-write-strings',
'-DHAVE_CONFIG_H',
'-O2'])
myModule.AddExportPath(buildTools.GetCurrentPath(__file__)+"/bullet/src/")
# add the currrent module at the
module.AddModule(myModule)

View File

@ -1,2 +0,0 @@
#!/usr/bin/python

189
external/bullet/lutin_bullet.py vendored Normal file
View File

@ -0,0 +1,189 @@
#!/usr/bin/python
# --------------------------------------------------------
# -- Bullet librairy
# --------------------------------------------------------
import lutinModule
import lutinTools
def Create(target):
myModule = lutinModule.module(__file__, 'bullet', 'LIBRARY')
myModule.AddModuleDepend(['linearmath'])
myModule.CompileFlags_CC([
'-Wno-write-strings',
'-DHAVE_CONFIG_H',
'-O2'])
myModule.AddExportPath(lutinTools.GetCurrentPath(__file__)+"/bullet/src/")
myModule.AddExportPath(lutinTools.GetCurrentPath(__file__))
myModule.AddPath(lutinTools.GetCurrentPath(__file__)+"/bullet/Extras/ConvexDecomposition")
# lib BulletCollision
myModule.AddSrcFile([
'bullet/src/BulletCollision/NarrowPhaseCollision/btRaycastCallback.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkConvexCast.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btPersistentManifold.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btConvexCast.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btPolyhedralContactClipping.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btGjkEpa2.cpp',
'bullet/src/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btActivatingCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btCollisionObject.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btEmptyCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btGhostObject.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btSphereBoxCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btCollisionDispatcher.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btSimulationIslandManager.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btBoxBoxDetector.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btConvexConcaveCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/SphereTriangleDetector.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btInternalEdgeUtility.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btManifoldResult.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btCollisionWorld.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btUnionFind.cpp',
'bullet/src/BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTetrahedronShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btShapeHull.cpp',
'bullet/src/BulletCollision/CollisionShapes/btMinkowskiSumShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btCompoundShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConeShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvexPolyhedron.cpp',
'bullet/src/BulletCollision/CollisionShapes/btMultiSphereShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btUniformScalingShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btSphereShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTriangleIndexVertexArray.cpp',
'bullet/src/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTriangleMeshShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTriangleBuffer.cpp',
'bullet/src/BulletCollision/CollisionShapes/btStaticPlaneShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btPolyhedralConvexShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btEmptyShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btCollisionShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvexShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvex2dShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTriangleCallback.cpp',
'bullet/src/BulletCollision/CollisionShapes/btCapsuleShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvexTriangleMeshShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConcaveShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btConvexPointCloudShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btBoxShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btBox2dShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btOptimizedBvh.cpp',
'bullet/src/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btCylinderShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp',
'bullet/src/BulletCollision/CollisionShapes/btStridingMeshInterface.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.cpp',
'bullet/src/BulletCollision/CollisionShapes/btTriangleMesh.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btAxisSweep3.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btMultiSapBroadphase.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btDispatcher.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btBroadphaseProxy.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btDbvt.cpp',
'bullet/src/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp',
'bullet/src/BulletCollision/Gimpact/btGImpactBvh.cpp',
'bullet/src/BulletCollision/Gimpact/btGImpactQuantizedBvh.cpp',
'bullet/src/BulletCollision/Gimpact/btTriangleShapeEx.cpp',
'bullet/src/BulletCollision/Gimpact/btGImpactCollisionAlgorithm.cpp',
'bullet/src/BulletCollision/Gimpact/btGImpactShape.cpp',
'bullet/src/BulletCollision/Gimpact/gim_box_set.cpp',
'bullet/src/BulletCollision/Gimpact/gim_contact.cpp',
'bullet/src/BulletCollision/Gimpact/gim_memory.cpp',
'bullet/src/BulletCollision/Gimpact/gim_tri_collision.cpp'])
# lib BulletDynamics
myModule.AddSrcFile([
'bullet/src/BulletDynamics/Dynamics/btRigidBody.cpp',
'bullet/src/BulletDynamics/Dynamics/btSimpleDynamicsWorld.cpp',
'bullet/src/BulletDynamics/Dynamics/Bullet-C-API.cpp',
'bullet/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btGearConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btSolve2LinearConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btPoint2PointConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btTypedConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btContactConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btUniversalConstraint.cpp',
'bullet/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp',
'bullet/src/BulletDynamics/Vehicle/btWheelInfo.cpp',
'bullet/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp',
'bullet/src/BulletDynamics/Character/btKinematicCharacterController.cpp'])
# lib BulletSoftBody
myModule.AddSrcFile([
'bullet/src/BulletSoftBody/btDefaultSoftBodySolver.cpp',
'bullet/src/BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.cpp',
'bullet/src/BulletSoftBody/btSoftBody.cpp',
'bullet/src/BulletSoftBody/btSoftRigidCollisionAlgorithm.cpp',
'bullet/src/BulletSoftBody/btSoftBodyConcaveCollisionAlgorithm.cpp',
'bullet/src/BulletSoftBody/btSoftRigidDynamicsWorld.cpp',
'bullet/src/BulletSoftBody/btSoftBodyHelpers.cpp',
'bullet/src/BulletSoftBody/btSoftSoftCollisionAlgorithm.cpp'])
# lib gimpactutils
myModule.AddSrcFile([
'bullet/Extras/GIMPACTUtils/btGImpactConvexDecompositionShape.cpp'])
"""
# lib convexdecomposition
myModule.AddSrcFile([
'bullet/Extras/ConvexDecomposition/concavity.cpp',
'bullet/Extras/ConvexDecomposition/ConvexDecomposition.cpp',
'bullet/Extras/ConvexDecomposition/vlookup.cpp',
'bullet/Extras/ConvexDecomposition/bestfit.cpp',
'bullet/Extras/ConvexDecomposition/ConvexBuilder.cpp',
'bullet/Extras/ConvexDecomposition/cd_hull.cpp',
'bullet/Extras/ConvexDecomposition/raytri.cpp',
'bullet/Extras/ConvexDecomposition/splitplane.cpp',
'bullet/Extras/ConvexDecomposition/float_math.cpp',
'bullet/Extras/ConvexDecomposition/planetri.cpp',
'bullet/Extras/ConvexDecomposition/cd_wavefront.cpp',
'bullet/Extras/ConvexDecomposition/bestfitobb.cpp',
'bullet/Extras/ConvexDecomposition/meshvolume.cpp',
'bullet/Extras/ConvexDecomposition/fitsphere.cpp'])
"""
"""
# lib HACD
myModule.AddSrcFile([
'bullet/Extras/HACD/hacdGraph.cpp',
'bullet/Extras/HACD/hacdHACD.cpp',
'bullet/Extras/HACD/hacdICHull.cpp',
'bullet/Extras/HACD/hacdManifoldMesh.cpp'])
"""
# add the currrent module at the
return myModule

35
external/bullet/lutin_linearmath.py vendored Normal file
View File

@ -0,0 +1,35 @@
#!/usr/bin/python
# --------------------------------------------------------
# -- Linear Math librairy
# --------------------------------------------------------
import lutinModule
import lutinTools
def Create(target):
myModule = lutinModule.module(__file__, 'linearmath', 'LIBRARY')
myModule.AddSrcFile([
'bullet/src/LinearMath/btQuickprof.cpp',
'bullet/src/LinearMath/btGeometryUtil.cpp',
'bullet/src/LinearMath/btAlignedAllocator.cpp',
'bullet/src/LinearMath/btSerializer.cpp',
'bullet/src/LinearMath/btConvexHull.cpp',
'bullet/src/LinearMath/btPolarDecomposition.cpp',
'bullet/src/LinearMath/btVector3.cpp',
'bullet/src/LinearMath/btConvexHullComputer.cpp'])
myModule.CompileFlags_CC([
'-Wno-write-strings',
'-DHAVE_CONFIG_H',
'-O2'])
myModule.AddExportPath(lutinTools.GetCurrentPath(__file__)+"/bullet/src/")
# add the currrent module at the
return myModule

2
external/etk vendored

@ -1 +1 @@
Subproject commit 242c98e12b23335a78bf6caaf22fa70d7f6a119f
Subproject commit 91b9d605993c09836ba9acd26579fcd6b1029cbc

2
external/freetype vendored

@ -1 +1 @@
Subproject commit c04d149f7ff4e07f8b30a868e8dc634eaa3f2de2
Subproject commit a1a17000ea26b821c0fbf59e93b8af05a3794ba0

2
external/lua vendored

@ -1 +1 @@
Subproject commit 83657ba925522244b65b99fbc7281123a99d2e27
Subproject commit 8f69687bf30e39caf2971085d3680fdbc08e1d04

2
external/parsersvg vendored

@ -1 +1 @@
Subproject commit 26375523d5dcf4137588f57bd950162b9ffda56c
Subproject commit 2c7acec000904696a65f565a195560242d2e5a60

2
external/png vendored

@ -1 +1 @@
Subproject commit 5494f9db01f8471cc69f617e380a57b9562a69d5
Subproject commit 6ae3654a11cb8e409c8620dc1277a68582c8ed82

2
external/tinyxml vendored

@ -1 +1 @@
Subproject commit 260062656ed7bfe9877b0a130420685342eb96dc
Subproject commit 9a583d464fdce0870bbda1f09b212ee16db7abf9

View File

@ -1,9 +0,0 @@
#!/usr/bin/python
import module
myModule = module.module(__file__, 'zlib', 'PREBUILD')
myModule.AddExportflag_LD('-lz')
# add the currrent module at the
module.AddModule(myModule)

12
external/z/lutin_z.py vendored Normal file
View File

@ -0,0 +1,12 @@
#!/usr/bin/python
import lutinModule
def Create(target):
myModule = lutinModule.module(__file__, 'z', 'PREBUILD')
myModule.AddExportflag_LD('-lz')
# add the currrent module at the
return myModule

2
external/zip vendored

@ -1 +1 @@
Subproject commit f4d6ad96a2a58bd17d51f3f2136335c4934e9c5e
Subproject commit 53db794da5e165e25ebb096374637f8883f59e3d

View File

@ -1,185 +0,0 @@
#!/usr/bin/python
import module
import buildTools
# prevent erro integration
#del myModule
# module name is 'edn' and type binary.
myModule = module.module(__file__, 'ewol', 'LIBRARY')
# add the file to compile:
myModule.AddSrcFile([
'ewol/ewol.cpp',
'ewol/clipBoard.cpp',
'ewol/debug.cpp',
'ewol/config.cpp',
'ewol/commandLine.cpp',
'ewol/key.cpp',
'ewol/cursor.cpp',
'ewol/Dimension.cpp'])
# Basic Eobject of EWOL
myModule.AddSrcFile([
'ewol/eObject/EObject.cpp',
'ewol/eObject/EObjectManager.cpp'])
#openGl Basic access abstraction (for the model matrix and include
myModule.AddSrcFile([
'ewol/renderer/openGL.cpp',
'ewol/renderer/Light.cpp',
'ewol/renderer/Material.cpp'])
# Operating System interface
myModule.AddSrcFile([
'ewol/renderer/os/eSystem.cpp',
'ewol/renderer/os/eSystemInput.cpp'])
# renderer :
myModule.AddSrcFile([
'ewol/renderer/resources/Shader.cpp',
'ewol/renderer/resources/Program.cpp',
'ewol/renderer/resources/VirtualBufferObject.cpp',
'ewol/renderer/resources/ConfigFile.cpp',
'ewol/renderer/resources/FontFreeType.cpp',
'ewol/renderer/resources/TexturedFont.cpp',
'ewol/renderer/resources/Mesh.cpp',
'ewol/renderer/resources/MeshObj.cpp',
'ewol/renderer/resources/Texture.cpp',
'ewol/renderer/resources/Colored3DObject.cpp',
'ewol/renderer/resources/Image.cpp',
'ewol/renderer/resources/image/ImageBMP.cpp',
'ewol/renderer/resources/image/ImagePNG.cpp',
'ewol/renderer/ResourceManager.cpp'])
# Audio system
myModule.AddSrcFile([
'ewol/renderer/audio/audio.cpp',
'ewol/renderer/audio/decWav.cpp'])
# Compositing
myModule.AddSrcFile([
'ewol/compositing/Compositing.cpp',
'ewol/compositing/Text.cpp',
'ewol/compositing/Drawing.cpp',
'ewol/compositing/Image.cpp',
'ewol/compositing/Sprite.cpp',
'ewol/compositing/Mesh.cpp',
'ewol/compositing/Shaper.cpp',
'ewol/compositing/Area.cpp'])
# all widgets
myModule.AddSrcFile([
'ewol/widget/Widget.cpp',
'ewol/widget/WidgetManager.cpp',
'ewol/widget/Windows.cpp',
'ewol/widget/Button.cpp',
'ewol/widget/Gird.cpp',
'ewol/widget/Image.cpp',
'ewol/widget/ButtonColor.cpp',
'ewol/widget/CheckBox.cpp',
'ewol/widget/ColorBar.cpp',
'ewol/widget/ContextMenu.cpp',
'ewol/widget/Composer.cpp',
'ewol/widget/Container.cpp',
'ewol/widget/ContainerN.cpp',
'ewol/widget/Drawable.cpp',
'ewol/widget/Entry.cpp',
'ewol/widget/Joystick.cpp',
'ewol/widget/Label.cpp',
'ewol/widget/List.cpp',
'ewol/widget/ListFileSystem.cpp',
'ewol/widget/Layer.cpp',
'ewol/widget/Menu.cpp',
'ewol/widget/Mesh.cpp',
'ewol/widget/PopUp.cpp',
'ewol/widget/ProgressBar.cpp',
'ewol/widget/Sizer.cpp',
'ewol/widget/Slider.cpp',
'ewol/widget/WSlider.cpp',
'ewol/widget/Spacer.cpp',
'ewol/widget/WidgetScrolled.cpp',
'ewol/widget/meta/FileChooser.cpp',
'ewol/widget/meta/ColorChooser.cpp',
'ewol/widget/meta/Parameter.cpp',
'ewol/widget/meta/ParameterList.cpp'])
# game mode area :
myModule.AddSrcFile([
'ewol/widget/Scene.cpp',
'ewol/game/Camera.cpp'])
myModule.CopyFolder('../data/theme/default/widgetEntry.*','theme/default')
myModule.CopyFolder('../data/theme/rounded/widgetEntry.*','theme/rounded')
myModule.CopyFolder('../data/theme/default/widgetButton.*','theme/default')
myModule.CopyFolder('../data/theme/rounded/widgetButton.*','theme/rounded')
myModule.CopyFolder('../data/textured.*','')
myModule.CopyFolder('../data/texturedNoMaterial.*','')
myModule.CopyFolder('../data/text.*','')
myModule.CopyFolder('../data/simple3D.*','')
myModule.CopyFolder('../data/color.*','')
myModule.CopyFolder('../data/color3.*','')
myModule.CopyFolder('../data/textured3D2.*','')
myModule.CopyFolder('../data/textured3D.*','')
# add the configuration files
#myModule.SetConfig(['Config.in','ConfigLinux.in'])
# name of the dependency
myModule.AddModuleDepend(['etk', 'freetype', 'tinyxml', 'libpng', 'parsersvg'])
#ifeq ("$(CONFIG_BUILD_BULLET)","y")
#myModule.AddModuleDepend('bullet')
#endif
#ifeq ("$(CONFIG_BUILD_LUA)","y")
#myModule.AddModuleDepend('lua')
#endif
#ifeq ("$(CONFIG_BUILD_PORTAUDIO)","y")
#myModule.AddModuleDepend('portaudio')
#endif
myModule.AddExportPath(buildTools.GetCurrentPath(__file__))
myModule.AddExportflag_LD('-lGL')
#`pkg-config --cflags directfb` `pkg-config --libs directfb`
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_X11__)","y")
myModule.AddExportflag_LD('-lX11')
#endif
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_DIRECT_FB__)","y")
#myModule.AddExportflag_LD(['-L/usr/local/lib', '-ldirectfb', '-lfusion', '-ldirect'])
#endif
#http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Introduction
# needed package on linux : libgl1-mesa-dev libglew1.5-dev
myModule.CompileFlags_CC([
'-Wno-write-strings',
'-DEWOL_VERSION_TAG_NAME="\\"TAG-build\\""',
'-Wall'])
#ifeq ("$(CONFIG_BUILD_PORTAUDIO)","y")
#myModule.AddSrcFile('ewol/renderer/audio/interfacePortAudio.cpp')
#endif
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_X11__)","y")
myModule.AddSrcFile('ewol/renderer/os/gui.X11.cpp')
#endif
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_DIRECT_FB__)","y")
#myModule.CompileFlags_CC('-I/usr/local/include/directfb')
#myModule.AddSrcFile('ewol/renderer/os/gui.directFB.cpp')
#endif
# add the currrent module at the
module.AddModule(myModule)
# a better way to do this :
#module.AddModule("moduleName")
# and a function to create the module properties :
#def createModule(target):
# # and inside target we have some other informations :
# if target.debugMode==0:
# ...
# The idea is here ....

174
sources/lutin_ewol.py Executable file
View File

@ -0,0 +1,174 @@
#!/usr/bin/python
import lutinModule
import lutinTools
def Create(target):
# module name is 'edn' and type binary.
myModule = lutinModule.module(__file__, 'ewol', 'LIBRARY')
# add the file to compile:
myModule.AddSrcFile([
'ewol/ewol.cpp',
'ewol/clipBoard.cpp',
'ewol/debug.cpp',
'ewol/config.cpp',
'ewol/commandLine.cpp',
'ewol/key.cpp',
'ewol/cursor.cpp',
'ewol/Dimension.cpp'])
# Basic Eobject of EWOL
myModule.AddSrcFile([
'ewol/eObject/EObject.cpp',
'ewol/eObject/EObjectManager.cpp'])
#openGl Basic access abstraction (for the model matrix and include
myModule.AddSrcFile([
'ewol/renderer/openGL.cpp',
'ewol/renderer/Light.cpp',
'ewol/renderer/Material.cpp'])
# Operating System interface
myModule.AddSrcFile([
'ewol/renderer/os/eSystem.cpp',
'ewol/renderer/os/eSystemInput.cpp'])
# renderer :
myModule.AddSrcFile([
'ewol/renderer/resources/Shader.cpp',
'ewol/renderer/resources/Program.cpp',
'ewol/renderer/resources/VirtualBufferObject.cpp',
'ewol/renderer/resources/ConfigFile.cpp',
'ewol/renderer/resources/FontFreeType.cpp',
'ewol/renderer/resources/TexturedFont.cpp',
'ewol/renderer/resources/Mesh.cpp',
'ewol/renderer/resources/MeshObj.cpp',
'ewol/renderer/resources/Texture.cpp',
'ewol/renderer/resources/Colored3DObject.cpp',
'ewol/renderer/resources/Image.cpp',
'ewol/renderer/resources/image/ImageBMP.cpp',
'ewol/renderer/resources/image/ImagePNG.cpp',
'ewol/renderer/ResourceManager.cpp'])
# Audio system
myModule.AddSrcFile([
'ewol/renderer/audio/audio.cpp',
'ewol/renderer/audio/decWav.cpp'])
# Compositing
myModule.AddSrcFile([
'ewol/compositing/Compositing.cpp',
'ewol/compositing/Text.cpp',
'ewol/compositing/Drawing.cpp',
'ewol/compositing/Image.cpp',
'ewol/compositing/Sprite.cpp',
'ewol/compositing/Mesh.cpp',
'ewol/compositing/Shaper.cpp',
'ewol/compositing/Area.cpp'])
# all widgets
myModule.AddSrcFile([
'ewol/widget/Widget.cpp',
'ewol/widget/WidgetManager.cpp',
'ewol/widget/Windows.cpp',
'ewol/widget/Button.cpp',
'ewol/widget/Gird.cpp',
'ewol/widget/Image.cpp',
'ewol/widget/ButtonColor.cpp',
'ewol/widget/CheckBox.cpp',
'ewol/widget/ColorBar.cpp',
'ewol/widget/ContextMenu.cpp',
'ewol/widget/Composer.cpp',
'ewol/widget/Container.cpp',
'ewol/widget/ContainerN.cpp',
'ewol/widget/Drawable.cpp',
'ewol/widget/Entry.cpp',
'ewol/widget/Joystick.cpp',
'ewol/widget/Label.cpp',
'ewol/widget/List.cpp',
'ewol/widget/ListFileSystem.cpp',
'ewol/widget/Layer.cpp',
'ewol/widget/Menu.cpp',
'ewol/widget/Mesh.cpp',
'ewol/widget/PopUp.cpp',
'ewol/widget/ProgressBar.cpp',
'ewol/widget/Sizer.cpp',
'ewol/widget/Slider.cpp',
'ewol/widget/WSlider.cpp',
'ewol/widget/Spacer.cpp',
'ewol/widget/WidgetScrolled.cpp',
'ewol/widget/meta/FileChooser.cpp',
'ewol/widget/meta/ColorChooser.cpp',
'ewol/widget/meta/Parameter.cpp',
'ewol/widget/meta/ParameterList.cpp'])
# game mode area :
myModule.AddSrcFile([
'ewol/widget/Scene.cpp',
'ewol/game/Camera.cpp'])
myModule.CopyFolder('../data/theme/default/widgetEntry.*','theme/default')
myModule.CopyFolder('../data/theme/rounded/widgetEntry.*','theme/rounded')
myModule.CopyFolder('../data/theme/default/widgetButton.*','theme/default')
myModule.CopyFolder('../data/theme/rounded/widgetButton.*','theme/rounded')
myModule.CopyFolder('../data/textured.*','')
myModule.CopyFolder('../data/texturedNoMaterial.*','')
myModule.CopyFolder('../data/text.*','')
myModule.CopyFolder('../data/simple3D.*','')
myModule.CopyFolder('../data/color.*','')
myModule.CopyFolder('../data/color3.*','')
myModule.CopyFolder('../data/textured3D2.*','')
myModule.CopyFolder('../data/textured3D.*','')
# add the configuration files
#myModule.SetConfig(['Config.in','ConfigLinux.in'])
# name of the dependency
myModule.AddModuleDepend(['etk', 'freetype', 'tinyxml', 'png', 'parsersvg'])
#ifeq ("$(CONFIG_BUILD_BULLET)","y")
#myModule.AddModuleDepend('bullet')
#endif
#ifeq ("$(CONFIG_BUILD_LUA)","y")
#myModule.AddModuleDepend('lua')
#endif
#ifeq ("$(CONFIG_BUILD_PORTAUDIO)","y")
#myModule.AddModuleDepend('portaudio')
#endif
myModule.AddExportPath(lutinTools.GetCurrentPath(__file__))
myModule.AddExportflag_LD('-lGL')
#`pkg-config --cflags directfb` `pkg-config --libs directfb`
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_X11__)","y")
myModule.AddExportflag_LD('-lX11')
#endif
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_DIRECT_FB__)","y")
#myModule.AddExportflag_LD(['-L/usr/local/lib', '-ldirectfb', '-lfusion', '-ldirect'])
#endif
#http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Introduction
# needed package on linux : libgl1-mesa-dev libglew1.5-dev
myModule.CompileFlags_CC([
'-Wno-write-strings',
'-DEWOL_VERSION_TAG_NAME="\\"TAG-build\\""',
'-Wall'])
#ifeq ("$(CONFIG_BUILD_PORTAUDIO)","y")
#myModule.AddSrcFile('ewol/renderer/audio/interfacePortAudio.cpp')
#endif
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_X11__)","y")
myModule.AddSrcFile('ewol/renderer/os/gui.X11.cpp')
#endif
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_DIRECT_FB__)","y")
#myModule.CompileFlags_CC('-I/usr/local/include/directfb')
#myModule.AddSrcFile('ewol/renderer/os/gui.directFB.cpp')
#endif
# add the currrent module at the
return myModule