2015-02-19 17:15:59 -08:00
|
|
|
project(linux-decklink)
|
|
|
|
|
2017-05-07 12:41:38 -07:00
|
|
|
if(DISABLE_DECKLINK)
|
|
|
|
message(STATUS "decklink plugin disabled")
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2015-02-19 17:15:59 -08:00
|
|
|
set(linux-decklink-sdk_HEADERS
|
|
|
|
decklink-sdk/DeckLinkAPI.h
|
|
|
|
decklink-sdk/DeckLinkAPIConfiguration.h
|
|
|
|
decklink-sdk/DeckLinkAPIDeckControl.h
|
|
|
|
decklink-sdk/DeckLinkAPIDiscovery.h
|
|
|
|
decklink-sdk/DeckLinkAPIModes.h
|
|
|
|
decklink-sdk/DeckLinkAPITypes.h
|
|
|
|
decklink-sdk/DeckLinkAPIVersion.h
|
|
|
|
decklink-sdk/LinuxCOM.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(linux-decklink-sdk_SOURCES
|
|
|
|
decklink-sdk/DeckLinkAPIDispatch.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(linux-decklink_HEADERS
|
2018-09-25 15:51:32 -07:00
|
|
|
../decklink-devices.hpp
|
|
|
|
../const.h
|
|
|
|
../DecklinkOutput.hpp
|
2015-02-19 17:15:59 -08:00
|
|
|
../platform.hpp
|
2018-09-25 15:51:32 -07:00
|
|
|
../DecklinkInput.hpp
|
|
|
|
../DecklinkBase.h
|
2015-02-19 17:15:59 -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-19 17:15:59 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(linux-decklink_SOURCES
|
|
|
|
../plugin-main.cpp
|
2018-09-25 15:51:32 -07:00
|
|
|
../decklink-devices.cpp
|
|
|
|
../decklink-source.cpp
|
|
|
|
../decklink-output.cpp
|
|
|
|
../DecklinkOutput.cpp
|
|
|
|
../DecklinkInput.cpp
|
|
|
|
../DecklinkBase.cpp
|
2015-02-19 17:15:59 -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-19 17:15:59 -08:00
|
|
|
|
|
|
|
add_library(linux-decklink MODULE
|
|
|
|
${linux-decklink_SOURCES}
|
|
|
|
${linux-decklink_HEADERS}
|
|
|
|
${linux-decklink-sdk_HEADERS}
|
2018-09-25 15:51:32 -07:00
|
|
|
${linux-decklink-sdk_SOURCES}
|
|
|
|
)
|
2015-02-19 17:15:59 -08:00
|
|
|
|
|
|
|
target_link_libraries(linux-decklink
|
2018-09-25 15:51:32 -07:00
|
|
|
libobs
|
|
|
|
)
|
2020-05-13 06:37:01 -07:00
|
|
|
set_target_properties(linux-decklink PROPERTIES FOLDER "plugins")
|
2015-02-19 17:15:59 -08:00
|
|
|
|
|
|
|
install_obs_plugin_with_data(linux-decklink ../data)
|