mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-14 01:04:38 +03: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
@ -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 New Issue
Block a user