CMake: Ensure build and test presets for Distribution and Debug
This commit is contained in:
parent
af5f23cdda
commit
13338a9532
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…
Reference in a new issue