mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
Everywhere: Move the Ladybird folder to UI
This commit is contained in:
parent
93712b24bf
commit
db47cc41f8
Notes:
github-actions[bot]
2024-11-10 11:51:45 +00:00
Author: https://github.com/trflynn89
Commit: db47cc41f8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
203 changed files with 266 additions and 244 deletions
46
UI/Android/BuildLagomTools.sh
Executable file
46
UI/Android/BuildLagomTools.sh
Executable file
|
@ -0,0 +1,46 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
LADYBIRD_SOURCE_DIR="$(realpath "${DIR}"/../..)"
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
. "${LADYBIRD_SOURCE_DIR}/Meta/shell_include.sh"
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
. "${LADYBIRD_SOURCE_DIR}/Meta/find_compiler.sh"
|
||||
|
||||
pick_host_compiler
|
||||
|
||||
BUILD_DIR=${BUILD_DIR:-"${LADYBIRD_SOURCE_DIR}/Build"}
|
||||
CACHE_DIR=${CACHE_DIR:-"${BUILD_DIR}/caches"}
|
||||
|
||||
# HACK: This export of XDG_CACHE_HOME is required to make vcpkg happy.
|
||||
# This is because vcpkg tries to find a cache directory by:
|
||||
# 1) checking $XDG_CACHE_HOME
|
||||
# 2) appending "/.cache" to $HOME
|
||||
# The problem is, in the Android build environment, neither of those environment variables are set.
|
||||
# This causes vcpkg to fail; so, we set a dummy $XDG_CACHE_HOME, ensuring that vcpkg is happy.
|
||||
# (Note that vcpkg appends "/vcpkg" to the cache directory we give it.)
|
||||
# (And this also works on macOS, despite the fact that $XDG_CACHE_HOME is a Linux-ism.)
|
||||
export XDG_CACHE_HOME="$CACHE_DIR"
|
||||
|
||||
"$LADYBIRD_SOURCE_DIR"/Meta/ladybird.sh vcpkg
|
||||
|
||||
cmake -S "${LADYBIRD_SOURCE_DIR}/Meta/Lagom" -B "$BUILD_DIR/lagom-tools" \
|
||||
-GNinja -Dpackage=LagomTools \
|
||||
-DCMAKE_INSTALL_PREFIX="$BUILD_DIR/lagom-tools-install" \
|
||||
-DCMAKE_C_COMPILER="$CC" \
|
||||
-DCMAKE_CXX_COMPILER="$CXX" \
|
||||
-DSERENITY_CACHE_DIR="$CACHE_DIR" \
|
||||
-DLAGOM_TOOLS_ONLY=ON \
|
||||
-DINSTALL_LAGOM_TOOLS=ON \
|
||||
-DCMAKE_TOOLCHAIN_FILE="$LADYBIRD_SOURCE_DIR/Build/vcpkg/scripts/buildsystems/vcpkg.cmake" \
|
||||
-DVCPKG_INSTALL_OPTIONS="--no-print-usage" \
|
||||
-DVCPKG_OVERLAY_TRIPLETS="$LADYBIRD_SOURCE_DIR/Meta/CMake/vcpkg/release-triplets" \
|
||||
-DVCPKG_ROOT="$LADYBIRD_SOURCE_DIR/Build/vcpkg" \
|
||||
-DVCPKG_MANIFEST_DIR="$LADYBIRD_SOURCE_DIR"
|
||||
|
||||
ninja -C "$BUILD_DIR/lagom-tools" install
|
Loading…
Add table
Add a link
Reference in a new issue