meson: make C++ compiler optional
authorTim-Philipp Müller <tim@centricular.com>
Sun, 21 May 2017 09:37:19 +0000 (10:37 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 21 May 2017 09:37:19 +0000 (10:37 +0100)
It's only needed for the taglib plugin which is optional.

ext/taglib/meson.build
meson.build

index c0b6a50..6eb20e6 100644 (file)
@@ -6,7 +6,7 @@ taglib_sources = [
 
 taglib_dep = dependency('taglib', version : '>= 1.5', required : false)
 
-if taglib_dep.found() and add_languages('cpp')
+if taglib_dep.found() and add_languages('cpp', required : false)
   gsttaglib = library('gsttaglib',
     taglib_sources,
     c_args : gst_plugins_good_args + ['-DGST_USE_UNSTABLE_API'],
index 5b0a680..c168f52 100644 (file)
@@ -1,4 +1,4 @@
-project('gst-plugins-good', 'c', 'cpp',
+project('gst-plugins-good', 'c',
   version : '1.13.0.1',
   meson_version : '>= 0.36.0',
   default_options : [ 'warning_level=1',