From 08c279d6ba00a446b3909f7b0baf0f8dbb80876f Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Fri, 8 Jan 2016 22:28:38 +0100 Subject: [PATCH] [DEV] update with the new interface of lutin cxx dependency methodology --- lutin_bullet-physics.py | 4 ++-- lutin_linearmath.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lutin_bullet-physics.py b/lutin_bullet-physics.py index f31f23b..21dbf8e 100644 --- a/lutin_bullet-physics.py +++ b/lutin_bullet-physics.py @@ -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', diff --git a/lutin_linearmath.py b/lutin_linearmath.py index 743de45..b025ef1 100644 --- a/lutin_linearmath.py +++ b/lutin_linearmath.py @@ -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 and somes things ...) + my_module.add_module_depend(['cxx']) return my_module