CMake: Ensure build and test presets for Distribution and Debug

This commit is contained in:
Andrew Kaster 2025-01-20 08:38:01 -07:00 committed by Jelle Raaijmakers
commit 13338a9532
Notes: github-actions[bot] 2025-02-21 11:06:39 +00:00
2 changed files with 26 additions and 0 deletions

View file

@ -211,6 +211,24 @@
"all"
]
},
{
"name": "Distribution",
"configurePreset": "Distribution",
"displayName": "Build",
"description": "Build the project for distribution",
"targets": [
"all"
]
},
{
"name": "Debug",
"configurePreset": "Debug",
"displayName": "Build",
"description": "Build the project in debug",
"targets": [
"all"
]
},
{
"name": "Sanitizer",
"configurePreset": "Sanitizer",
@ -249,6 +267,11 @@
"name": "Debug",
"inherits": "default",
"configurePreset": "Debug"
},
{
"name": "Distribution",
"inherits": "default",
"configurePreset": "Distribution"
}
]
}

View file

@ -75,6 +75,9 @@ get_build_dir() {
"Sanitizer")
BUILD_DIR="${LADYBIRD_SOURCE_DIR}/Build/sanitizers"
;;
"Distribution")
BUILD_DIR="${LADYBIRD_SOURCE_DIR}/Build/distribution"
;;
*)
echo "Unknown BUILD_PRESET: '$1'" >&2
exit 1