ffmpeg-lutin/lutin_ffmpeg-avswresample.py

81 lines
2.0 KiB
Python
Raw Normal View History

2016-09-20 23:29:22 +02:00
#!/usr/bin/python
import lutin.tools as tools
import lutin.debug as debug
import os
2016-10-10 22:02:01 +02:00
import lutinLib_ffmpegCommon
2016-09-20 23:29:22 +02:00
def get_type():
return "LIBRARY"
def get_desc():
return "FFMPEG library"
def get_licence():
return "LGPL-2.1"
def get_compagny_type():
return "org"
def get_compagny_name():
return "ffmpeg"
def get_maintainer():
return "authors.txt"
def get_version():
return "version.txt"
def configure(target, my_module):
2016-09-20 23:29:22 +02:00
# add the file to compile:
my_module.add_src_file([
'ffmpeg/libswresample/audioconvert.c',
'ffmpeg/libswresample/dither.c',
'ffmpeg/libswresample/options.c',
'ffmpeg/libswresample/rematrix.c',
'ffmpeg/libswresample/resample.c',
'ffmpeg/libswresample/resample_dsp.c',
'ffmpeg/libswresample/swresample.c',
'ffmpeg/libswresample/swresample_frame.c',
])
2016-10-11 21:23:32 +02:00
if target.get_arch() == "x86":
my_module.add_src_file([
'ffmpeg/libswresample/x86/audio_convert_init.c',
'ffmpeg/libswresample/x86/rematrix_init.c',
'ffmpeg/libswresample/x86/resample_init.c',
])
2016-10-13 21:42:54 +02:00
elif target.get_arch() == "arm" \
and target.get_bus_size() == "32":
2016-10-11 21:23:32 +02:00
my_module.add_src_file([
'ffmpeg/libswresample/arm/audio_convert_init.c',
'ffmpeg/libswresample/arm/audio_convert_neon.S',
'ffmpeg/libswresample/arm/resample.S',
'ffmpeg/libswresample/arm/resample_init.c',
])
2016-10-13 21:42:54 +02:00
elif target.get_arch() == "arm" \
and target.get_bus_size() == "64":
my_module.add_src_file([
'ffmpeg/libswresample/aarch64/audio_convert_init.c',
'ffmpeg/libswresample/aarch64/audio_convert_neon.S',
'ffmpeg/libswresample/aarch64/neontest.c',
])
2016-10-11 21:23:32 +02:00
else:
debug.warning("unknow architecture ...");
2016-10-10 22:02:01 +02:00
my_module.compile_version("c", 1999)
lutinLib_ffmpegCommon.add_common_property(target, my_module);
2016-09-20 23:29:22 +02:00
# add dependency of libraries:
my_module.add_depend('c')
my_module.add_depend('m')
my_module.add_depend('z')
my_module.add_depend('pthread')
2016-10-07 21:41:52 +02:00
my_module.add_depend([
'ffmpeg-avutil',
2016-10-12 21:58:27 +02:00
'ffmpeg-headers',
2016-10-07 21:41:52 +02:00
])
2016-10-10 22:02:01 +02:00
return True
2016-09-20 23:29:22 +02:00