~whynothugo/wlhc

2d86fa74a65655b816707a44012dba69cc2f0aec — Hugo Osvaldo Barrera 2 months ago 7c534b9
Use pkg-config to find wayland protocol files

I.e.: remove hardcoded paths.
1 files changed, 3 insertions(+), 3 deletions(-)

M Makefile
M Makefile => Makefile +3 -3
@@ 6,13 6,13 @@ build:
	mkdir -p wayland/xdg wayland/wlr wayland/wp

	hare-wlscanner \
		< /usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml \
		< $(shell pkg-config --variable=pkgdatadir wayland-protocols)/stable/xdg-shell/xdg-shell.xml \
		> wayland/xdg/shell.ha
	hare-wlscanner \
		< /usr/share/wayland-protocols/staging/single-pixel-buffer/single-pixel-buffer-v1.xml \
		< $(shell pkg-config --variable=pkgdatadir wayland-protocols)/staging/single-pixel-buffer/single-pixel-buffer-v1.xml \
		> wayland/wp/single_pixel_buffer.ha
	hare-wlscanner \
		< /usr/share/wlr-protocols/unstable/wlr-layer-shell-unstable-v1.xml \
		< $(shell pkg-config --variable=pkgdatadir wlr-protocols)/unstable/wlr-layer-shell-unstable-v1.xml \
		> wayland/wlr/layer_shell.ha
	
	hare build -o wlhc