From 64ac7b47b81549bce8911422209c81b77a9232ba Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 29 Mar 2023 15:25:29 +0200 Subject: Improve detection of the location of Wayland protocol files across OSes --- libdecor/build/Makefile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libdecor') diff --git a/libdecor/build/Makefile b/libdecor/build/Makefile index f25f84168..98d8b0bef 100644 --- a/libdecor/build/Makefile +++ b/libdecor/build/Makefile @@ -20,12 +20,7 @@ OBJECTS = fl_libdecor.o libdecor-cairo-blur.o fl_libdecor-plugins.o \ ../../src/xdg-decoration-protocol.o ../../src/xdg-shell-protocol.o \ ../../src/text-input-protocol.o cursor-settings.o os-compatibility.o - -# ${UNAME} is set to the product of `uname -s` in makeinclude - -Linux_PROTO = /usr/share/wayland-protocols -FreeBSD_PROTO = /usr/local/share/wayland-protocols -PROTOCOLS = ${${UNAME}_PROTO} +PROTOCOLS = `pkg-config --variable=pkgdatadir wayland-protocols` Linux_CFLAGS = FreeBSD_CFLAGS = -I/usr/local/include -- cgit v1.2.3