Repository navigation
recipe(cef): package the Windows cross-build toolchain and add the Windows recipe (#2417) - #30
Merged
Merged
Conversation
zackees
commented
Oct 31, 2026
zackees
left a comment
Member
Author
There was a problem hiding this comment.
Coordinator review: the RED (ca24822) then GREEN (53b2940) order looks right. The packaging claim is backed by a real depot_tools install, including the vs_files hash-key detail, which is now pinned in a test. Calling python3 directly in build.sh matches recipes/cef/linux/build.sh. Both rm -rf calls use ${VAR:?} guards. This repo has no hosted checks, so the merge rests on the local pytest (58 passed) and ruff runs in the description. The GN configure step is explicitly not yet proven. That's fine for a recipe PR, but the cef-win-build bosn task should not be treated as working until the follow-up in obs-rust/obs-studio#2417 runs it. No blocking findings.
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.
The Windows half of obs-rust/obs-studio#2417 (part of #1864): the recipe and the toolchain package that a Linux → Windows CEF build needs, with the recorded blocker retired by measurement rather than assumption.
Refs obs-rust/obs-studio#2417.What changed
recipes/cef/windows/package_win_toolchain.pyturns soldr's xwin payload into the archive depot_tools installs as a Windows toolchain:VC/Tools/MSVC/<msvc>/{include,lib/{x64,arm64}},Windows Kits/10/{Include,Lib}/<sdk>/…,VS_VERSION. It names the zip with the tree's sha1, which is howbuild/vs_toolchain.pyfinds it.recipes/cef/windows/build.sh—sync|toolchain|build|pack [x64|arm64].syncuses CEF's automate script;buildpackages the toolchain, exportsDEPOT_TOOLS_WIN_TOOLCHAIN_BASE_URL,DEPOT_TOOLS_WIN_TOOLCHAIN=1andGYP_MSVS_HASH_3bfcb536c8, then calls GN directly withtarget_os="win"(automate-git.py on branch 8078 has no target-OS switch) and ninja;packmakescef_binary_8078_windows_{x64,arm64}.zipwith the target'slibcef_dll_wrapper.liband checksargs.gnfor the codecs, the OS and the CPU.bosn.toml:cef-win-{sync,toolchain,build,pack}and the arm64 trio, on the samecef-linuxstack andout/cefcheckout.RED
ca24822adds onlytests/test_cef_windows_recipe.py, which fails against the tree before the recipe exists:GREEN
53b2940, full suite58 passed,ruff checkclean.Evidence: depot_tools installs the package (real payload, not a fixture)
Packaging the host's actual payload (
soldr 0.9.48,x86_64-pc-windows-msvcxwin, 1.1 GB, both arches):Then depot_tools' own installer, served over a
file://base URL — the same code pathgclient runhooksuses:win_toolchain.json:"version": "2026","path": …/vs_files/534bb6ee…,"win_sdk": …/vs_files/534bb6ee…/Windows Kits/10. No "unexpected value" line: the extracted tree re-hashes to the name it was fetched by.That last part is a measured detail, not a guess: the first attempt named the zip without the
vs_filespath component and depot_tools rejected it as corrupt (got 534bb6ee… instead of 7ce998de…).CalculateHashstrips the hash directory but keeps the install root, so the hashed key isvs_files\vc\tools\…; the module and its test now pin that.What is not proven
The GN configure.
target_os="win"with this toolchain has not been run, so this PR claims the packaging is correct and the recipe is shaped for the cross build — not thatcef_binary_8078_windows_x64.zipbuilds yet. That is the next step in #2417, on the existingout/cefcheckout (47 GB, warm), after which the arm64 run and the release upload. Also untested:build/vs_toolchain.py's Linux path mounts the toolchain throughciopfs; the recipe refuses to run without it, and the install proof above bypassed the mount with--no-junction.