Build fails with -Drdp=true -Dsystemd=false
If you try to build the rdp backend without libsystemd, you'll get this.
FAILED: src/gnome-remote-desktop-daemon.p/grd-daemon-utils.c.o
cc -Isrc/gnome-remote-desktop-daemon.p -Isrc -I../gnome-remote-desktop/src -I. -I../gnome-remote-desktop -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/pixman-1 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/libei-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libdrm -I/usr/include/libsecret-1 -I/usr/include/tss2 -I/usr/lib/pkgconfig/../../include/freerdp3/ -I/usr/lib/pkgconfig/../../include/winpr3 -I/usr/include/cjson -I/usr/include/fuse3 -I/usr/include/opus -I/usr/include/polkit-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIE -pthread -D_REENTRANT -MD -MQ src/gnome-remote-desktop-daemon.p/grd-daemon-utils.c.o -MF src/gnome-remote-desktop-daemon.p/grd-daemon-utils.c.o.d -o src/gnome-remote-desktop-daemon.p/grd-daemon-utils.c.o -c ../gnome-remote-desktop/src/grd-daemon-utils.c
../gnome-remote-desktop/src/grd-daemon-utils.c:24:10: fatal error: systemd/sd-login.h: No such file or directory
24 | #include <systemd/sd-login.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Which makes sense since that file is full of systemd stuff. It seems to have been introduced in 6fb6c8d3 as a part of !139 (merged). That's quite a large change so I'm not sure what is the correct approach to making it optional like before.
Edited by Dudemanguy