diff --git a/src/xrt/include/xrt/meson.build b/src/xrt/include/xrt/meson.build index b4e38387c..3fc3bc8d8 100644 --- a/src/xrt/include/xrt/meson.build +++ b/src/xrt/include/xrt/meson.build @@ -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, diff --git a/src/xrt/include/xrt/xrt_config_have.h.cmake_in b/src/xrt/include/xrt/xrt_config_have.h.cmake_in index 91b8899a1..06b7cd521 100644 --- a/src/xrt/include/xrt/xrt_config_have.h.cmake_in +++ b/src/xrt/include/xrt/xrt_config_have.h.cmake_in @@ -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