build: Add build support for cube, cylinder and equirect layers to meson

This commit is contained in:
Christoph Haag 2020-08-14 16:24:43 +02:00
parent 3b8c8ddc1a
commit 6c084e2cbf
2 changed files with 40 additions and 0 deletions

View file

@ -72,3 +72,27 @@ option('service',
value: true, value: true,
description: 'Enable separate service module for OpenXR runtime' description: 'Enable separate service module for OpenXR runtime'
) )
option('layer_depth',
type: 'boolean',
value: false,
description: 'Enable support for Depth Layers'
)
option('layer_cube',
type: 'boolean',
value: false,
description: 'Enable support for Cube Layers'
)
option('layer_cylinder',
type: 'boolean',
value: false,
description: 'Enable support for Cylinder Layers'
)
option('layer_equirect',
type: 'boolean',
value: false,
description: 'Enable support for Equirect Layers'
)

View file

@ -73,6 +73,22 @@ if true
have_conf.set('XRT_HAVE_VULKAN', true) have_conf.set('XRT_HAVE_VULKAN', true)
endif endif
if get_option('layer_depth')
have_conf.set('XRT_FEATURE_OPENXR_LAYER_DEPTH', true)
endif
if get_option('layer_cube')
have_conf.set('XRT_FEATURE_OPENXR_LAYER_CUBE', true)
endif
if get_option('layer_cylinder')
have_conf.set('XRT_FEATURE_OPENXR_LAYER_CYLINDER', true)
endif
if get_option('layer_equirect')
have_conf.set('XRT_FEATURE_OPENXR_LAYER_EQUIRECT', true)
endif
xrt_config_have_h = configure_file( xrt_config_have_h = configure_file(
output: 'xrt_config_have.h', output: 'xrt_config_have.h',
configuration: have_conf, configuration: have_conf,