startup-tools: a build target and preset that build only what a title run needs #2826

Closed
opened 2026-11-27 01:25:27 +00:00 by github-bot · 1 comment
Owner

@⁠tedin7 on GitHub · 2026-11-26 12:11 UTC · original

Part of #870

Problem. To run a title, tools/startup/run.ps1 copies eight stand-in DLLs from the build (xmem, d3d12_xs, AcpHal, XCRDAPI, chad, xapu, xg_xs, GameInput). The documented build is the whole tree (cmake --build --preset release), which also builds every test executable and fixture, several hundred targets. Someone who only wants to run a title waits for all of them, and every pull repeats much of that.

Proposal.

  • A CMake target startup_runtime that depends on exactly what a run needs: the eight stand-in DLL targets plus the build revision stamp.
  • A build preset runtime so the command is cmake --build --preset runtime.
  • The Build/Run section of docs/startup-runtime.md names it as the way to prepare a run.

Tests. A CTest that builds startup_runtime in its own build directory and checks that the eight DLLs exist, that their names match the list run.ps1 copies, and that no test executable was built.

**@⁠tedin7** on GitHub · 2026-11-26 12:11 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/2826) Part of #870 **Problem.** To run a title, `tools/startup/run.ps1` copies eight stand-in DLLs from the build (`xmem`, `d3d12_xs`, `AcpHal`, `XCRDAPI`, `chad`, `xapu`, `xg_xs`, `GameInput`). The documented build is the whole tree (`cmake --build --preset release`), which also builds every test executable and fixture, several hundred targets. Someone who only wants to run a title waits for all of them, and every pull repeats much of that. **Proposal.** - A CMake target `startup_runtime` that depends on exactly what a run needs: the eight stand-in DLL targets plus the build revision stamp. - A build preset `runtime` so the command is `cmake --build --preset runtime`. - The Build/Run section of `docs/startup-runtime.md` names it as the way to prepare a run. **Tests.** A CTest that builds `startup_runtime` in its own build directory and checks that the eight DLLs exist, that their names match the list `run.ps1` copies, and that no test executable was built.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:25:27 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-26 12:11 UTC · original

Taking this one; a Draft PR will follow.

**@⁠tedin7** on GitHub · 2026-11-26 12:11 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/2826#issuecomment-7191688307) Taking this one; a Draft PR will follow.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#2826
No description provided.