mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
build: Add build support for cube, cylinder and equirect layers to meson
This commit is contained in:
parent
3b8c8ddc1a
commit
6c084e2cbf
|
@ -72,3 +72,27 @@ option('service',
|
|||
value: true,
|
||||
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'
|
||||
)
|
||||
|
|
|
@ -73,6 +73,22 @@ if true
|
|||
have_conf.set('XRT_HAVE_VULKAN', true)
|
||||
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(
|
||||
output: 'xrt_config_have.h',
|
||||
configuration: have_conf,
|
||||
|
|
Loading…
Reference in a new issue