Skip to content

Commit

Permalink
Gtk: Shaders: Use our copy of glslang headers
Browse files Browse the repository at this point in the history
Add include to compiler command to prevent use of system headers.
  • Loading branch information
bearoso committed Aug 8, 2020
1 parent a5cb64f commit 03d3f69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gtk/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ if slang and opengl
OSDependent_src = ['../shaders/glslang/glslang/OSDependent/Unix/ossource.cpp']
OSDependent_lib = static_library('OSDependent',
OSDependent_src,
include_directories: include_directories('../shaders/glslang'),
cpp_args: glslang_args)
libs += OSDependent_lib

Expand Down Expand Up @@ -116,12 +117,14 @@ if slang and opengl

glslang_lib = static_library('glslang',
glslang_src,
include_directories: include_directories('../shaders/glslang'),
cpp_args: glslang_args)
libs += glslang_lib

OGLCompilersDLL_src = ['../shaders/glslang/OGLCompilersDLL/InitializeDll.cpp']
OGLCompilersDLL_lib = static_library('OGLCompilersDLL',
OGLCompilersDLL_src,
include_directories: include_directories('../shaders/glslang'),
cpp_args: glslang_args)
libs += OGLCompilersDLL_lib

Expand All @@ -138,6 +141,7 @@ if slang and opengl
]
SPIRV_lib = static_library('SPIRV',
SPIRV_src,
include_directories: include_directories('../shaders/glslang'),
cpp_args: glslang_args)
libs += SPIRV_lib

Expand All @@ -156,6 +160,7 @@ if slang and opengl
'../shaders/SPIRV-Cross/spirv_parser.cpp',
'../shaders/SPIRV-Cross/spirv_parser.hpp',
'../shaders/SPIRV-Cross/spirv.hpp']
includes += '../shaders/glslang'
endif

wayland = get_option('wayland')
Expand Down

0 comments on commit 03d3f69

Please sign in to comment.