2015-05-07 22:18:32 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
# --------------------------------------------------------
|
|
|
|
# -- Linear Math librairy
|
|
|
|
# --------------------------------------------------------
|
2016-10-04 23:41:29 +02:00
|
|
|
import lutin.debug as debug
|
2015-05-08 22:42:42 +02:00
|
|
|
import lutin.tools as tools
|
2015-10-14 21:21:03 +02:00
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
def get_type():
|
|
|
|
return "LIBRARY"
|
2015-05-07 22:18:32 +02:00
|
|
|
|
|
|
|
def get_desc():
|
|
|
|
return "Bullet lib linar Mathematic interface"
|
|
|
|
|
2015-10-14 21:21:03 +02:00
|
|
|
def get_licence():
|
|
|
|
return "zlib"
|
|
|
|
|
|
|
|
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"]
|
2015-05-07 22:18:32 +02:00
|
|
|
|
2016-10-04 23:41:29 +02:00
|
|
|
def configure(target, my_module):
|
2015-05-07 22:18:32 +02:00
|
|
|
#remove compilation warning (specific for external libs):
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.remove_compile_warning()
|
|
|
|
my_module.add_src_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'bullet-physics/src/LinearMath/btQuickprof.cpp',
|
|
|
|
'bullet-physics/src/LinearMath/btGeometryUtil.cpp',
|
|
|
|
'bullet-physics/src/LinearMath/btAlignedAllocator.cpp',
|
|
|
|
'bullet-physics/src/LinearMath/btSerializer.cpp',
|
|
|
|
'bullet-physics/src/LinearMath/btConvexHull.cpp',
|
|
|
|
'bullet-physics/src/LinearMath/btPolarDecomposition.cpp',
|
|
|
|
'bullet-physics/src/LinearMath/btVector3.cpp',
|
|
|
|
'bullet-physics/src/LinearMath/btConvexHullComputer.cpp'
|
|
|
|
])
|
2016-09-08 21:35:02 +02:00
|
|
|
my_module.add_flag('c++', [
|
2016-10-04 23:41:29 +02:00
|
|
|
'-Wno-write-strings',
|
|
|
|
'-DHAVE_CONFIG_H',
|
|
|
|
'-O2'])
|
|
|
|
my_module.add_path("bullet-physics/src")
|
2015-10-14 21:21:03 +02:00
|
|
|
my_module.add_header_file([
|
2016-10-04 23:41:29 +02:00
|
|
|
'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")
|
2016-01-08 22:28:38 +01:00
|
|
|
# depend on the cxx library (need <new> and somes things ...)
|
2016-09-08 21:35:02 +02:00
|
|
|
my_module.add_depend([
|
2016-08-07 22:48:32 +02:00
|
|
|
'cxx',
|
|
|
|
'm'
|
|
|
|
])
|
2016-10-04 23:41:29 +02:00
|
|
|
return True
|
2015-05-07 22:18:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|