From bbd9a49bdf1449886b8e8e12a96455a1e2228143 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 16 Aug 2025 19:21:17 +0200 Subject: [PATCH] tinywl: stop generating xdg-shell header We don't need to do this anymore for wayland-protocols. --- tinywl/Makefile | 13 ++----------- tinywl/meson.build | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/tinywl/Makefile b/tinywl/Makefile index 70dc671ca..9c7af540e 100644 --- a/tinywl/Makefile +++ b/tinywl/Makefile @@ -1,6 +1,4 @@ PKG_CONFIG?=pkg-config -WAYLAND_PROTOCOLS!=$(PKG_CONFIG) --variable=pkgdatadir wayland-protocols -WAYLAND_SCANNER!=$(PKG_CONFIG) --variable=wayland_scanner wayland-scanner PKGS="wlroots-0.20" wayland-server xkbcommon CFLAGS_PKG_CONFIG!=$(PKG_CONFIG) --cflags $(PKGS) @@ -9,19 +7,12 @@ LIBS!=$(PKG_CONFIG) --libs $(PKGS) all: tinywl -# wayland-scanner is a tool which generates C headers and rigging for Wayland -# protocols, which are specified in XML. wlroots requires you to rig these up -# to your build system yourself and provide them in the include path. -xdg-shell-protocol.h: - $(WAYLAND_SCANNER) server-header \ - $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@ - -tinywl.o: tinywl.c xdg-shell-protocol.h +tinywl.o: tinywl.c $(CC) -c $< -g -Werror $(CFLAGS) -I. -DWLR_USE_UNSTABLE -o $@ tinywl: tinywl.o $(CC) $^ $> -g -Werror $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ clean: - rm -f tinywl tinywl.o xdg-shell-protocol.h + rm -f tinywl tinywl.o .PHONY: all clean diff --git a/tinywl/meson.build b/tinywl/meson.build index e7271458b..07b4a5e99 100644 --- a/tinywl/meson.build +++ b/tinywl/meson.build @@ -1,5 +1,5 @@ executable( 'tinywl', - ['tinywl.c', protocols_server_header['xdg-shell']], + 'tinywl.c', dependencies: wlroots, )