2016-02-23 23:16:51 +00:00
|
|
|
project(obs-ffmpeg)
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
set(obs-ffmpeg_PLATFORM_DEPS
|
|
|
|
w32-pthreads)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
find_package(FFmpeg REQUIRED
|
|
|
|
COMPONENTS avcodec avfilter avdevice avutil swscale avformat swresample)
|
|
|
|
include_directories(${FFMPEG_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
set(obs-ffmpeg_HEADERS
|
|
|
|
obs-ffmpeg-formats.h
|
|
|
|
obs-ffmpeg-compat.h
|
|
|
|
closest-pixel-format.h)
|
|
|
|
set(obs-ffmpeg_SOURCES
|
|
|
|
obs-ffmpeg.c
|
2018-02-19 19:54:37 +00:00
|
|
|
obs-ffmpeg-audio-encoders.c
|
2016-05-24 19:53:01 +00:00
|
|
|
obs-ffmpeg-nvenc.c
|
2016-02-23 23:16:51 +00:00
|
|
|
obs-ffmpeg-output.c
|
|
|
|
obs-ffmpeg-mux.c
|
|
|
|
obs-ffmpeg-source.c)
|
|
|
|
|
|
|
|
add_library(obs-ffmpeg MODULE
|
|
|
|
${obs-ffmpeg_HEADERS}
|
|
|
|
${obs-ffmpeg_SOURCES})
|
|
|
|
target_link_libraries(obs-ffmpeg
|
|
|
|
libobs
|
2017-06-29 19:01:10 +00:00
|
|
|
media-playback
|
2016-02-23 23:16:51 +00:00
|
|
|
${obs-ffmpeg_PLATFORM_DEPS}
|
|
|
|
${FFMPEG_LIBRARIES})
|
|
|
|
|
|
|
|
install_obs_plugin_with_data(obs-ffmpeg data)
|
|
|
|
|
|
|
|
add_subdirectory(ffmpeg-mux)
|