mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 21:40:19 +00:00
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:
parent
6e27579d1f
commit
92038d6b7f
@ -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_fragment_shaders
|
||||||
gsk_private_vulkan_shaders += gsk_private_vulkan_vertex_shaders
|
gsk_private_vulkan_shaders += gsk_private_vulkan_vertex_shaders
|
||||||
|
|
||||||
glslc = find_program('glslc', required: true)
|
|
||||||
foreach shader: gsk_private_vulkan_shaders
|
foreach shader: gsk_private_vulkan_shaders
|
||||||
basefn = shader.split('.').get(0)
|
basefn = shader.split('.').get(0)
|
||||||
suffix = shader.split('.').get(1)
|
suffix = shader.split('.').get(1)
|
||||||
|
@ -599,6 +599,7 @@ endif
|
|||||||
# to use a custom path for the Vulkan SDK. Bugs that are found with it should
|
# to use a custom path for the Vulkan SDK. Bugs that are found with it should
|
||||||
# be reported upstream and fixed.
|
# be reported upstream and fixed.
|
||||||
vulkan_dep = dependency('vulkan', required: get_option('vulkan'))
|
vulkan_dep = dependency('vulkan', required: get_option('vulkan'))
|
||||||
|
glslc = find_program('glslc', required: get_option('vulkan'))
|
||||||
if vulkan_dep.found()
|
if vulkan_dep.found()
|
||||||
have_vulkan = true
|
have_vulkan = true
|
||||||
vulkan_pkg_found = vulkan_dep.type_name() == 'pkgconfig'
|
vulkan_pkg_found = vulkan_dep.type_name() == 'pkgconfig'
|
||||||
|
Loading…
Reference in New Issue
Block a user