summaryrefslogtreecommitdiff
path: root/libdecor
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-03-29 15:25:29 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-03-29 15:25:29 +0200
commit64ac7b47b81549bce8911422209c81b77a9232ba (patch)
tree7cba1a59a6484779bd1e3356fd95546b81cca40b /libdecor
parent70252b0c1a80e580eb81d9212274a273b19868c4 (diff)
Improve detection of the location of Wayland protocol files across OSes
Diffstat (limited to 'libdecor')
-rw-r--r--libdecor/build/Makefile7
1 files changed, 1 insertions, 6 deletions
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