deps-libff: Add libff library to deps

This library wraps the ffmpeg library and adds some utility
functions and types.
This commit is contained in:
kc5nra
2015-03-08 13:42:23 -05:00
parent 55bba03c85
commit 5d6a4e5172
19 changed files with 2043 additions and 0 deletions

52
deps/libff/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1,52 @@
cmake_minimum_required (VERSION 2.8.11)
project (libff)
find_package(FFMpeg REQUIRED
COMPONENTS avcodec avfilter avdevice avutil swscale avformat swresample)
include_directories(${FFMPEG_INCLUDE_DIRS})
if(WIN32)
include_directories(../w32-pthreads)
add_definitions(-Dinline=__inline)
endif(WIN32)
set(libff_HEADERS
libff/ff-callbacks.h
libff/ff-circular-queue.h
libff/ff-clock.h
libff/ff-frame.h
libff/ff-packet-queue.h
libff/ff-timer.h
#
libff/ff-demuxer.h
#
libff/ff-decoder.h)
set(libff_SOURCES
libff/ff-callbacks.c
libff/ff-circular-queue.c
libff/ff-clock.c
libff/ff-packet-queue.c
libff/ff-timer.c
#
libff/ff-demuxer.c
#
libff/ff-decoder.c
libff/ff-audio-decoder.c
libff/ff-video-decoder.c)
add_library (libff STATIC
${libff_HEADERS}
${libff_SOURCES})
target_include_directories(libff
PUBLIC .)
if(NOT MSVC)
if(NOT MINGW)
target_compile_options(libff PRIVATE -fPIC)
endif()
endif()
target_link_libraries (libff)