build: Move the glslc check into the top meson file

Put it with the other Vulkan checks, so it's easy to find.
This commit is contained in:
Benjamin Otte 2023-07-19 15:36:55 +02:00
parent 6e27579d1f
commit 92038d6b7f
2 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,6 @@ gsk_private_vulkan_vertex_shaders = [
gsk_private_vulkan_shaders += gsk_private_vulkan_fragment_shaders
gsk_private_vulkan_shaders += gsk_private_vulkan_vertex_shaders
glslc = find_program('glslc', required: true)
foreach shader: gsk_private_vulkan_shaders
basefn = shader.split('.').get(0)
suffix = shader.split('.').get(1)

View File

@ -599,6 +599,7 @@ endif
# to use a custom path for the Vulkan SDK. Bugs that are found with it should
# be reported upstream and fixed.
vulkan_dep = dependency('vulkan', required: get_option('vulkan'))
glslc = find_program('glslc', required: get_option('vulkan'))
if vulkan_dep.found()
have_vulkan = true
vulkan_pkg_found = vulkan_dep.type_name() == 'pkgconfig'