[DEV] update to future lutin 2.0

This commit is contained in:
Edouard DUPIN 2016-09-08 21:35:02 +02:00
parent ec94e1dbf5
commit 4e1bb9c616
4 changed files with 24 additions and 24 deletions

View File

@ -23,13 +23,13 @@ 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/libspeex/testenc_uwb.c'
])
my_module.compile_version('c', 1989, gnu=True)
my_module.add_module_depend('speex')
my_module.add_depend('speex')
return my_module

View File

@ -23,13 +23,13 @@ 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/libspeex/testenc_wb.c'
])
my_module.compile_version('c', 1989, gnu=True)
my_module.add_module_depend('speex')
my_module.add_depend('speex')
return my_module

View File

@ -23,12 +23,12 @@ 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/libspeex/testenc.c'
])
my_module.compile_version('c', 1989, gnu=True)
my_module.add_module_depend('speex')
my_module.add_depend('speex')
return my_module

View File

@ -24,7 +24,7 @@ def get_version():
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
# add extra compilation flags:
my_module.add_extra_compile_flags()
my_module.add_extra_flags()
# add the file to compile:
my_module.add_src_file([
'speex/libspeex/bits.c',
@ -75,44 +75,44 @@ def create(target, module_name):
my_module.compile_version("c", 1989, gnu=True)
my_module.add_module_depend(['m'])
my_module.add_depend(['m'])
my_module.add_path(os.path.join(tools.get_current_path(__file__), "speex/include"))
# configure library :
# Make use of ARM4 assembly optimizations
#my_module.compile_flags_CC("-DARM4_ASM=1")
#my_module.add_flag_CC("-DARM4_ASM=1")
# Make use of ARM5E assembly optimizations
#my_module.compile_flags_CC("-DARM5E_ASM=1")
#my_module.add_flag_CC("-DARM5E_ASM=1")
# Make use of Blackfin assembly optimizations
#my_module.compile_flags_CC("-DBFIN_ASM=1")
#my_module.add_flag_CC("-DBFIN_ASM=1")
# Disable all parts of the API that are using floats
#my_module.compile_flags_CC("-DDISABLE_FLOAT_API=1")
#my_module.add_flag_CC("-DDISABLE_FLOAT_API=1")
# Enable valgrind extra checks
#my_module.compile_flags_CC("-DENABLE_VALGRIND=1")
#my_module.add_flag_CC("-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_CC("-DFIXED_DEBUG=1")
#my_module.add_flag_CC("-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")
my_module.add_module_depend([
my_module.add_depend([
'c'
])
return my_module