meson: Add equirect2 to build.

This commit is contained in:
Lubosz Sarnecki 2020-10-09 16:32:20 +02:00 committed by Jakob Bornecrantz
parent 1227c77556
commit 663dfe8990
2 changed files with 10 additions and 0 deletions

View file

@ -101,3 +101,9 @@ option('layer_equirect',
value: false,
description: 'Enable support for Equirect Layers'
)
option('layer_equirect2',
type: 'boolean',
value: true,
description: 'Enable support for Equirect2 Layers'
)

View file

@ -90,6 +90,10 @@ if get_option('layer_cylinder')
endif
if get_option('layer_equirect')
have_conf.set('XRT_FEATURE_OPENXR_LAYER_EQUIRECT_LEGACY', true)
endif
if get_option('layer_equirect2')
have_conf.set('XRT_FEATURE_OPENXR_LAYER_EQUIRECT', true)
endif