ffmpeg-lutin/lutin_ffmpeg-server.py

62 lines
1.1 KiB
Python
Raw Normal View History

#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
2019-05-03 10:18:23 +02:00
import realog.debug as debug
import os
2016-10-10 22:02:01 +02:00
import lutinLib_ffmpegCommon
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):
return False
2016-10-10 22:02:01 +02:00
if "Linux" not in target.get_type():
return False
# 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")
2016-10-10 22:02:01 +02:00
lutinLib_ffmpegCommon.add_generate_path(target, my_module)
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