summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-08-01 03:43:31 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-08-01 03:44:07 +0530
commit60542ec97023166ddecfc888cfacb496f6340548 (patch)
treeac697ad63c06deaa949c42029a148afe9c65c209
parent231524cbbcd063a77e4f144b583629b2d607635d (diff)
meson: Add option for winks plugin
This was accidentally missed.
-rw-r--r--meson_options.txt1
-rw-r--r--sys/winks/meson.build17
2 files changed, 11 insertions, 7 deletions
diff --git a/meson_options.txt b/meson_options.txt
index c5355746e..a81c3d300 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -128,6 +128,7 @@ option('wasapi', type : 'feature', value : 'auto', description : 'Windows Audio
option('webp', type : 'feature', value : 'auto', description : 'WebP image codec plugin')
option('webrtc', type : 'feature', value : 'auto', description : 'WebRTC audio/video network bin plugin')
option('webrtcdsp', type : 'feature', value : 'auto', description : 'Plugin with various audio filters provided by the WebRTC audio processing library')
+option('winks', type : 'feature', value : 'auto', description : 'Windows Kernel Streaming video source plugin')
option('winscreencap', type : 'feature', value : 'auto', description : 'Windows Screen Capture video source plugin')
option('x265', type : 'feature', value : 'auto', description : 'HEVC/H.265 video encoder plugin')
option('zbar', type : 'feature', value : 'auto', description : 'Barcode image scanner plugin')
diff --git a/sys/winks/meson.build b/sys/winks/meson.build
index eea1a31a9..6c07a89f4 100644
--- a/sys/winks/meson.build
+++ b/sys/winks/meson.build
@@ -7,13 +7,16 @@ winks_sources = [
'ksvideohelpers.c',
]
-if host_system == 'windows'
- winks_dep = [cc.find_library('ksuser', required : get_option('winks')),
- cc.find_library('uuid', required : get_option('winks')),
- cc.find_library('strmiids', required : get_option('winks')),
- cc.find_library('dxguid', required : get_option('winks')),
- cc.find_library('setupapi', required : get_option('winks')),
- cc.find_library('ole32', required : get_option('winks'))]
+winks_option = get_option('winks')
+if host_system == 'windows' and not winks_option.disabled()
+ # FIXME: Add a way to skip this library when these deps are not found. Not
+ # urgent because these are always available when building for Windows.
+ winks_dep = [cc.find_library('ksuser', required : winks_option),
+ cc.find_library('uuid', required : winks_option),
+ cc.find_library('strmiids', required : winks_option),
+ cc.find_library('dxguid', required : winks_option),
+ cc.find_library('setupapi', required : winks_option),
+ cc.find_library('ole32', required : winks_option)]
gstwinks = library('gstwinks',
winks_sources,