build: exclude <wlr/types/wlr_drm_lease_v1.h> without DRM backend

When the DRM backend is disabled, so is the DRM lease protocol.
Prevent the header from being installed in that case.
This commit is contained in:
Simon Ser 2022-11-26 20:22:07 +01:00 committed by Kirill Primak
parent 35a0d9c85d
commit ab6607b950
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@ subdir('wlr')
exclude_files = ['meson.build', 'config.h.in', 'version.h.in']
if not features.get('drm-backend')
exclude_files += 'backend/drm.h'
exclude_files += 'types/wlr_drm_lease_v1.h'
endif
if not features.get('libinput-backend')
exclude_files += 'backend/libinput.h'