[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 b28ce416c6
commit 2f206a6177
5 changed files with 19 additions and 24 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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