mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
e457967e3f
Without this patch I'm getting the following build error when building with Nix: FAILED: backend/wlr_backend@sta/session_direct-ipc.c.o In file included from ../backend/session/direct-ipc.c:20:0: /nix/store/9ac27wk5vh47p28gladbdfafpidrx9rh-libdrm-2.4.88-dev/include/xf86drm.h:40:17: fatal error: drm.h: No such file or directory #include <drm.h> ^ compilation terminated.
49 lines
1 KiB
Meson
49 lines
1 KiB
Meson
backend_files = files(
|
|
'backend.c',
|
|
'session/direct-ipc.c',
|
|
'session/session.c',
|
|
'drm/atomic.c',
|
|
'drm/backend.c',
|
|
'drm/drm.c',
|
|
'drm/legacy.c',
|
|
'drm/properties.c',
|
|
'drm/renderer.c',
|
|
'drm/util.c',
|
|
'headless/backend.c',
|
|
'headless/output.c',
|
|
'headless/input_device.c',
|
|
'libinput/backend.c',
|
|
'libinput/events.c',
|
|
'libinput/keyboard.c',
|
|
'libinput/pointer.c',
|
|
'libinput/tablet_pad.c',
|
|
'libinput/tablet_tool.c',
|
|
'libinput/touch.c',
|
|
'multi/backend.c',
|
|
'wayland/backend.c',
|
|
'wayland/output.c',
|
|
'wayland/registry.c',
|
|
'wayland/wl_seat.c',
|
|
'x11/backend.c',
|
|
)
|
|
|
|
if host_machine.system().startswith('freebsd')
|
|
backend_files += files('session/direct-freebsd.c')
|
|
else
|
|
backend_files += files('session/direct.c')
|
|
endif
|
|
|
|
if systemd.found()
|
|
backend_files += files('session/logind.c')
|
|
endif
|
|
|
|
if elogind.found()
|
|
backend_files += files('session/logind.c')
|
|
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],
|
|
)
|