mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 06:06:48 +00:00
CMake: Ensure build and test presets for Distribution and Debug
This commit is contained in:
parent
af5f23cdda
commit
13338a9532
Notes:
github-actions[bot]
2025-02-21 11:06:39 +00:00
Author: https://github.com/ADKaster
Commit: 13338a9532
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3321
Reviewed-by: https://github.com/gmta ✅
2 changed files with 26 additions and 0 deletions
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue