diff --git a/lutin_speex-test-enc-uwb.py b/lutin_speex-test-enc-uwb.py index e9236f7..6e73d1c 100644 --- a/lutin_speex-test-enc-uwb.py +++ b/lutin_speex-test-enc-uwb.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -21,8 +21,7 @@ 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/libspeex/testenc_uwb.c' @@ -30,6 +29,6 @@ def create(target, module_name): my_module.compile_version('c', 1989, gnu=True) my_module.add_depend('speex') - return my_module + return True diff --git a/lutin_speex-test-enc-wb.py b/lutin_speex-test-enc-wb.py index ac8d2cb..6adb108 100644 --- a/lutin_speex-test-enc-wb.py +++ b/lutin_speex-test-enc-wb.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -21,8 +21,7 @@ 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/libspeex/testenc_wb.c' @@ -30,6 +29,6 @@ def create(target, module_name): my_module.compile_version('c', 1989, gnu=True) my_module.add_depend('speex') - return my_module + return True diff --git a/lutin_speex-test-enc.py b/lutin_speex-test-enc.py index f4564e0..403c25d 100644 --- a/lutin_speex-test-enc.py +++ b/lutin_speex-test-enc.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -21,14 +21,13 @@ 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/libspeex/testenc.c' ]) my_module.compile_version('c', 1989, gnu=True) my_module.add_depend('speex') - return my_module + return True diff --git a/lutin_speex.py b/lutin_speex.py index a16c623..8d0e84b 100644 --- a/lutin_speex.py +++ b/lutin_speex.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 @@ -21,8 +21,7 @@ def get_compagny_name(): def get_version(): return [1,2,"rc2"] -def create(target, module_name): - my_module = module.Module(__file__, module_name, get_type()) +def configure(target, my_module): # add extra compilation flags: my_module.add_extra_flags() # add the file to compile: @@ -76,7 +75,7 @@ def create(target, module_name): my_module.compile_version("c", 1989, gnu=True) my_module.add_depend(['m']) - my_module.add_path(os.path.join(tools.get_current_path(__file__), "speex/include")) + my_module.add_path("speex/include") # configure library : # Make use of ARM4 assembly optimizations @@ -115,6 +114,6 @@ def create(target, module_name): my_module.add_depend([ 'c' ]) - return my_module + return True