mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
meson build: only link with deps when required by options
This commit is contained in:
parent
161ae2fcb4
commit
435aec0033
2 changed files with 21 additions and 17 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue