ewol/external/bullet/lutin_linearmath.py

42 lines
1.1 KiB
Python
Raw Normal View History

2013-04-21 22:29:27 +02:00
#!/usr/bin/python
# --------------------------------------------------------
# -- Linear Math librairy
# --------------------------------------------------------
2013-12-23 22:38:46 +01:00
import lutinModule as module
import lutinTools as tools
2013-04-21 22:29:27 +02:00
2013-12-23 22:38:46 +01:00
def get_desc():
return "Bullet lib linar Mathematic interface"
def create(target):
myModule = module.Module(__file__, 'linearmath', 'LIBRARY')
#remove compilation warning (specific for external libs):
myModule.remove_compile_warning()
2013-04-21 22:29:27 +02:00
2013-12-23 22:38:46 +01:00
myModule.add_src_file([
2013-04-21 22:29:27 +02:00
'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'])
2013-12-23 22:38:46 +01:00
myModule.compile_flags_CC([
2013-04-21 22:29:27 +02:00
'-Wno-write-strings',
'-DHAVE_CONFIG_H',
'-O2'])
2013-12-23 22:38:46 +01:00
myModule.add_export_path(tools.get_current_path(__file__)+"/bullet/src/")
2013-04-21 22:29:27 +02:00
# add the currrent module at the
return myModule