2014-05-30 03:29:48 -07:00
|
|
|
project(win-dshow)
|
|
|
|
|
2014-09-23 06:26:08 -07:00
|
|
|
find_package(FFMpeg REQUIRED COMPONENTS avcodec avutil)
|
|
|
|
include_directories(${FFMPEG_INCLUDE_DIRS})
|
2014-09-12 19:51:45 -07:00
|
|
|
|
|
|
|
set(win-dshow_HEADERS
|
2014-12-18 15:33:35 -08:00
|
|
|
encode-dstr.hpp
|
2014-09-12 19:51:45 -07:00
|
|
|
ffmpeg-decode.h)
|
|
|
|
|
2014-05-30 03:29:48 -07:00
|
|
|
set(win-dshow_SOURCES
|
2014-09-12 19:51:45 -07:00
|
|
|
win-dshow.cpp
|
2014-12-19 12:31:23 -08:00
|
|
|
win-dshow-encoder.cpp
|
2014-12-19 07:53:15 -08:00
|
|
|
dshow-plugin.cpp
|
2014-09-12 19:51:45 -07:00
|
|
|
ffmpeg-decode.c)
|
2014-05-30 03:29:48 -07:00
|
|
|
|
|
|
|
set(libdshowcapture_SOURCES
|
|
|
|
libdshowcapture/source/capture-filter.cpp
|
2014-12-19 07:45:10 -08:00
|
|
|
libdshowcapture/source/output-filter.cpp
|
2014-05-30 03:45:34 -07:00
|
|
|
libdshowcapture/source/dshowcapture.cpp
|
2014-12-19 07:45:10 -08:00
|
|
|
libdshowcapture/source/dshowencode.cpp
|
2014-05-30 03:29:48 -07:00
|
|
|
libdshowcapture/source/device.cpp
|
2014-12-19 07:45:10 -08:00
|
|
|
libdshowcapture/source/encoder.cpp
|
2014-05-30 03:29:48 -07:00
|
|
|
libdshowcapture/source/dshow-base.cpp
|
2014-09-06 12:45:21 -07:00
|
|
|
libdshowcapture/source/dshow-demux.cpp
|
2014-05-30 03:29:48 -07:00
|
|
|
libdshowcapture/source/dshow-enum.cpp
|
|
|
|
libdshowcapture/source/dshow-formats.cpp
|
|
|
|
libdshowcapture/source/dshow-media-type.cpp
|
2014-09-12 19:53:59 -07:00
|
|
|
libdshowcapture/source/dshow-encoded-device.cpp
|
2014-05-30 03:29:48 -07:00
|
|
|
libdshowcapture/source/log.cpp)
|
|
|
|
|
|
|
|
set(libdshowcapture_HEADERS
|
|
|
|
libdshowcapture/dshowcapture.hpp
|
2014-09-06 12:45:21 -07:00
|
|
|
libdshowcapture/source/IVideoCaptureFilter.h
|
2014-05-30 03:29:48 -07:00
|
|
|
libdshowcapture/source/capture-filter.hpp
|
2014-12-19 07:45:10 -08:00
|
|
|
libdshowcapture/source/output-filter.hpp
|
2014-05-30 03:29:48 -07:00
|
|
|
libdshowcapture/source/device.hpp
|
2014-12-19 07:45:10 -08:00
|
|
|
libdshowcapture/source/encoder.hpp
|
2014-05-30 03:29:48 -07:00
|
|
|
libdshowcapture/source/dshow-base.hpp
|
2014-09-06 12:45:21 -07:00
|
|
|
libdshowcapture/source/dshow-demux.hpp
|
|
|
|
libdshowcapture/source/dshow-device-defs.hpp
|
2014-05-30 03:29:48 -07:00
|
|
|
libdshowcapture/source/dshow-enum.hpp
|
|
|
|
libdshowcapture/source/dshow-formats.hpp
|
|
|
|
libdshowcapture/source/dshow-media-type.hpp
|
|
|
|
libdshowcapture/source/log.hpp)
|
|
|
|
|
|
|
|
add_library(win-dshow MODULE
|
|
|
|
${win-dshow_SOURCES}
|
2014-09-12 19:51:45 -07:00
|
|
|
${win-dshow_HEADERS}
|
2014-05-30 03:29:48 -07:00
|
|
|
${libdshowcapture_SOURCES}
|
|
|
|
${libdshowcapture_HEADERS})
|
|
|
|
target_link_libraries(win-dshow
|
2014-05-30 03:43:53 -07:00
|
|
|
libobs
|
2015-02-04 07:43:02 -08:00
|
|
|
strmiids
|
|
|
|
ksuser
|
|
|
|
wmcodecdspuuid
|
2014-09-23 06:26:08 -07:00
|
|
|
${FFMPEG_LIBRARIES})
|
2014-05-30 03:29:48 -07:00
|
|
|
|
2014-08-19 05:24:59 -07:00
|
|
|
install_obs_plugin_with_data(win-dshow data)
|