Skip to content

cmake/cross: Compile the frontend's Windows and macOS Qt groups (#2408) - #2410

Merged
zackees merged 3 commits into
masterfrom
ci/2408-cross-frontend-qt
Oct 25, 2026
Merged

zackees merged 3 commits into
masterfrom
ci/2408-cross-frontend-qt

Conversation

@zackees

@zackees zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member

Closes #2408 and #1294.

PR CI's Cross Compile 🧰 job (#2407) now also compiles the frontend's Windows and macOS Qt groups. That covers the group #2176 broke, which only the nightly Windows app build caught (#2359).

How

cmake/cross/CMakeLists.txt gets three things:

  • Qt headers: it fetches the target's prebuilt Qt6, the same CMakePresets.json qt6 pin and buildspec_common code the real build uses. That's Qt 6.11.1 for both windows-x64 and macos-universal.
  • Generated form headers: it generates ui_*.h for frontend/forms with uic from the pinned Linux Qt 6.11.1, which is the asset build-project.yaml already fetches. The new ci/test_cross_qt.py keeps the two pins equal.
    • moc is skipped. Its output is compiled on its own and never included, and the check links nothing.
  • New targets:
    • frontend-windows-cross: windows-obs-main, windows-platform, windows-nativeeventfilter, windows, windows-autoupdatethread, plugin-manager-pluginmoduleloader_windows.
    • frontend-macos-cross: macos, macos-mm, macos-arc-mm (with -fobjc-arc -fmodules -fcxx-modules, as in os-macos.cmake), crypto-macos-mm, sparkle.
    • The frontend's include roots and Qt defines, plus ui-config.h from the real template without credentials, and the DL_* graphics module names.

Because the cross CMakeLists.txt now names DIR frontend, ci/ci_scope.py selects frontend host files such as frontend/build/frontend-windows-obs-main.pch.hpp. Shared frontend files like OBSApp.cpp.hpp still select nothing.

Evidence (local, cmake/cross/docker.sh)

  • win-x64: exit 0. All six frontend Windows groups and their PCH compile.
  • mac-arm64: exit 0. All five frontend macOS groups and their ObjC++ PCH compile.
  • Acceptance check: I put the frontend: Include windows.h before shellapi.h in the obs-main Windows PCH #2359 bug back (shellapi.h before windows.h in frontend-windows-obs-main.pch.hpp), and win-x64 failed. The error is FAILED: CMakeFiles/frontend-windows-cross.dir/cmake_pch.hxx.pch, then shellapi.h:68:1: error: unknown type name 'EXTERN_C' and unknown type name 'DECLARE_HANDLE', the same break the nightly hit. I restored the file afterwards.
  • RED (test: ... (RED, #2408)): test_cross_scope and test_cross_qt fail 8 cases against master's cross CMakeLists. GREEN: they pass, along with test_cross_sources and test_ci_scope. gersemi 0.25.0 is clean.

Not included

  • Sparkle's sparkle-arc-mm and sparkle-delegate-mm groups: they need Sparkle.framework, which the prebuilt deps don't provide.
  • plugins/frontend-tools' Qt groups: its host C group is already covered.

@zackees
zackees enabled auto-merge October 25, 2026 19:17
@zackees

zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

Coordinator: Format / checks fails in ci/test_msvc_flags.py test_no_unguarded_flags. The check reports cmake/cross/CMakeLists.txt:570: a GCC/Clang -Wno-… flag (-Wno-quo… … …mma) added without a compiler guard. Wrap it the way the other flags in that file are (a $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:…> genex, or whichever guard ci/msvc_flags.py accepts), and the check should pass. The rest of the run was still in progress when I looked.

@zackees
zackees added this pull request to the merge queue Oct 25, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Oct 25, 2026
Merged via the queue into master with commit 4b955d4 Oct 25, 2026
31 checks passed
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Oct 25, 2026
@zackees
zackees deleted the ci/2408-cross-frontend-qt branch October 26, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ci: Cross-compile the frontend's Qt host groups (rest of #1294 part 2)

1 participant