diff --git a/lutin_audio-river-test.py b/lutin_audio-river-test.py index e3a4c4d..64e961f 100644 --- a/lutin_audio-river-test.py +++ b/lutin_audio-river-test.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -24,12 +24,16 @@ 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-river', 'gtest', 'etk', 'test-debug']) - return my_module + 'test/main.cpp' + ]) + my_module.add_depend([ + 'audio-river', + 'gtest', + 'etk', + 'test-debug' + ]) + return True diff --git a/lutin_audio-river.py b/lutin_audio-river.py index f0297a1..a1adcff 100644 --- a/lutin_audio-river.py +++ b/lutin_audio-river.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -24,29 +24,28 @@ 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/river/debug.cpp', - 'audio/river/river.cpp', - 'audio/river/Manager.cpp', - 'audio/river/Interface.cpp', - 'audio/river/io/Group.cpp', - 'audio/river/io/Node.cpp', - 'audio/river/io/NodeOrchestra.cpp', - 'audio/river/io/NodePortAudio.cpp', - 'audio/river/io/NodeAEC.cpp', - 'audio/river/io/NodeMuxer.cpp', - 'audio/river/io/Manager.cpp' - ]) + 'audio/river/debug.cpp', + 'audio/river/river.cpp', + 'audio/river/Manager.cpp', + 'audio/river/Interface.cpp', + 'audio/river/io/Group.cpp', + 'audio/river/io/Node.cpp', + 'audio/river/io/NodeOrchestra.cpp', + 'audio/river/io/NodePortAudio.cpp', + 'audio/river/io/NodeAEC.cpp', + 'audio/river/io/NodeMuxer.cpp', + 'audio/river/io/Manager.cpp' + ]) my_module.add_header_file([ - 'audio/river/river.hpp', - 'audio/river/Manager.hpp', - 'audio/river/Interface.hpp', - 'audio/river/io/Group.hpp', - 'audio/river/io/Node.hpp', - 'audio/river/io/Manager.hpp' - ]) + 'audio/river/river.hpp', + 'audio/river/Manager.hpp', + 'audio/river/Interface.hpp', + 'audio/river/io/Group.hpp', + 'audio/river/io/Node.hpp', + 'audio/river/io/Manager.hpp' + ]) my_module.add_optionnal_depend('audio-orchestra', ["c++", "-DAUDIO_RIVER_BUILD_ORCHESTRA"]) my_module.add_optionnal_depend('portaudio', ["c++", "-DAUDIO_RIVER_BUILD_PORTAUDIO"]) my_module.add_depend([ @@ -54,8 +53,8 @@ def create(target, module_name): 'audio-drain', 'ejson' ]) - my_module.add_path(tools.get_current_path(__file__)) - return my_module + my_module.add_path(".") + return True diff --git a/sample/ioViewer/lutin_ioViewer.py b/sample/ioViewer/lutin_ioViewer.py index d4fdaee..a46ad42 100644 --- a/sample/ioViewer/lutin_ioViewer.py +++ b/sample/ioViewer/lutin_ioViewer.py @@ -1,7 +1,6 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools -import datetime import os @@ -23,26 +22,18 @@ def get_compagny_name(): def get_maintainer(): return ["Mr DUPIN Edouard "] -def create(target, module_name): - my_module = module.Module(__file__, module_name, get_type()) +def configure(target, my_module): my_module.add_extra_flags() my_module.add_src_file([ 'appl/debug.cpp', 'appl/main.cpp', 'appl/Windows.cpp']) my_module.add_depend(['ewol', 'audio-river', 'audio-river-widget']) - my_module.add_path(tools.get_current_path(__file__)) + my_module.add_path(".") # set the package properties : - my_module.set_pkg("VERSION", "1.0.0") - my_module.set_pkg("VERSION_CODE", "1") - my_module.set_pkg("COMPAGNY_TYPE", "org") - my_module.set_pkg("COMPAGNY_NAME", "Edouard DUPIN") - my_module.set_pkg("MAINTAINER", ["Mr DUPIN Edouard "]) my_module.set_pkg("SECTION", ["Development"]) my_module.set_pkg("PRIORITY", "optional") - my_module.set_pkg("DESCRIPTION", "Simple wiewer") - my_module.set_pkg("NAME", "ioViewer") my_module.add_pkg("RIGHT", "RECORD_AUDIO") - return my_module + return True diff --git a/sample/read/lutin_river-sample-read.py b/sample/read/lutin_river-sample-read.py index 550d253..bbeeb99 100644 --- a/sample/read/lutin_river-sample-read.py +++ b/sample/read/lutin_river-sample-read.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -24,13 +24,15 @@ def get_compagny_name(): def get_maintainer(): return ["Mr DUPIN Edouard "] -def create(target, module_name): - my_module = module.Module(__file__, module_name, get_type()) +def configure(target, my_module): my_module.add_src_file([ - 'read.cpp', - ]) - my_module.add_depend(['audio-river', 'etk']) - return my_module + 'read.cpp', + ]) + my_module.add_depend([ + 'audio-river', + 'etk' + ]) + return True diff --git a/sample/write/lutin_river-sample-write.py b/sample/write/lutin_river-sample-write.py index c58bdb2..4293cae 100644 --- a/sample/write/lutin_river-sample-write.py +++ b/sample/write/lutin_river-sample-write.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -24,13 +24,15 @@ def get_compagny_name(): def get_maintainer(): return ["Mr DUPIN Edouard "] -def create(target, module_name): - my_module = module.Module(__file__, module_name, get_type()) +def configure(target, my_module): my_module.add_src_file([ - 'write.cpp', - ]) - my_module.add_depend(['audio-river', 'etk']) - return my_module + 'write.cpp', + ]) + my_module.add_depend([ + 'audio-river', + 'etk' + ]) + return True diff --git a/widget/lutin_audio-river-widget.py b/widget/lutin_audio-river-widget.py index d0aa897..07c7b23 100644 --- a/widget/lutin_audio-river-widget.py +++ b/widget/lutin_audio-river-widget.py @@ -1,7 +1,6 @@ #!/usr/bin/python -import lutin.module as module -import lutin.tools as tools import lutin.debug as debug +import lutin.tools as tools import os @@ -26,17 +25,19 @@ def get_maintainer(): def get_version(): return [0,0,0] -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/river/widget/TemporalViewer.cpp', - 'audio/river/widget/debug.cpp' - ]) + 'audio/river/widget/TemporalViewer.cpp', + 'audio/river/widget/debug.cpp' + ]) my_module.add_header_file([ - 'audio/river/widget/TemporalViewer.hpp' - ]) - my_module.add_depend(['ewol', 'audio-river']) - my_module.add_path(tools.get_current_path(__file__)) - return my_module + 'audio/river/widget/TemporalViewer.hpp' + ]) + my_module.add_depend([ + 'ewol', + 'audio-river' + ]) + my_module.add_path(".") + return True