mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
Meta: Make ladybird.sh old bash compatible
This commit is contained in:
parent
ff7ca5c48c
commit
0307095f52
Notes:
sideshowbarker
2024-07-16 23:23:26 +09:00
Author: https://github.com/ichihara-3 🔰 Commit: https://github.com/LadybirdBrowser/ladybird/commit/0307095f52 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/622 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 11 additions and 7 deletions
|
@ -101,14 +101,18 @@ cmd_with_target() {
|
|||
export LADYBIRD_SOURCE_DIR
|
||||
fi
|
||||
|
||||
declare -A BUILD_DIRECTORIES
|
||||
|
||||
# Note: Keep in sync with buildDir defaults in CMakePresets.json
|
||||
BUILD_DIRECTORIES["default"]="$LADYBIRD_SOURCE_DIR/Build/ladybird"
|
||||
BUILD_DIRECTORIES["Debug"]="$LADYBIRD_SOURCE_DIR/Build/ladybird-debug"
|
||||
BUILD_DIRECTORIES["Sanitizer"]="$LADYBIRD_SOURCE_DIR/Build/ladybird-sanitizers"
|
||||
|
||||
BUILD_DIR="${BUILD_DIRECTORIES[${BUILD_PRESET}]}"
|
||||
case "${BUILD_PRESET}" in
|
||||
"default")
|
||||
BUILD_DIR="${LADYBIRD_SOURCE_DIR}/Build/ladybird"
|
||||
;;
|
||||
"Debug")
|
||||
BUILD_DIR="${LADYBIRD_SOURCE_DIR}/Build/ladybird-debug"
|
||||
;;
|
||||
"Sanitizer")
|
||||
BUILD_DIR="${LADYBIRD_SOURCE_DIR}/Build/ladybird-sanitizers"
|
||||
;;
|
||||
esac
|
||||
|
||||
CMAKE_ARGS+=("-DCMAKE_INSTALL_PREFIX=$LADYBIRD_SOURCE_DIR/Build/ladybird-install-${BUILD_PRESET}")
|
||||
|
||||
|
|
Loading…
Reference in a new issue