[DEV] update new lutin 0.8.0
This commit is contained in:
parent
76812245fa
commit
048e09566c
@ -5,26 +5,40 @@
|
||||
import lutin.module as module
|
||||
import lutin.tools as tools
|
||||
|
||||
|
||||
def get_type():
|
||||
return "LIBRARY"
|
||||
|
||||
def get_desc():
|
||||
return "C++ physic engine"
|
||||
|
||||
def get_licence():
|
||||
return "zlib"
|
||||
|
||||
def create(target):
|
||||
my_module = module.Module(__file__, 'bullet-physics', 'LIBRARY')
|
||||
|
||||
def get_compagny_type():
|
||||
return "org"
|
||||
|
||||
def get_compagny_name():
|
||||
return "bullet-physics"
|
||||
|
||||
def get_maintainer():
|
||||
return ["Erwin Coumans <erwin.coumans@gmail.com>"]
|
||||
|
||||
def get_version():
|
||||
return [2,82,"r2704"]
|
||||
|
||||
def create(target, module_name):
|
||||
my_module = module.Module(__file__, module_name, get_type())
|
||||
my_module.add_module_depend(['linearmath'])
|
||||
#remove compilation warning (specific for external libs):
|
||||
my_module.remove_compile_warning()
|
||||
|
||||
my_module.compile_flags('c++', [
|
||||
'-Wno-write-strings',
|
||||
'-DHAVE_CONFIG_H',
|
||||
'-O2'])
|
||||
|
||||
my_module.add_export_path(tools.get_current_path(__file__)+"/bullet-physics/src/")
|
||||
my_module.add_export_path(tools.get_current_path(__file__))
|
||||
my_module.add_path(tools.get_current_path(__file__)+"/bullet-physics/Extras/ConvexDecomposition")
|
||||
|
||||
# lib BulletCollision
|
||||
my_module.add_src_file([
|
||||
'bullet-physics/src/BulletCollision/NarrowPhaseCollision/btRaycastCallback.cpp',
|
||||
@ -120,10 +134,6 @@ def create(target):
|
||||
'bullet-physics/src/BulletCollision/Gimpact/gim_memory.cpp',
|
||||
'bullet-physics/src/BulletCollision/Gimpact/gim_tri_collision.cpp'])
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# lib BulletDynamics
|
||||
my_module.add_src_file([
|
||||
'bullet-physics/src/BulletDynamics/Dynamics/btRigidBody.cpp',
|
||||
@ -147,7 +157,6 @@ def create(target):
|
||||
'bullet-physics/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp',
|
||||
'bullet-physics/src/BulletDynamics/Character/btKinematicCharacterController.cpp'])
|
||||
|
||||
|
||||
# lib BulletSoftBody
|
||||
my_module.add_src_file([
|
||||
'bullet-physics/src/BulletSoftBody/btDefaultSoftBodySolver.cpp',
|
||||
@ -192,4 +201,3 @@ def create(target):
|
||||
"""
|
||||
return my_module
|
||||
|
||||
|
||||
|
@ -4,16 +4,34 @@
|
||||
# --------------------------------------------------------
|
||||
import lutin.module as module
|
||||
import lutin.tools as tools
|
||||
import os
|
||||
|
||||
|
||||
def get_type():
|
||||
return "LIBRARY"
|
||||
|
||||
def get_desc():
|
||||
return "Bullet lib linar Mathematic interface"
|
||||
|
||||
def get_licence():
|
||||
return "zlib"
|
||||
|
||||
def create(target):
|
||||
my_module = module.Module(__file__, 'linearmath', 'LIBRARY')
|
||||
def get_compagny_type():
|
||||
return "org"
|
||||
|
||||
def get_compagny_name():
|
||||
return "bullet-physics"
|
||||
|
||||
def get_maintainer():
|
||||
return ["Erwin Coumans <erwin.coumans@gmail.com>"]
|
||||
|
||||
def get_version():
|
||||
return [2,82,"r2704"]
|
||||
|
||||
def create(target, module_name):
|
||||
my_module = module.Module(__file__, module_name, get_type())
|
||||
#remove compilation warning (specific for external libs):
|
||||
my_module.remove_compile_warning()
|
||||
|
||||
my_module.add_src_file([
|
||||
'bullet-physics/src/LinearMath/btQuickprof.cpp',
|
||||
'bullet-physics/src/LinearMath/btGeometryUtil.cpp',
|
||||
@ -22,16 +40,43 @@ def create(target):
|
||||
'bullet-physics/src/LinearMath/btConvexHull.cpp',
|
||||
'bullet-physics/src/LinearMath/btPolarDecomposition.cpp',
|
||||
'bullet-physics/src/LinearMath/btVector3.cpp',
|
||||
'bullet-physics/src/LinearMath/btConvexHullComputer.cpp'])
|
||||
|
||||
'bullet-physics/src/LinearMath/btConvexHullComputer.cpp'
|
||||
])
|
||||
my_module.compile_flags('c', [
|
||||
'-Wno-write-strings',
|
||||
'-DHAVE_CONFIG_H',
|
||||
'-O2'])
|
||||
|
||||
my_module.add_export_path(tools.get_current_path(__file__)+"/bullet-physics/src/")
|
||||
|
||||
# add the currrent module at the
|
||||
my_module.add_path(os.path.join(tools.get_current_path(__file__), "bullet-physics/src"))
|
||||
my_module.add_header_file([
|
||||
'bullet-physics/src/LinearMath/btStackAlloc.h',
|
||||
'bullet-physics/src/LinearMath/btAlignedObjectArray.h',
|
||||
'bullet-physics/src/LinearMath/btScalar.h',
|
||||
'bullet-physics/src/LinearMath/btQuickprof.h',
|
||||
'bullet-physics/src/LinearMath/btMatrix3x3.h',
|
||||
'bullet-physics/src/LinearMath/btIDebugDraw.h',
|
||||
'bullet-physics/src/LinearMath/btPoolAllocator.h',
|
||||
'bullet-physics/src/LinearMath/btPolarDecomposition.h',
|
||||
'bullet-physics/src/LinearMath/btHashMap.h',
|
||||
'bullet-physics/src/LinearMath/btRandom.h',
|
||||
'bullet-physics/src/LinearMath/btMatrixX.h',
|
||||
'bullet-physics/src/LinearMath/btAabbUtil2.h',
|
||||
'bullet-physics/src/LinearMath/btMinMax.h',
|
||||
'bullet-physics/src/LinearMath/btDefaultMotionState.h',
|
||||
'bullet-physics/src/LinearMath/btVector3.h',
|
||||
'bullet-physics/src/LinearMath/btConvexHull.h',
|
||||
'bullet-physics/src/LinearMath/btMotionState.h',
|
||||
'bullet-physics/src/LinearMath/btAlignedAllocator.h',
|
||||
'bullet-physics/src/LinearMath/btTransformUtil.h',
|
||||
'bullet-physics/src/LinearMath/btGeometryUtil.h',
|
||||
'bullet-physics/src/LinearMath/btQuadWord.h',
|
||||
'bullet-physics/src/LinearMath/btQuaternion.h',
|
||||
'bullet-physics/src/LinearMath/btList.h',
|
||||
'bullet-physics/src/LinearMath/btGrahamScan2dConvexHull.h',
|
||||
'bullet-physics/src/LinearMath/btConvexHullComputer.h',
|
||||
'bullet-physics/src/LinearMath/btSerializer.h',
|
||||
'bullet-physics/src/LinearMath/btTransform.h'
|
||||
],
|
||||
destination_path="LinearMath")
|
||||
return my_module
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user