mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 21:26: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: 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
|
export LADYBIRD_SOURCE_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
declare -A BUILD_DIRECTORIES
|
|
||||||
|
|
||||||
# Note: Keep in sync with buildDir defaults in CMakePresets.json
|
# Note: Keep in sync with buildDir defaults in CMakePresets.json
|
||||||
BUILD_DIRECTORIES["default"]="$LADYBIRD_SOURCE_DIR/Build/ladybird"
|
case "${BUILD_PRESET}" in
|
||||||
BUILD_DIRECTORIES["Debug"]="$LADYBIRD_SOURCE_DIR/Build/ladybird-debug"
|
"default")
|
||||||
BUILD_DIRECTORIES["Sanitizer"]="$LADYBIRD_SOURCE_DIR/Build/ladybird-sanitizers"
|
BUILD_DIR="${LADYBIRD_SOURCE_DIR}/Build/ladybird"
|
||||||
|
;;
|
||||||
BUILD_DIR="${BUILD_DIRECTORIES[${BUILD_PRESET}]}"
|
"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}")
|
CMAKE_ARGS+=("-DCMAKE_INSTALL_PREFIX=$LADYBIRD_SOURCE_DIR/Build/ladybird-install-${BUILD_PRESET}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue