From a6e423a4133fdd6d4d729bc463d17c6c223f684d Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Tue, 12 Nov 2019 16:22:34 -0600 Subject: [PATCH] GTK: Allow SPIRV includes in glslang directory. Fixes build for Arch Linux's glslang package. --- gtk/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/meson.build b/gtk/meson.build index 01f24aa0..b47833e7 100644 --- a/gtk/meson.build +++ b/gtk/meson.build @@ -101,7 +101,9 @@ if slang and opengl 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] - args += ['-DUSE_SLANG', '-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS'] + args += ['-DUSE_SLANG', + '-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS', + '-I' + join_paths(prefix, 'include', 'glslang')] srcs += ['../shaders/slang.cpp'] srcs += ['../shaders/SPIRV-Cross/spirv_cfg.cpp', '../shaders/SPIRV-Cross/spirv_cfg.hpp',