From 26db9d8c8cba047d1d0afadaf80201aee5175db0 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-block-engine-test.py | 14 +++----------- lutin_audio-block-engine.py | 8 +++----- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/lutin_audio-block-engine-test.py b/lutin_audio-block-engine-test.py index 083a537..57a7d58 100644 --- a/lutin_audio-block-engine-test.py +++ b/lutin_audio-block-engine-test.py @@ -1,5 +1,4 @@ #!/usr/bin/python -import lutin.module as module import lutin.tools as tools import lutin.debug as debug import os @@ -29,8 +28,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): # basic GUI : my_module.add_src_file([ 'test/debug.cpp', @@ -41,18 +39,12 @@ def create(target, module_name): # name of the dependency my_module.add_depend(['ewol', 'audio-block-engine']) - my_module.add_path(tools.get_current_path(__file__)) + my_module.add_path(".") my_module.copy_path("data/Font/Free*.ttf","fonts/") my_module.copy_path("data/menu*","") - - #if target.name=="MacOs": - # my_module.set_pkg("ICON", tools.get_current_path(__file__) + "/../data/icon.icns") - #else: - # my_module.set_pkg("ICON", tools.get_current_path(__file__) + "/../data/icon.png") - my_module.set_pkg("SECTION", ["Test"]) my_module.set_pkg("PRIORITY", "optional") - return my_module + return True diff --git a/lutin_audio-block-engine.py b/lutin_audio-block-engine.py index 6d0e594..d878775 100644 --- a/lutin_audio-block-engine.py +++ b/lutin_audio-block-engine.py @@ -1,5 +1,4 @@ #!/usr/bin/python -import lutin.module as module import lutin.tools as tools import lutin.debug as debug import os @@ -29,8 +28,7 @@ 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): # System core my_module.add_src_file([ 'audio/blockEngine/debug.cpp', @@ -82,9 +80,9 @@ def create(target, module_name): 'audio/blockEngine/eaudiofx.hpp', ]) - #my_module.add_path(tools.get_current_path(__file__)) + #my_module.add_path(".") - return my_module + return True