mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +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()
|
||||
subdir_done()
|
||||
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'))
|
||||
if not glslc.found()
|
||||
subdir_done()
|
||||
|
|
Loading…
Reference in a new issue