[DEV] update to future lutin 2.0

This commit is contained in:
Edouard DUPIN 2016-09-08 21:35:02 +02:00
parent 0c3dce26e2
commit b28ce416c6
5 changed files with 24 additions and 24 deletions

View File

@ -48,42 +48,42 @@ def create(target, module_name):
],
destination_path="speex")
# name of the dependency
my_module.add_module_depend(['z', 'm'])
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"))
# configure library:
# Make use of ARM4 assembly optimizations
#my_module.compile_flags('c', "-DARM4_ASM=1")
#my_module.add_flag('c', "-DARM4_ASM=1")
# Make use of ARM5E assembly optimizations
#my_module.compile_flags('c', "-DARM5E_ASM=1")
#my_module.add_flag('c', "-DARM5E_ASM=1")
# Make use of Blackfin assembly optimizations
#my_module.compile_flags('c', "-DBFIN_ASM=1")
#my_module.add_flag('c', "-DBFIN_ASM=1")
# Disable all parts of the API that are using floats
#my_module.compile_flags('c', "-DDISABLE_FLOAT_API=1")
#my_module.add_flag('c', "-DDISABLE_FLOAT_API=1")
# Enable valgrind extra checks
#my_module.compile_flags('c', "-DENABLE_VALGRIND=1")
#my_module.add_flag('c', "-DENABLE_VALGRIND=1")
# Symbol visibility prefix */
#define EXPORT __attribute__((visibility("default")))
my_module.compile_flags('c', "-DEXPORT=''")
my_module.add_flag('c', "-DEXPORT=''")
# Debug fixed-point implementation */
#my_module.compile_flags('c', "-DFIXED_DEBUG=1")
#my_module.add_flag('c', "-DFIXED_DEBUG=1")
# Compile as fixed-point / floating-point
if True:
my_module.compile_flags('c', "-DFIXED_POINT")
my_module.add_flag('c', "-DFIXED_POINT")
else:
my_module.compile_flags('c', "-DFLOATING_POINT")
my_module.add_flag('c', "-DFLOATING_POINT")
# Enable NEON support */
#my_module.compile_flags('c', "-D_USE_NEON=1")
#my_module.add_flag('c', "-D_USE_NEON=1")
# Enable SSE support */
my_module.compile_flags('c', "-D_USE_SSE=1")
my_module.add_flag('c', "-D_USE_SSE=1")
# Enable SSE2 support */
my_module.compile_flags('c', "-D_USE_SSE2=1")
my_module.add_flag('c', "-D_USE_SSE2=1")
# Define to 1 if you have the <alloca.h> header file.
my_module.compile_flags('c', "-DHAVE_ALLOCA_H=1")
my_module.add_flag('c', "-DHAVE_ALLOCA_H=1")
# Use FFT from OggVorbis */
my_module.compile_flags('c', "-DUSE_SMALLFT=1")
my_module.add_flag('c', "-DUSE_SMALLFT=1")
# Use C99 variable-size arrays */
my_module.compile_flags('c', "-DVAR_ARRAYS=1")
my_module.add_flag('c', "-DVAR_ARRAYS=1")
return my_module

View File

@ -23,11 +23,11 @@ def get_compagny_name():
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_extra_compile_flags()
my_module.add_extra_flags()
my_module.add_src_file([
'speex-dsp/libspeexdsp/testdenoise.c'
])
my_module.add_module_depend('speex-dsp')
my_module.add_depend('speex-dsp')
return my_module

View File

@ -23,11 +23,11 @@ def get_compagny_name():
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_extra_compile_flags()
my_module.add_extra_flags()
my_module.add_src_file([
'speex-dsp/libspeexdsp/testecho.c'
])
my_module.add_module_depend('speex-dsp')
my_module.add_depend('speex-dsp')
return my_module

View File

@ -23,11 +23,11 @@ def get_compagny_name():
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_extra_compile_flags()
my_module.add_extra_flags()
my_module.add_src_file([
'speex-dsp/libspeexdsp/testjitter.c'
])
my_module.add_module_depend('speex-dsp')
my_module.add_depend('speex-dsp')
return my_module

View File

@ -23,11 +23,11 @@ def get_compagny_name():
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_extra_compile_flags()
my_module.add_extra_flags()
my_module.add_src_file([
'speex-dsp/libspeexdsp/testresample.c'
])
my_module.add_module_depend('speex-dsp')
my_module.add_depend('speex-dsp')
return my_module