mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-22 10:57:18 +00:00
CMake: Ensure build and test presets for Distribution and Debug
This commit is contained in:
committed by
Jelle Raaijmakers
parent
af5f23cdda
commit
13338a9532
Notes:
github-actions[bot]
2025-02-21 11:06:39 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/13338a95320 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3321 Reviewed-by: https://github.com/gmta ✅
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user