meson: Make shader-cache a trillean instead of boolean

So that it can be implicitly disabled on windows, where it doesn't
compile.

v2: - Use an auto-option rather than automagic.
    - fix shader_cache check (== -> !=)
v4: - Use new with_shader_cache instead of get_option('shader-cache')
      elsewhere in the meson build

Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Dylan Baker
2018-04-18 13:20:28 -07:00
parent ddc15fba2b
commit f5eafc2dc6
2 changed files with 17 additions and 6 deletions

View File

@@ -157,8 +157,9 @@ option(
)
option(
'shader-cache',
type : 'boolean',
value : true,
type : 'combo',
value : 'auto',
choices : ['auto', 'true', 'false'],
description : 'Build with on-disk shader cache support'
)
option(