auto generate glue code
This commit is contained in:
parent
9d530777bc
commit
1c65aead88
4 changed files with 7 additions and 2511 deletions
9
Makefile
9
Makefile
|
|
@ -1,4 +1,9 @@
|
|||
CFLAGS=-Wall -Wextra -Og -ggdb3
|
||||
LIBS=-lwayland-client -lwayland-egl -lEGL -lOpenGL -lrt
|
||||
INTERFACEDIR:=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
|
||||
CFLAGS=-Wall -Wextra -Wpedantic -Og -ggdb3
|
||||
LIBS=-lwayland-client -lwayland-egl -lEGL -lOpenGL
|
||||
wayland: wayland.c xdg-shell-protocol.c xdg-shell-client-protocol.h
|
||||
gcc $(CFLAGS) $(LIBS) wayland.c xdg-shell-protocol.c -o wayland
|
||||
xdg-shell-protocol.c:
|
||||
wayland-scanner private-code $(INTERFACEDIR)/stable/xdg-shell/xdg-shell.xml xdg-shell-protocol.c
|
||||
xdg-shell-client-protocol.h:
|
||||
wayland-scanner client-header $(INTERFACEDIR)/stable/xdg-shell/xdg-shell.xml xdg-shell-client-protocol.h
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue