mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-27 03:56:06 +00:00
Fix version's comparison
This commit is contained in:
parent
677395f05e
commit
10d2d13004
@ -1,6 +1,5 @@
|
||||
#!/bin/sh
|
||||
WAYSCAN=/usr/bin/wayland-scanner
|
||||
WAYSCAN_VER=$($WAYSCAN --version 2>&1 | awk '{print $2}')
|
||||
WAYLAND_PROTOS=/usr/share/wayland-protocols
|
||||
OUTPUT=gfx/common/wayland
|
||||
|
||||
@ -13,13 +12,6 @@ if [ ! -d $OUTPUT ]; then
|
||||
mkdir $OUTPUT
|
||||
fi
|
||||
|
||||
#Since Wayland 1.15 option "code" is deprecated. Recommended to use "private-code" option instead.
|
||||
if [ "$WAYSCAN_VER -ge 1.15" ]; then
|
||||
CODEGEN=private-code
|
||||
else
|
||||
CODEGEN=code
|
||||
fi
|
||||
|
||||
#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
|
||||
$WAYSCAN $CODEGEN $WAYLAND_PROTOS/unstable/xdg-shell/xdg-shell-unstable-v6.xml $OUTPUT/xdg-shell-unstable-v6.c
|
||||
|
@ -463,10 +463,10 @@ check_val '' XEXT -lXext '' xext '' ''
|
||||
check_val '' XF86VM -lXxf86vm '' xxf86vm '' ''
|
||||
|
||||
if [ "$HAVE_WAYLAND_PROTOS" = yes ] && [ "$HAVE_WAYLAND" = yes ]; then
|
||||
check_pkgconf WAYLAND_SCANNER wayland-scanner 1.12
|
||||
check_pkgconf WAYLAND_SCANNER wayland-scanner 1.15
|
||||
./gfx/common/wayland/generate_wayland_protos.sh
|
||||
else
|
||||
die : 'Notice: wayland (>=1.12) or wayland-protocols (>=1.15) not found. Disabling Wayland support.'
|
||||
die : 'Notice: wayland-egl or wayland-protocols not found, disabling wayland support.'
|
||||
HAVE_WAYLAND='no'
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user