diff --git a/meson_options.txt b/meson_options.txt index 74fc92491..8f7605b37 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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' +) diff --git a/src/xrt/include/xrt/meson.build b/src/xrt/include/xrt/meson.build index 65e7bec51..8c39675ff 100644 --- a/src/xrt/include/xrt/meson.build +++ b/src/xrt/include/xrt/meson.build @@ -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,