summaryrefslogtreecommitdiff
path: root/ext/openjpeg
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 /ext/openjpeg
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 'ext/openjpeg')
-rw-r--r--ext/openjpeg/meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/openjpeg/meson.build b/ext/openjpeg/meson.build
index eef8c0894..1c08bd132 100644
--- a/ext/openjpeg/meson.build
+++ b/ext/openjpeg/meson.build
@@ -6,12 +6,19 @@ openjpeg_sources = [
openjpeg_cargs = []
+if get_option('openjpeg').disabled()
+ subdir_done()
+endif
+
openjpeg_dep = dependency('libopenjp2', version : '>=2.1', required : false)
if not openjpeg_dep.found()
# Fallback to v1.5
openjpeg_dep = dependency('libopenjpeg1', required : false)
openjpeg_cargs += ['-DHAVE_OPENJPEG_1']
endif
+if not openjpeg_dep.found() and get_option('openjpeg').enabled()
+ error('openjpeg plugin enabled, but neither libopenjp2 nor libopenjpeg1 not found')
+endif
if openjpeg_dep.found()
gstopenjpeg = library('gstopenjpeg',