2018-11-17 16:01:51 +04:00
|
|
|
#!/bin/sh
|
|
|
|
WAYSCAN=/usr/bin/wayland-scanner
|
|
|
|
WAYLAND_PROTOS=/usr/share/wayland-protocols
|
|
|
|
OUTPUT=gfx/common/wayland
|
|
|
|
|
2019-01-01 03:07:20 +03:00
|
|
|
if [ ! -d $WAYLAND_PROTOS ]; then
|
|
|
|
WAYSCAN=/usr/local/bin/wayland-scanner
|
|
|
|
WAYLAND_PROTOS=/usr/local/share/wayland-protocols
|
|
|
|
fi
|
|
|
|
|
2018-11-17 16:01:51 +04:00
|
|
|
if [ ! -d $OUTPUT ]; then
|
|
|
|
mkdir $OUTPUT
|
|
|
|
fi
|
|
|
|
|
2018-12-03 14:32:31 +04:00
|
|
|
#Generate xdg-shell_v6 header and .c files
|
|
|
|
$WAYSCAN client-header $WAYLAND_PROTOS/unstable/xdg-shell/xdg-shell-unstable-v6.xml $OUTPUT/xdg-shell-unstable-v6.h
|
2018-12-05 22:51:07 +04:00
|
|
|
$WAYSCAN private-code $WAYLAND_PROTOS/unstable/xdg-shell/xdg-shell-unstable-v6.xml $OUTPUT/xdg-shell-unstable-v6.c
|
2018-12-03 14:32:31 +04:00
|
|
|
|
2018-11-17 16:01:51 +04:00
|
|
|
#Generate xdg-shell header and .c files
|
|
|
|
$WAYSCAN client-header $WAYLAND_PROTOS/stable/xdg-shell/xdg-shell.xml $OUTPUT/xdg-shell.h
|
2018-12-05 22:51:07 +04:00
|
|
|
$WAYSCAN private-code $WAYLAND_PROTOS/stable/xdg-shell/xdg-shell.xml $OUTPUT/xdg-shell.c
|
2018-11-26 21:54:39 +04:00
|
|
|
|
|
|
|
#Generate idle-inhibit header and .c files
|
|
|
|
$WAYSCAN client-header $WAYLAND_PROTOS/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml $OUTPUT/idle-inhibit-unstable-v1.h
|
2018-12-05 22:51:07 +04:00
|
|
|
$WAYSCAN private-code $WAYLAND_PROTOS/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml $OUTPUT/idle-inhibit-unstable-v1.c
|
|
|
|
|
|
|
|
#Generate xdg-decoration header and .c files
|
|
|
|
$WAYSCAN client-header $WAYLAND_PROTOS/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml $OUTPUT/xdg-decoration-unstable-v1.h
|
|
|
|
$WAYSCAN private-code $WAYLAND_PROTOS/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml $OUTPUT/xdg-decoration-unstable-v1.c
|