wlroots-hyprland/include/meson.build
Simon Ser eec2e1d3b1 xwayland: check executable exists on init
Instead of walking PATH like a previous proposal [1], this one
checks that the Xwayland path specified in the pkg-config file
exists.

I think this is a reasonable compromise:

- Users that don't have Xwayland installed system-wide won't get
  a bogus DISPLAY env variable set up.
- Users that have WLR_XWAYLAND set won't be affected by this check.
- Users that have Xwayland installed system-wide and a different
  Xwayland in their PATH still get their custom Xwayland.
- Users that don't have Xwayland installed system-wide but have it
  somewhere else in PATH are left out. But this is pretty niche,
  and they can just set WLR_XWAYLAND.

[1]: https://github.com/swaywm/wlroots/pull/2314
2021-03-03 18:19:12 +01:00

23 lines
509 B
Meson

subdir('wlr')
exclude_files = ['meson.build', 'config.h.in', 'version.h.in']
if not features.get('x11-backend')
exclude_files += 'backend/x11.h'
endif
if not features.get('xwayland')
exclude_files += 'xwayland.h'
else
subdir('xwayland')
endif
if not features.get('xdg-foreign')
exclude_files += [
'types/wlr_xdg_foreign_v1.h',
'types/wlr_xdg_foreign_v2.h',
'types/wlr_xdg_foreign_registry.h',
]
endif
install_subdir('wlr',
install_dir: get_option('includedir'),
exclude_files: exclude_files,
)