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:
Yeongjin Jeong 2019-11-01 14:22:46 +09:00 committed by GStreamer Merge Bot
parent fe8e2a001c
commit 56333073a9

View file

@ -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()