diff --git a/lutin_audio-drain-test.py b/lutin_audio-drain-test.py index bc0969a..54c2204 100644 --- a/lutin_audio-drain-test.py +++ b/lutin_audio-drain-test.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 def get_type(): @@ -25,8 +24,7 @@ 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', 'test/updateFlow.cpp', @@ -35,8 +33,13 @@ def create(target, module_name): 'test/channelOrder.cpp', 'test/equalizer.cpp' ]) - my_module.add_depend(['audio-drain', 'gtest', 'etk', 'test-debug']) - return my_module + my_module.add_depend([ + 'audio-drain', + 'gtest', + 'etk', + 'test-debug' + ]) + return True diff --git a/lutin_audio-drain.py b/lutin_audio-drain.py index 6bddaca..151b0af 100644 --- a/lutin_audio-drain.py +++ b/lutin_audio-drain.py @@ -1,5 +1,4 @@ #!/usr/bin/python -import lutin.module as module import lutin.tools as tools import lutin.debug as debug @@ -25,47 +24,46 @@ 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/drain/debug.cpp', - 'audio/drain/airtalgo.cpp', - 'audio/drain/Algo.cpp', - 'audio/drain/ChannelReorder.cpp', - 'audio/drain/CircularBuffer.cpp', - 'audio/drain/EndPointCallback.cpp', - 'audio/drain/EndPoint.cpp', - 'audio/drain/EndPointRead.cpp', - 'audio/drain/EndPointWrite.cpp', - 'audio/drain/FormatUpdate.cpp', - 'audio/drain/Process.cpp', - 'audio/drain/Resampler.cpp', - 'audio/drain/Volume.cpp', - 'audio/drain/IOFormatInterface.cpp', - 'audio/drain/AutoLogInOut.cpp', - 'audio/drain/Equalizer.cpp' - ]) + 'audio/drain/debug.cpp', + 'audio/drain/airtalgo.cpp', + 'audio/drain/Algo.cpp', + 'audio/drain/ChannelReorder.cpp', + 'audio/drain/CircularBuffer.cpp', + 'audio/drain/EndPointCallback.cpp', + 'audio/drain/EndPoint.cpp', + 'audio/drain/EndPointRead.cpp', + 'audio/drain/EndPointWrite.cpp', + 'audio/drain/FormatUpdate.cpp', + 'audio/drain/Process.cpp', + 'audio/drain/Resampler.cpp', + 'audio/drain/Volume.cpp', + 'audio/drain/IOFormatInterface.cpp', + 'audio/drain/AutoLogInOut.cpp', + 'audio/drain/Equalizer.cpp' + ]) my_module.add_header_file([ - 'audio/drain/debug.hpp', - 'audio/drain/debugRemove.hpp', - 'audio/drain/airtalgo.hpp', - 'audio/drain/Algo.hpp', - 'audio/drain/ChannelReorder.hpp', - 'audio/drain/CircularBuffer.hpp', - 'audio/drain/EndPointCallback.hpp', - 'audio/drain/EndPoint.hpp', - 'audio/drain/EndPointRead.hpp', - 'audio/drain/EndPointWrite.hpp', - 'audio/drain/FormatUpdate.hpp', - 'audio/drain/Process.hpp', - 'audio/drain/Resampler.hpp', - 'audio/drain/Volume.hpp', - 'audio/drain/IOFormatInterface.hpp', - 'audio/drain/AutoLogInOut.hpp', - 'audio/drain/Equalizer.hpp' - ]) + 'audio/drain/debug.hpp', + 'audio/drain/debugRemove.hpp', + 'audio/drain/airtalgo.hpp', + 'audio/drain/Algo.hpp', + 'audio/drain/ChannelReorder.hpp', + 'audio/drain/CircularBuffer.hpp', + 'audio/drain/EndPointCallback.hpp', + 'audio/drain/EndPoint.hpp', + 'audio/drain/EndPointRead.hpp', + 'audio/drain/EndPointWrite.hpp', + 'audio/drain/FormatUpdate.hpp', + 'audio/drain/Process.hpp', + 'audio/drain/Resampler.hpp', + 'audio/drain/Volume.hpp', + 'audio/drain/IOFormatInterface.hpp', + 'audio/drain/AutoLogInOut.hpp', + 'audio/drain/Equalizer.hpp' + ]) # TODO: my_module.add_optional_module_depend('speexdsp', "HAVE_SPEEX_DSP_RESAMPLE") my_module.add_flag('c++', "-DHAVE_SPEEX_DSP_RESAMPLE") @@ -76,8 +74,8 @@ def create(target, module_name): 'speex-dsp', 'audio-algo-drain' ]) - my_module.add_path(tools.get_current_path(__file__)) - return my_module + my_module.add_path(".") + return True diff --git a/tools/drainBiQuadProfiling/lutin_drain_biquad_profiling.py b/tools/drainBiQuadProfiling/lutin_drain_biquad_profiling.py index ded4bc5..55aca0a 100644 --- a/tools/drainBiQuadProfiling/lutin_drain_biquad_profiling.py +++ b/tools/drainBiQuadProfiling/lutin_drain_biquad_profiling.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -24,21 +24,24 @@ 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([ - 'appl/main.cpp', - 'appl/debug.cpp', - 'appl/Windows.cpp', - 'appl/widget/DisplayFrequency.cpp', - ]) - my_module.add_depend(['ewol', 'audio-drain', 'audio-river']) + 'appl/main.cpp', + 'appl/debug.cpp', + 'appl/Windows.cpp', + 'appl/widget/DisplayFrequency.cpp', + ]) + my_module.add_depend([ + 'ewol', + 'audio-drain', + 'audio-river' + ]) my_module.add_flag('c++', [ - "-DPROJECT_NAME=\"\\\""+my_module.name+"\\\"\"" - ]) - my_module.add_path(tools.get_current_path(__file__)) + "-DPROJECT_NAME=\"\\\""+my_module.get_name()+"\\\"\"" + ]) + my_module.add_path(".") my_module.copy_path("data/*") - return my_module + return True diff --git a/tools/drainEqualizerProfiling/lutin_drain_equalizer_profiling.py b/tools/drainEqualizerProfiling/lutin_drain_equalizer_profiling.py index ded4bc5..55aca0a 100644 --- a/tools/drainEqualizerProfiling/lutin_drain_equalizer_profiling.py +++ b/tools/drainEqualizerProfiling/lutin_drain_equalizer_profiling.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -24,21 +24,24 @@ 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([ - 'appl/main.cpp', - 'appl/debug.cpp', - 'appl/Windows.cpp', - 'appl/widget/DisplayFrequency.cpp', - ]) - my_module.add_depend(['ewol', 'audio-drain', 'audio-river']) + 'appl/main.cpp', + 'appl/debug.cpp', + 'appl/Windows.cpp', + 'appl/widget/DisplayFrequency.cpp', + ]) + my_module.add_depend([ + 'ewol', + 'audio-drain', + 'audio-river' + ]) my_module.add_flag('c++', [ - "-DPROJECT_NAME=\"\\\""+my_module.name+"\\\"\"" - ]) - my_module.add_path(tools.get_current_path(__file__)) + "-DPROJECT_NAME=\"\\\""+my_module.get_name()+"\\\"\"" + ]) + my_module.add_path(".") my_module.copy_path("data/*") - return my_module + return True