From b37731cdbbef4dc52033c2d26b04d2329720fa07 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 25 Aug 2021 09:40:46 +0200 Subject: backend/{drm,libinput}: exclude headers when disabled --- include/meson.build | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/meson.build') diff --git a/include/meson.build b/include/meson.build index 90ca8bf3..ff951108 100644 --- a/include/meson.build +++ b/include/meson.build @@ -1,6 +1,12 @@ subdir('wlr') exclude_files = ['meson.build', 'config.h.in', 'version.h.in'] +if not features.get('drm-backend') + exclude_files += 'backend/drm.h' +endif +if not features.get('libinput-backend') + exclude_files += 'backend/libinput.h' +endif if not features.get('x11-backend') exclude_files += 'backend/x11.h' endif -- cgit v1.2.3