Game export and the monolithic build #62

Open
UnflavoredMeson/Primal_Plus_Plus
opened 2026-11-24 20:16:07 +00:00 by UnflavoredMeson · 0 comments
Owner

Why

A shipped game is a folder (or one executable) that runs without the editor.

Decided

  • Export writes the game executable, PrimalEngine, the game library, game.bin, packed content and shaders to a staging folder per target OS.
  • A monolithic option builds one static executable (engine + game); PRIMAL_API is the one switch it needs.

Read first

  • UnflavoredMeson/Primal#60.

Steps

  • 1. Write Export to a staging folder.
  • 2. Add the static build option.
  • 3. Run an exported game on a clean machine.

Done when

  • An exported game runs on both OSes from its folder; the static build runs too.

Claude can help with

  • Static-linking problems (registries and static initializers).

Learn

  • Why static libraries can drop self-registering types, and how to keep them.
## Why A shipped game is a folder (or one executable) that runs without the editor. ## Decided - Export writes the game executable, `PrimalEngine`, the game library, game.bin, packed content and shaders to a staging folder per target OS. - A monolithic option builds one static executable (engine + game); `PRIMAL_API` is the one switch it needs. ## Read first - `UnflavoredMeson/Primal#60`. ## Steps - [ ] 1. Write Export to a staging folder. - [ ] 2. Add the static build option. - [ ] 3. Run an exported game on a clean machine. ## Done when - [ ] An exported game runs on both OSes from its folder; the static build runs too. ## Claude can help with - Static-linking problems (registries and static initializers). ## Learn - Why static libraries can drop self-registering types, and how to keep them.
Sign in to join this conversation.
No assignees
No project
No milestone
Depends on
#58 Run the game and IDE integration
UnflavoredMeson/Primal_Plus_Plus
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
UnflavoredMeson/Primal_Plus_Plus#62
No description provided.