mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
vulkan: Fix build error when gstvulkan is not installed
The following build error occurs: vkdeviceprovider.h:30:10: fatal error: gst/vulkan/vulkan.h: No such file or directory #include <gst/vulkan/vulkan.h> ^~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
fe8e2a001c
commit
56333073a9
1 changed files with 9 additions and 0 deletions
|
@ -1,6 +1,15 @@
|
||||||
if get_option('vulkan').disabled()
|
if get_option('vulkan').disabled()
|
||||||
subdir_done()
|
subdir_done()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if not gstvulkan_dep.found()
|
||||||
|
if get_option('vulkan').enabled()
|
||||||
|
error('GStreamer Vulkan plugin required via options, but needed dependencies not found.')
|
||||||
|
else
|
||||||
|
subdir_done()
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
glslc = find_program('glslc', required: get_option('vulkan'))
|
glslc = find_program('glslc', required: get_option('vulkan'))
|
||||||
if not glslc.found()
|
if not glslc.found()
|
||||||
subdir_done()
|
subdir_done()
|
||||||
|
|
Loading…
Reference in a new issue