mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Meta: Choose the QEMU display backend based on whats available
This commit is contained in:
parent
a939ffc617
commit
16eb0803fc
Notes:
sideshowbarker
2024-07-18 11:25:47 +09:00
Author: https://github.com/ccapitalK Commit: https://github.com/SerenityOS/serenity/commit/16eb0803fcc Pull-request: https://github.com/SerenityOS/serenity/pull/8281
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
|
||||
# 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}"
|
||||
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}"
|
||||
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
|
||||
|
||||
if [ "$SERENITY_SCREENS" -gt 1 ]; then
|
||||
|
|
Loading…
Reference in a new issue