From 4b4aad904630b470eb21ef6bfb0b3332c02aed37 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 8 Sep 2016 21:35:02 +0200 Subject: [PATCH] [DEV] update to future lutin 2.0 --- lutin_bullet-physics.py | 8 ++++---- lutin_linearmath.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lutin_bullet-physics.py b/lutin_bullet-physics.py index 74422d5..8fd96da 100644 --- a/lutin_bullet-physics.py +++ b/lutin_bullet-physics.py @@ -30,15 +30,15 @@ def get_version(): def create(target, module_name): my_module = module.Module(__file__, module_name, get_type()) - my_module.add_module_depend(['linearmath']) + my_module.add_depend(['linearmath']) #remove compilation warning (specific for external libs): my_module.remove_compile_warning() - my_module.compile_flags('c++', [ + my_module.add_flag('c++', [ '-Wno-write-strings', '-DHAVE_CONFIG_H', '-O2']) - 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(os.path.join(tools.get_current_path(__file__), "bullet-physics/src/"), export=True) + my_module.add_path(tools.get_current_path(__file__), export=True) my_module.add_path(os.path.join(tools.get_current_path(__file__), "bullet-physics/Extras/ConvexDecomposition")) # lib BulletCollision my_module.add_src_file([ diff --git a/lutin_linearmath.py b/lutin_linearmath.py index 136c00e..33b1a9a 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.add_flag('c++', [ '-Wno-write-strings', '-DHAVE_CONFIG_H', '-O2']) @@ -78,7 +78,7 @@ def create(target, module_name): ], destination_path="LinearMath") # depend on the cxx library (need and somes things ...) - my_module.add_module_depend([ + my_module.add_depend([ 'cxx', 'm' ])