decklink: Add option to disable the plugin

Add an option to the cmake build system to disable the plugin. This is
needed on arm, as the plugin uses x86-intrinsics.
master
fryshorts 2017-05-07 21:41:38 +02:00
parent 311cd6fb79
commit c8ce08d4b6
3 changed files with 15 additions and 0 deletions

View File

@ -1,5 +1,10 @@
project(linux-decklink)
if(DISABLE_DECKLINK)
message(STATUS "decklink plugin disabled")
return()
endif()
set(linux-decklink-sdk_HEADERS
decklink-sdk/DeckLinkAPI.h
decklink-sdk/DeckLinkAPIConfiguration.h

View File

@ -1,5 +1,10 @@
project(mac-decklink)
if(DISABLE_DECKLINK)
message(STATUS "decklink plugin disabled")
return()
endif()
find_library(COREFOUNDATION CoreFoundation)
include_directories(${COREFOUNDATION})

View File

@ -1,5 +1,10 @@
project(win-decklink)
if(DISABLE_DECKLINK)
message(STATUS "decklink plugin disabled")
return()
endif()
include(IDLFileHelper)
set(win-decklink-sdk_IDLS