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

Closed
opened 2026-11-26 12:11:43 +00:00 by tedin7 · 1 comment
tedin7 commented 2026-11-26 12:11:43 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T12:11:43Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6626376071 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2826). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T12:11:43Z. --- 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 commented 2026-11-26 13:03:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T12:11:44Z.


Taking this one; a Draft PR will follow.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7191688307 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2826#issuecomment-7191688307). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T12:11:44Z. --- Taking this one; a Draft PR will follow.
Sign in to join this conversation.
No labels
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.

Reference
R0Y00/Xbox2Windows#2818
No description provided.