2017-03-19 15:31:12 -07:00
|
|
|
project(media-playback)
|
|
|
|
|
|
|
|
find_package(FFmpeg REQUIRED
|
|
|
|
COMPONENTS avcodec avdevice avutil avformat)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}/libobs
|
|
|
|
${FFMPEG_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(media-playback_HEADERS
|
2019-08-11 07:27:42 -07:00
|
|
|
media-playback/closest-format.h
|
2017-03-19 15:31:12 -07:00
|
|
|
media-playback/decode.h
|
|
|
|
media-playback/media.h
|
|
|
|
)
|
|
|
|
set(media-playback_SOURCES
|
|
|
|
media-playback/decode.c
|
|
|
|
media-playback/media.c
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(media-playback STATIC
|
|
|
|
${media-playback_HEADERS}
|
|
|
|
${media-playback_SOURCES}
|
|
|
|
)
|
2017-05-16 00:51:04 -07:00
|
|
|
|
2020-01-21 21:56:34 -08:00
|
|
|
target_compile_options(media-playback
|
|
|
|
PUBLIC
|
|
|
|
${ARCH_SIMD_FLAGS})
|
2017-05-16 00:51:04 -07:00
|
|
|
|
2017-03-19 15:31:12 -07:00
|
|
|
target_include_directories(media-playback
|
|
|
|
PUBLIC .
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(media-playback
|
|
|
|
${FFMPEG_LIBRARIES}
|
|
|
|
)
|
2020-09-08 13:23:49 -07:00
|
|
|
set_target_properties(media-playback PROPERTIES
|
|
|
|
FOLDER "deps"
|
|
|
|
POSITION_INDEPENDENT_CODE ON)
|