summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2019-05-05 19:27:15 -0400
committerThibault Saunier <tsaunier@gnome.org>2019-05-05 23:26:58 +0000
commit3c8a916501670909aa4cc4f8f46cfd2396b38285 (patch)
tree77ff95f85706356594bae185f146feecd6f07916
parent3a5bcfc59310b7093f828e902883314623d60662 (diff)
meson: Add support for the colormanagement plugin
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/965
-rw-r--r--ext/colormanagement/meson.build14
-rw-r--r--ext/meson.build1
-rw-r--r--meson_options.txt1
3 files changed, 16 insertions, 0 deletions
diff --git a/ext/colormanagement/meson.build b/ext/colormanagement/meson.build
new file mode 100644
index 000000000..32551ed36
--- /dev/null
+++ b/ext/colormanagement/meson.build
@@ -0,0 +1,14 @@
+lcms2_dep = dependency('lcms2', version : '>= 2.7', required : get_option('colormanagement'))
+if lcms2_dep.found()
+ gstassrender = library('gstcolormanagement',
+ 'gstcolormanagement.c', 'gstlcms.c',
+ c_args : gst_plugins_bad_args,
+ link_args : noseh_link_args,
+ include_directories : [configinc],
+ dependencies : [gstbase_dep, gstvideo_dep, lcms2_dep],
+ install : true,
+ install_dir : plugins_install_dir,
+ )
+ pkgconfig.generate(gstassrender, install_dir : plugins_pkgconfig_install_dir)
+endif
+
diff --git a/ext/meson.build b/ext/meson.build
index 0d0b54fb2..e1ce40588 100644
--- a/ext/meson.build
+++ b/ext/meson.build
@@ -4,6 +4,7 @@ subdir('bs2b')
subdir('bz2')
subdir('chromaprint')
subdir('closedcaption')
+subdir('colormanagement')
subdir('curl')
subdir('dash')
subdir('dc1394')
diff --git a/meson_options.txt b/meson_options.txt
index 4d067f1e8..5bac2dc79 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -81,6 +81,7 @@ option('bs2b', type : 'feature', value : 'auto', description : 'Bauer stereophon
option('bz2', type : 'feature', value : 'auto', description : 'bz2 stream encoder and decoder plugin')
option('chromaprint', type : 'feature', value : 'auto', description : 'Chromaprint fingerprint audio plugin')
option('closedcaption', type : 'feature', value : 'auto', description : 'Closed caption extractor, decoder, and overlay plugin')
+option('colormanagement', type : 'feature', value : 'auto', description : 'Color management correction plugin')
option('curl', type : 'feature', value : 'auto', description : 'cURL network source and sink plugin')
option('curl-ssh2', type : 'feature', value : 'auto', description : 'cURL network source and sink plugin libssh2 support')
option('d3dvideosink', type : 'feature', value : 'auto', description : 'Direct3D video sink plugin')