diff --git a/lutin_speex-dsp.py b/lutin_speex-dsp.py index c1b48ab..c55b106 100644 --- a/lutin_speex-dsp.py +++ b/lutin_speex-dsp.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools import os @@ -20,9 +20,8 @@ def get_compagny_name(): def get_version(): return [1,2,"rc3"] - -def create(target, module_name): - my_module = module.Module(__file__, module_name, get_type()) + +def configure(target, my_module): # add the file to compile: my_module.add_src_file([ 'speex-dsp/libspeexdsp/filterbank.c', @@ -50,7 +49,7 @@ def create(target, module_name): # name of the dependency my_module.add_depend(['z', 'm']) my_module.compile_version("c", 1999) - my_module.add_path(os.path.join(tools.get_current_path(__file__), "speex-dsp/include")) + my_module.add_path("speex-dsp/include") # configure library: # Make use of ARM4 assembly optimizations #my_module.add_flag('c', "-DARM4_ASM=1") @@ -85,6 +84,6 @@ def create(target, module_name): # Use C99 variable-size arrays */ my_module.add_flag('c', "-DVAR_ARRAYS=1") - return my_module + return True diff --git a/lutin_speex-test-denoise.py b/lutin_speex-test-denoise.py index dadc00a..a77eff2 100644 --- a/lutin_speex-test-denoise.py +++ b/lutin_speex-test-denoise.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -21,13 +21,12 @@ def get_compagny_type(): def get_compagny_name(): return "Xiph" -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([ - 'speex-dsp/libspeexdsp/testdenoise.c' - ]) + 'speex-dsp/libspeexdsp/testdenoise.c' + ]) my_module.add_depend('speex-dsp') - return my_module + return True diff --git a/lutin_speex-test-echo.py b/lutin_speex-test-echo.py index 4755853..d153af4 100644 --- a/lutin_speex-test-echo.py +++ b/lutin_speex-test-echo.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -21,13 +21,12 @@ def get_compagny_type(): def get_compagny_name(): return "Xiph" -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([ 'speex-dsp/libspeexdsp/testecho.c' ]) my_module.add_depend('speex-dsp') - return my_module + return True diff --git a/lutin_speex-test-jitter.py b/lutin_speex-test-jitter.py index e4574ac..8ec05d2 100644 --- a/lutin_speex-test-jitter.py +++ b/lutin_speex-test-jitter.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -21,13 +21,12 @@ def get_compagny_type(): def get_compagny_name(): return "Xiph" -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([ 'speex-dsp/libspeexdsp/testjitter.c' ]) my_module.add_depend('speex-dsp') - return my_module + return True diff --git a/lutin_speex-test-resample.py b/lutin_speex-test-resample.py index 4c702b9..65dc070 100644 --- a/lutin_speex-test-resample.py +++ b/lutin_speex-test-resample.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -21,13 +21,12 @@ def get_compagny_type(): def get_compagny_name(): return "Xiph" -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([ 'speex-dsp/libspeexdsp/testresample.c' ]) my_module.add_depend('speex-dsp') - return my_module + return True