summaryrefslogtreecommitdiff
path: root/gst-libs/gst/opencv
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-07-27 18:59:23 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-07-27 19:04:38 +0530
commitb55dfb5313f1df702a3637efbd372b90cd12a300 (patch)
treeae7f255314e783be74b9201cd6dfcd8ca9da18b5 /gst-libs/gst/opencv
parent7ef303fa281b9226ebd0087fb377ca25887941e4 (diff)
downloadgstreamer-plugins-bad-b55dfb5313f1df702a3637efbd372b90cd12a300.tar.gz
Add feature options for almost all plugins
The only plugins remaining are those that haven't been ported to Meson yet, and msdk. Also, the tests are still automagic. https://bugzilla.gnome.org/show_bug.cgi?id=795107
Diffstat (limited to 'gst-libs/gst/opencv')
-rw-r--r--gst-libs/gst/opencv/meson.build5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst-libs/gst/opencv/meson.build b/gst-libs/gst/opencv/meson.build
index ba132aa09..b11e2ba34 100644
--- a/gst-libs/gst/opencv/meson.build
+++ b/gst-libs/gst/opencv/meson.build
@@ -8,9 +8,8 @@ opencv_headers = [
'gstopencvutils.h',
'gstopencvvideofilter.h',
]
-install_headers(opencv_headers, subdir : 'gstreamer-1.0/gst/opencv')
-opencv_dep = dependency('opencv', version : '>= 2.3.0', required : false)
+opencv_dep = dependency('opencv', version : '>= 2.3.0', required : get_option('opencv'))
if opencv_dep.found()
gstopencv = library('gstopencv-' + api_version,
opencv_sources,
@@ -25,4 +24,6 @@ if opencv_dep.found()
gstopencv_dep = declare_dependency(link_with: gstopencv,
include_directories : [libsinc],
dependencies : [gstvideo_dep, opencv_dep])
+
+ install_headers(opencv_headers, subdir : 'gstreamer-1.0/gst/opencv')
endif