2015-02-28 17:17:32 -08:00
|
|
|
project(win-decklink)
|
|
|
|
|
2017-05-07 12:41:38 -07:00
|
|
|
if(DISABLE_DECKLINK)
|
|
|
|
message(STATUS "decklink plugin disabled")
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2015-02-28 17:17:32 -08:00
|
|
|
include(IDLFileHelper)
|
|
|
|
|
|
|
|
set(win-decklink-sdk_IDLS
|
|
|
|
decklink-sdk/DeckLinkAPI.idl
|
|
|
|
)
|
|
|
|
|
|
|
|
set(win-decklink-sdk_HEADERS
|
|
|
|
decklink-sdk/DeckLinkAPIVersion.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(win-decklink_HEADERS
|
2018-09-25 15:51:32 -07:00
|
|
|
../decklink-devices.hpp
|
|
|
|
../DecklinkOutput.hpp
|
|
|
|
../const.h
|
2015-02-28 17:17:32 -08:00
|
|
|
../platform.hpp
|
2018-09-25 15:51:32 -07:00
|
|
|
../DecklinkInput.hpp
|
|
|
|
../DecklinkBase.h
|
2015-02-28 17:17:32 -08:00
|
|
|
../decklink-device-instance.hpp
|
|
|
|
../decklink-device-discovery.hpp
|
|
|
|
../decklink-device.hpp
|
|
|
|
../decklink-device-mode.hpp
|
2017-03-30 21:03:38 -07:00
|
|
|
../audio-repack.h
|
|
|
|
../audio-repack.hpp
|
2019-02-25 21:19:35 -08:00
|
|
|
../util.hpp
|
2015-02-28 17:17:32 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(win-decklink_SOURCES
|
|
|
|
../plugin-main.cpp
|
2018-09-25 15:51:32 -07:00
|
|
|
../decklink-devices.cpp
|
|
|
|
../DecklinkOutput.cpp
|
|
|
|
../decklink-source.cpp
|
|
|
|
../decklink-output.cpp
|
|
|
|
../DecklinkInput.cpp
|
|
|
|
../DecklinkBase.cpp
|
2015-02-28 17:17:32 -08:00
|
|
|
../decklink-device-instance.cpp
|
|
|
|
../decklink-device-discovery.cpp
|
|
|
|
../decklink-device.cpp
|
|
|
|
../decklink-device-mode.cpp
|
2017-03-30 21:03:38 -07:00
|
|
|
../audio-repack.c
|
2018-09-25 15:51:32 -07:00
|
|
|
platform.cpp
|
2019-02-25 21:19:35 -08:00
|
|
|
../util.cpp
|
2018-09-25 15:51:32 -07:00
|
|
|
)
|
2015-02-28 17:17:32 -08:00
|
|
|
|
|
|
|
add_idl_files(win-decklink-sdk_GENERATED_FILES
|
2018-09-25 15:51:32 -07:00
|
|
|
${win-decklink-sdk_IDLS}
|
|
|
|
)
|
2015-02-28 17:17:32 -08:00
|
|
|
|
|
|
|
include_directories(
|
2018-09-25 15:51:32 -07:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
2015-02-28 17:17:32 -08:00
|
|
|
|
|
|
|
add_library(win-decklink MODULE
|
|
|
|
${win-decklink_SOURCES}
|
|
|
|
${win-decklink_HEADERS}
|
|
|
|
${win-decklink-sdk_HEADERS}
|
2018-09-25 15:51:32 -07:00
|
|
|
${win-decklink-sdk_GENERATED_FILES}
|
|
|
|
)
|
2015-02-28 17:17:32 -08:00
|
|
|
|
|
|
|
target_link_libraries(win-decklink
|
|
|
|
libobs)
|
|
|
|
|
|
|
|
install_obs_plugin_with_data(win-decklink ../data)
|