bullet-physics-lutin/lutin_linearmath.py

42 lines
1.1 KiB
Python
Raw Normal View History

2015-05-07 22:18:32 +02:00
#!/usr/bin/python
# --------------------------------------------------------
# -- Linear Math librairy
# --------------------------------------------------------
2015-05-08 22:42:42 +02:00
import lutin.module as module
import lutin.tools as tools
2015-05-07 22:18:32 +02:00
def get_desc():
return "Bullet lib linar Mathematic interface"
def create(target):
2015-09-24 21:44:04 +02:00
my_module = module.Module(__file__, 'linearmath', 'LIBRARY')
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()
2015-05-07 22:18:32 +02:00
2015-09-24 21:44:04 +02:00
my_module.add_src_file([
2015-06-16 21:34:57 +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'])
2015-05-07 22:18:32 +02:00
2015-09-24 21:44:04 +02:00
my_module.compile_flags('c', [
2015-05-07 22:18:32 +02:00
'-Wno-write-strings',
'-DHAVE_CONFIG_H',
'-O2'])
2015-09-24 21:44:04 +02:00
my_module.add_export_path(tools.get_current_path(__file__)+"/bullet-physics/src/")
2015-05-07 22:18:32 +02:00
# add the currrent module at the
2015-09-24 21:44:04 +02:00
return my_module
2015-05-07 22:18:32 +02:00