From 537fe6c637b18d8168b5180001b3db70454ad1c8 Mon Sep 17 00:00:00 2001 From: Kirill Isakov Date: Sun, 15 Dec 2019 16:57:51 +0600 Subject: [PATCH] Fix SPIRV linking error on Ubuntu/Debian --- gtk/meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/meson.build b/gtk/meson.build index b47833e7..66555110 100644 --- a/gtk/meson.build +++ b/gtk/meson.build @@ -93,13 +93,14 @@ endif if slang and opengl glslang_dep = c_compiler.find_library('glslang', required: false) + hlsl_dep = c_compiler.find_library('HLSL', required: false) spirv_dep = c_compiler.find_library('SPIRV', required: false) osdependent_dep = c_compiler.find_library('OSDependent', required: false) ogl_compiler_dep = c_compiler.find_library('OGLCompiler', required: false) spv_remapper_dep = c_compiler.find_library('SPVRemapper', required: false) - if glslang_dep.found() and spirv_dep.found() and osdependent_dep.found() and ogl_compiler_dep.found() and spv_remapper_dep.found() - deps += [glslang_dep, spirv_dep, osdependent_dep, ogl_compiler_dep, spv_remapper_dep] + if glslang_dep.found() and hlsl_dep.found() and spirv_dep.found() and osdependent_dep.found() and ogl_compiler_dep.found() and spv_remapper_dep.found() + deps += [glslang_dep, hlsl_dep, spirv_dep, osdependent_dep, ogl_compiler_dep, spv_remapper_dep] args += ['-DUSE_SLANG', '-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS',