ffmpeg-lutin/lutin_ffmpeg-avswresample.py

73 lines
1.7 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',
])
elif target.get_arch() == "arm":
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',
])
else:
debug.warning("unknow architecture ...");
2016-10-10 22:02:01 +02:00
my_module.compile_version("c", 1999)
my_module.add_path("ffmpeg")
2016-10-10 22:02:01 +02:00
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-10 22:02:01 +02:00
return True
2016-09-20 23:29:22 +02:00