meson: Do not warn when a windowing system is not found

Error out when the vulkan option is enabled, and just print
a message() otherwise. This is more correct and also allows us to pass
--fatal-meson-warnings more reliably.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1391>
This commit is contained in:
Nirbheek Chauhan 2020-07-01 07:35:08 +05:30
parent 52ef192526
commit d4fa35efb9

View file

@ -265,7 +265,11 @@ if host_system == 'android'
endif
if not vulkan_windowing
warning('No Windowing system found. vulkansink will not work')
if get_option('vulkan').enabled()
error('No Windowing system found. vulkansink will not work')
else
message('No Windowing system found. vulkansink will not work')
endif
endif
# Only needed for the vulkan plugin, but doesn't make sense to build