From 99521d9c6f38599ee92bfdde9b23fa290efb03a0 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 4 Oct 2016 23:41:29 +0200 Subject: [PATCH] [DEV] Update new lutin 2.2.0 (no legacy support) --- lutin_audio-algo-river-test.py | 15 ++++++++------- lutin_audio-algo-river.py | 8 +++----- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/lutin_audio-algo-river-test.py b/lutin_audio-algo-river-test.py index 52630d4..3e927b5 100644 --- a/lutin_audio-algo-river-test.py +++ b/lutin_audio-algo-river-test.py @@ -1,5 +1,4 @@ #!/usr/bin/python -import lutin.module as module import lutin.tools as tools import lutin.debug as debug @@ -25,13 +24,15 @@ def get_compagny_name(): def get_maintainer(): return "authors.txt" -def create(target, module_name): - my_module = module.Module(__file__, module_name, get_type()) +def configure(target, my_module): my_module.add_src_file([ - 'test/main.cpp' - ]) - my_module.add_depend(['audio-algo-river', 'test-debug']) - return my_module + 'test/main.cpp' + ]) + my_module.add_depend([ + 'audio-algo-river', + 'test-debug' + ]) + return True diff --git a/lutin_audio-algo-river.py b/lutin_audio-algo-river.py index de3ee07..47c6bb9 100644 --- a/lutin_audio-algo-river.py +++ b/lutin_audio-algo-river.py @@ -1,5 +1,4 @@ #!/usr/bin/python -import lutin.module as module import lutin.tools as tools import lutin.debug as debug @@ -25,8 +24,7 @@ def get_maintainer(): def get_version(): return "version.txt" -def create(target, module_name): - my_module = module.Module(__file__, module_name, get_type()) +def configure(target, my_module): my_module.add_src_file([ 'audio/algo/river/debug.cpp', 'audio/algo/river/convolution.cpp', @@ -45,8 +43,8 @@ def create(target, module_name): 'audio/algo/river/Suppressor.hpp' ]) my_module.add_depend(['etk', 'audio']) - my_module.add_path(tools.get_current_path(__file__)) - return my_module + my_module.add_path(".") + return True