mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +00:00
Update ladybird.sh
This commit is contained in:
parent
869fad3594
commit
923943f7d3
1 changed files with 7 additions and 2 deletions
|
@ -120,11 +120,16 @@ run_tests() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build_target() {
|
build_target() {
|
||||||
|
# Disable Vulkan and force software rendering
|
||||||
|
export LIBGL_ALWAYS_SOFTWARE=1
|
||||||
|
export MESA_LOADER_DRIVER_OVERRIDE=llvmpipe
|
||||||
|
export QT_QPA_PLATFORM=offscreen # Prevents GUI from launching
|
||||||
|
export QT_QPA_PLATFORMTHEME=qt5ct # Avoids some Qt6 theme issues
|
||||||
|
|
||||||
# Get either the environment MAKEJOBS or all processors via CMake
|
# Get either the environment MAKEJOBS or all processors via CMake
|
||||||
[ -z "$MAKEJOBS" ] && MAKEJOBS=$(cmake -P "$LADYBIRD_SOURCE_DIR/Meta/CMake/processor-count.cmake")
|
[ -z "$MAKEJOBS" ] && MAKEJOBS=$(cmake -P "$LADYBIRD_SOURCE_DIR/Meta/CMake/processor-count.cmake")
|
||||||
|
|
||||||
# With zero args, we are doing a standard "build"
|
# Build with Ninja
|
||||||
# With multiple args, we are doing an install/run
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
CMAKE_BUILD_PARALLEL_LEVEL="$MAKEJOBS" cmake --build "$BUILD_DIR"
|
CMAKE_BUILD_PARALLEL_LEVEL="$MAKEJOBS" cmake --build "$BUILD_DIR"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue