xrt: Expose XRT_HAVE_WAYLAND and XRT_HAVE_WAYLAND_DIRECT

This commit is contained in:
Jakob Bornecrantz 2021-09-16 20:52:26 +01:00 committed by Jakob Bornecrantz
parent a58b8df4a9
commit f1f4dd7c8a
2 changed files with 10 additions and 0 deletions

View file

@ -111,6 +111,14 @@ if slam.found() and build_tracking
endif
endif
if build_wayland
have_conf.set('XRT_HAVE_WAYLAND', true)
endif
if build_wayland_direct
have_conf.set('XRT_HAVE_WAYLAND_DIRECT', true)
endif
xrt_config_have_h = configure_file(
output: 'xrt_config_have.h',
configuration: have_conf,

View file

@ -28,3 +28,5 @@
#cmakedefine XRT_HAVE_PERCETTO
#cmakedefine XRT_HAVE_KIMERA_SLAM
#cmakedefine XRT_HAVE_SLAM
#cmakedefine XRT_HAVE_WAYLAND
#cmakedefine XRT_HAVE_WAYLAND_DIRECT