mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-20 09:21:55 +00:00
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
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:
parent
9a5b31ccd1
commit
f2a10bda32
Notes:
github-actions[bot]
2025-06-10 17:30:35 +00:00
Author: https://github.com/ayeteadoe
Commit: f2a10bda32
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4942
Reviewed-by: https://github.com/ADKaster ✅
3 changed files with 136 additions and 158 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue