mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
meson: Make C++ compiler detection not be automagic
It is now controlled by the qt5 and/or taglib options. We won't silently fail to build taglib now. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/587>
This commit is contained in:
parent
d67a658daf
commit
553ac050f0
3 changed files with 2 additions and 6 deletions
|
@ -33,10 +33,7 @@ if not have_gstgl
|
|||
subdir_done()
|
||||
endif
|
||||
|
||||
if not have_cxx
|
||||
if qt5_option.enabled()
|
||||
error('qt5 qmlglsink plugin is enabled, but no C++ compiler is available')
|
||||
endif
|
||||
if not add_languages('cpp', required: qt5_option)
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ taglib_sources = [
|
|||
|
||||
taglib_dep = dependency('taglib', version : '>= 1.5', required : get_option('taglib'))
|
||||
|
||||
if taglib_dep.found() and add_languages('cpp')
|
||||
if taglib_dep.found() and add_languages('cpp', required : get_option('taglib'))
|
||||
extra_args = []
|
||||
cxx = meson.get_compiler('cpp')
|
||||
if cxx.has_argument('-fvisibility=hidden')
|
||||
|
|
|
@ -16,7 +16,6 @@ else
|
|||
endif
|
||||
gst_version_is_dev = gst_version_minor % 2 == 1 and gst_version_micro < 90
|
||||
|
||||
# FIXME: automagic
|
||||
have_cxx = add_languages('cpp', required : false)
|
||||
|
||||
glib_req = '>= 2.44.0'
|
||||
|
|
Loading…
Reference in a new issue