mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-28 05:40:11 -04:00
tinywl: stop generating xdg-shell header
We don't need to do this anymore for wayland-protocols.
This commit is contained in:
parent
7bf5ff4c02
commit
bbd9a49bdf
2 changed files with 3 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
executable(
|
||||
'tinywl',
|
||||
['tinywl.c', protocols_server_header['xdg-shell']],
|
||||
'tinywl.c',
|
||||
dependencies: wlroots,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue