From 13338a953208782910c346e46542427d40acf345 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Mon, 20 Jan 2025 08:38:01 -0700 Subject: [PATCH] CMake: Ensure build and test presets for Distribution and Debug --- CMakePresets.json | 23 +++++++++++++++++++++++ Meta/shell_include.sh | 3 +++ 2 files changed, 26 insertions(+) diff --git a/CMakePresets.json b/CMakePresets.json index 26104bdb349..78fc6a4332e 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -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" } ] } diff --git a/Meta/shell_include.sh b/Meta/shell_include.sh index afc1c2fe115..f4bf86da08a 100644 --- a/Meta/shell_include.sh +++ b/Meta/shell_include.sh @@ -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