mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
Meta: Use the SDL backend for QEMU on Windows
This commit is contained in:
parent
2dfdaafb23
commit
8e4978fe04
Notes:
sideshowbarker
2024-07-18 09:16:00 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/8e4978fe045 Pull-request: https://github.com/SerenityOS/serenity/pull/8661
@ -87,11 +87,12 @@ if [ "$installed_major_version" -lt "$SERENITY_QEMU_MIN_REQ_VERSION" ]; then
|
||||
fi
|
||||
|
||||
SERENITY_SCREENS="${SERENITY_SCREENS:-1}"
|
||||
if [ $SERENITY_SCREENS = 1 ]; then
|
||||
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-gtk,gl=on}"
|
||||
elif (uname -a | grep -iq WSL) || (uname -a | grep -iq microsoft); then
|
||||
if (uname -a | grep -iq WSL) || (uname -a | grep -iq microsoft); then
|
||||
# QEMU for windows does not like gl=on, so detect if we are building in wsl, and if so, disable it
|
||||
# Also, when using the GTK backend we run into this problem: https://github.com/SerenityOS/serenity/issues/7657
|
||||
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-sdl,gl=off}"
|
||||
elif [ $SERENITY_SCREENS = 1 ]; then
|
||||
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-gtk,gl=on}"
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user