Skip to content

Commit

Permalink
spirv-cross conditionally compiled with gl3
Browse files Browse the repository at this point in the history
  • Loading branch information
rtbo committed Feb 7, 2021
1 parent badcbf6 commit 00921b2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ project('gfx-d', ['d', 'cpp'],
default_options: ['cpp_std=c++14']
)

spirv_cross_proj = subproject('spirv_cross-d',
default_options: ['cpp_std=c++14'],
)

spirv_cross_dep = spirv_cross_proj.get_variable('spirv_cross_dep')

if host_machine.system() == 'linux'

if not get_option('disable_wayland')
Expand Down Expand Up @@ -47,6 +41,10 @@ subdir('memalloc')
subdir('vulkan')

if get_option('enable_gl3')
spirv_cross_proj = subproject('spirv_cross-d',
default_options: ['cpp_std=c++14'],
)
spirv_cross_dep = spirv_cross_proj.get_variable('spirv_cross_dep')
subdir('gl3')
endif

Expand Down

0 comments on commit 00921b2

Please sign in to comment.