aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-08-25 09:40:46 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-08-25 09:50:27 -0400
commitb37731cdbbef4dc52033c2d26b04d2329720fa07 (patch)
treef63552fc218396861f907e55803126ad467e19cb
parent65c0ab00b6aac3b6ca7fb3603a02116120b6ed46 (diff)
backend/{drm,libinput}: exclude headers when disabled
-rw-r--r--include/meson.build6
1 files changed, 6 insertions, 0 deletions
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