CMake: Simplify preset structure for Windows
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run

As we now are only officially supporting the Ninja generator for
Windows, the old preset structure can now be simplified. Also, we
now follow the naming conventions of the non-hidden presets.
This commit is contained in:
ayeteadoe 2025-05-30 23:21:46 -07:00 committed by Andrew Kaster
commit f2a10bda32
Notes: github-actions[bot] 2025-06-10 17:30:35 +00:00
3 changed files with 136 additions and 158 deletions

View file

@ -37,7 +37,7 @@ def main():
"--preset",
required=False,
default=os.environ.get(
"BUILD_PRESET", "windows_dev_ninja" if platform.host_system == HostSystem.Windows else "default"
"BUILD_PRESET", "Windows_Experimental" if platform.host_system == HostSystem.Windows else "Release"
),
)
@ -247,12 +247,12 @@ def configure_build_env(preset: str) -> tuple[Path, Path]:
build_root_dir = ladybird_source_dir / "Build"
known_presets = {
"default": build_root_dir / "release",
"Debug": build_root_dir / "debug",
"Distribution": build_root_dir / "distribution",
"Release": build_root_dir / "release",
"Sanitizer": build_root_dir / "sanitizers",
"windows_ci_ninja": build_root_dir / "release",
"windows_dev_ninja": build_root_dir / "debug",
"Windows_CI": build_root_dir / "release",
"Windows_Experimental": build_root_dir / "debug",
}
build_preset_dir = known_presets.get(preset, None)