[DEV] correct ffmpeg internal dependency

This commit is contained in:
Edouard DUPIN 2016-10-07 21:15:46 +02:00
parent 22ba26f95f
commit 21d81e9c52
5 changed files with 65 additions and 3 deletions

View File

@ -881,6 +881,9 @@ def configure(target, my_module):
my_module.add_depend('m')
my_module.add_depend('z')
my_module.add_depend('pthread')
my_module.add_depend('ffmpeg-avswresample')
my_module.add_depend([
'ffmpeg-avswresample',
'ffmpeg-avutil',
])
return True

View File

@ -304,6 +304,7 @@ def configure(target, my_module):
my_module.add_depend('pthread')
my_module.add_depend([
'ffmpeg-avcodec',
'ffmpeg-avutil',
])
return True

View File

@ -40,6 +40,6 @@ def configure(target, my_module):
'va',
'SDL',
])
return False
return True

58
lutin_ffmpeg-server.py Normal file
View File

@ -0,0 +1,58 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import os
def get_type():
#return "BINARY_SHARED"
return "BINARY"
def get_desc():
return "FFMPEG main application"
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):
# add the file to compile:
my_module.add_src_file([
'ffmpeg/ffserver.c',
'ffmpeg/ffserver_config.c',
'ffmpeg/cmdutils.c',
])
my_module.add_path("ffmpeg")
my_module.add_path("generated")
my_module.add_depend([
'ffmpeg-libs',
'va',
'vdpau',
])
my_module.add_flag('c', [
"-D_ISOC99_SOURCE",
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE",
"-D_POSIX_C_SOURCE=200112",
"-D_XOPEN_SOURCE=600",
"-DZLIB_CONST",
"-fomit-frame-pointer",
"-D_GNU_SOURCE=1",
"-D_REENTRANT"
])
return True

View File

@ -44,6 +44,6 @@ def configure(target, my_module):
'va',
'vdpau',
])
return False
return True