aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2018-02-10 11:30:47 +0100
committerDominique Martinet <asmadeus@codewreck.org>2018-02-10 11:30:47 +0100
commit435aec003376de1928106fa9644b026e36f6250a (patch)
tree71ecf5f14a1d64295f39329f87db1331c81b3236 /backend
parent161ae2fcb41e1a5e8fbc56a375b332ec63c47bf2 (diff)
meson build: only link with deps when required by options
Diffstat (limited to 'backend')
-rw-r--r--backend/meson.build26
1 files changed, 14 insertions, 12 deletions
diff --git a/backend/meson.build b/backend/meson.build
index e769e889..beb3841c 100644
--- a/backend/meson.build
+++ b/backend/meson.build
@@ -27,6 +27,17 @@ backend_files = files(
'x11/backend.c',
)
+backend_deps = [
+ wayland_server,
+ egl,
+ gbm,
+ libinput,
+ wlr_render,
+ wlr_protos,
+ drm,
+ pixman,
+]
+
if host_machine.system().startswith('freebsd')
backend_files += files('session/direct-freebsd.c')
else
@@ -35,26 +46,17 @@ endif
if conf_data.get('WLR_HAS_SYSTEMD', false)
backend_files += files('session/logind.c')
+ backend_deps += systemd
endif
if conf_data.get('WLR_HAS_ELOGIND', false)
backend_files += files('session/logind.c')
+ backend_deps += elogind
endif
lib_wlr_backend = static_library(
'wlr_backend',
backend_files,
include_directories: wlr_inc,
- dependencies: [
- wayland_server,
- egl,
- gbm,
- libinput,
- systemd,
- elogind,
- wlr_render,
- wlr_protos,
- drm,
- pixman,
- ],
+ dependencies: backend_deps,
)