[DEV] update with the new interface of lutin cxx dependency methodology

This commit is contained in:
Edouard DUPIN 2016-01-08 22:28:38 +01:00
parent 048e09566c
commit 08c279d6ba
2 changed files with 5 additions and 3 deletions

View File

@ -36,9 +36,9 @@ def create(target, module_name):
'-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(os.path.join(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")
my_module.add_path(os.path.join(tools.get_current_path(__file__), "bullet-physics/Extras/ConvexDecomposition"))
# lib BulletCollision
my_module.add_src_file([
'bullet-physics/src/BulletCollision/NarrowPhaseCollision/btRaycastCallback.cpp',

View File

@ -42,7 +42,7 @@ def create(target, module_name):
'bullet-physics/src/LinearMath/btVector3.cpp',
'bullet-physics/src/LinearMath/btConvexHullComputer.cpp'
])
my_module.compile_flags('c', [
my_module.compile_flags('c++', [
'-Wno-write-strings',
'-DHAVE_CONFIG_H',
'-O2'])
@ -77,6 +77,8 @@ def create(target, module_name):
'bullet-physics/src/LinearMath/btTransform.h'
],
destination_path="LinearMath")
# depend on the cxx library (need <new> and somes things ...)
my_module.add_module_depend(['cxx'])
return my_module