mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 13:07:47 +00:00
Meta: Choose the QEMU display backend based on whats available
This commit is contained in:
parent
a939ffc617
commit
16eb0803fc
1 changed files with 6 additions and 1 deletions
|
@ -57,8 +57,13 @@ SERENITY_SCREENS="${SERENITY_SCREENS:-1}"
|
||||||
if uname -a | grep -iq WSL; then
|
if uname -a | grep -iq WSL; then
|
||||||
# QEMU for windows does not like gl=on, so detect if we are building in wsl, and if so, disable it
|
# QEMU for windows does not like gl=on, so detect if we are building in wsl, and if so, disable it
|
||||||
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-sdl,gl=off}"
|
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-sdl,gl=off}"
|
||||||
else
|
elif ("${SERENITY_QEMU_BIN}" --display help | grep -iq sdl) && (ldconfig -p | grep -iq virglrenderer); then
|
||||||
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-sdl,gl=on}"
|
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-sdl,gl=on}"
|
||||||
|
elif "${SERENITY_QEMU_BIN}" --display help | grep -iq cocoa; then
|
||||||
|
# QEMU for OSX seems to only support cocoa
|
||||||
|
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-cocoa,gl=off}"
|
||||||
|
else
|
||||||
|
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-gtk,gl=off}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$SERENITY_SCREENS" -gt 1 ]; then
|
if [ "$SERENITY_SCREENS" -gt 1 ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue