mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 22:28:22 +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"
|
"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",
|
"name": "Sanitizer",
|
||||||
"configurePreset": "Sanitizer",
|
"configurePreset": "Sanitizer",
|
||||||
|
@ -249,6 +267,11 @@
|
||||||
"name": "Debug",
|
"name": "Debug",
|
||||||
"inherits": "default",
|
"inherits": "default",
|
||||||
"configurePreset": "Debug"
|
"configurePreset": "Debug"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Distribution",
|
||||||
|
"inherits": "default",
|
||||||
|
"configurePreset": "Distribution"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,6 +75,9 @@ get_build_dir() {
|
||||||
"Sanitizer")
|
"Sanitizer")
|
||||||
BUILD_DIR="${LADYBIRD_SOURCE_DIR}/Build/sanitizers"
|
BUILD_DIR="${LADYBIRD_SOURCE_DIR}/Build/sanitizers"
|
||||||
;;
|
;;
|
||||||
|
"Distribution")
|
||||||
|
BUILD_DIR="${LADYBIRD_SOURCE_DIR}/Build/distribution"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown BUILD_PRESET: '$1'" >&2
|
echo "Unknown BUILD_PRESET: '$1'" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue