[DEV] Update new lutin 2.2.0 (no legacy support)

This commit is contained in:
Edouard DUPIN 2016-10-04 23:41:29 +02:00
parent eecf291eab
commit 9cf23b59e9
2 changed files with 22 additions and 18 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/python #!/usr/bin/python
import lutin.module as module import lutin.debug as debug
import lutin.tools as tools import lutin.tools as tools
@ -24,13 +24,15 @@ def get_compagny_name():
def get_maintainer(): def get_maintainer():
return "authors.txt" return "authors.txt"
def create(target, module_name): def configure(target, my_module):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([ my_module.add_src_file([
'test/main.cpp' 'test/main.cpp'
]) ])
my_module.add_depend(['audio-algo-speex', 'test-debug']) my_module.add_depend([
return my_module 'audio-algo-speex',
'test-debug'
])
return True

View File

@ -1,5 +1,5 @@
#!/usr/bin/python #!/usr/bin/python
import lutin.module as module import lutin.debug as debug
import lutin.tools as tools import lutin.tools as tools
@ -24,19 +24,21 @@ def get_maintainer():
def get_version(): def get_version():
return "version.txt" return "version.txt"
def create(target, module_name): def configure(target, my_module):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([ my_module.add_src_file([
'audio/algo/speex/debug.cpp', 'audio/algo/speex/debug.cpp',
'audio/algo/speex/Resampler.cpp' 'audio/algo/speex/Resampler.cpp'
]) ])
my_module.add_header_file([ my_module.add_header_file([
'audio/algo/speex/Resampler.hpp' 'audio/algo/speex/Resampler.hpp'
]) ])
my_module.add_depend(['etk', 'audio']) my_module.add_depend([
'etk',
'audio'
])
my_module.add_optionnal_depend('speex-dsp', ["c++", "-DHAVE_SPEEX_DSP"]) my_module.add_optionnal_depend('speex-dsp', ["c++", "-DHAVE_SPEEX_DSP"])
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(".")
return my_module return True