Repository navigation
frontend: isolate CMake platform setup behind per-OS macros - #1584
Merged
Merged
Conversation
zackees
force-pushed
the
infra/889-frontend-cmake-platform
branch
from
October 21, 2026 01:49
97c4273 to
48a4436
Compare
zackees
marked this pull request as ready for review
October 21, 2026 02:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #889. Move the listed frontend CMake host branches into the existing per-OS files, retaining one include dispatch and the original setup stages/scope.
RED
c362372 adds
ci/test_frontend_cmake_facade.py. The focused run has four failing facade/boundary checks; all 17 configure-time characterization scenarios pass against the original shared files. Coverage includes Windows/macOS/Linux/Flatpak/FreeBSD/OpenBSD, Qt 6.10/6.11/6.12 macOS behavior, missing browser support, disabled WhatsNew, relocatable paths and stage ordering.GREEN and validation
48a4436 selects one per-OS file, which defines five setup operations. Shared files invoke them at the existing Qt, plugin path/source, WhatsNew and native-source stages. Macros preserve caller variable scope. The Linux include directory is captured when the selected file loads, retaining the appdata helper location after deferred execution.
The existing platform-ifdef JSON ratchet covers C/C++, not CMake. No applicable JSON count exists to lower. The focused guard enforces zero host branches in the three shared feature files and allows the single include dispatch in frontend/CMakeLists.txt.
Resumed after the Windows prerequisite
The original full run 39524526040 was canceled after Windows Tier 2 failed on the unrelated output-delay test's cm_print_error link dependency (#1580). I released this issue, repaired that prerequisite in #1591, and reclaimed #889 after #1591 merged. Its native Windows job proved the real output-delay executable links and passes against both C and Rust libobs.
This facade branch is now rebased onto c120ac2. Current RED/GREEN commits are c362372 and 48a4436. All 86 focused checks and formatting pass again. New PR run 39529557057 and full native run 39529561107 validate this exact rebased head; the earlier canceled full run is not completion evidence. All native app builds and native test jobs passed, and PR CI passed. Required native validation is complete; Flatpak also passed; the complete full validation run succeeded.