Build service, toolchain detection and New Class #57

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

Why

Game code has to be built from the editor on both OSes, without Visual Studio being installed.

Decided

  • A build service with two implementations: MSBuild (Windows) and CMake + Ninja (Linux, and Windows later). No Visual Studio COM automation.
  • Project templates have a CMake project next to the MSVC one.
  • The editor detects the toolchain (MSVC Build Tools; clang or GCC + CMake + Ninja) and says what's missing.
  • New Class writes a behavior, actor, part or game script from a template and adds it to the build file.

Read first

Steps

  • 1. Write the build service interface and the CMake implementation with a test project.
  • 2. Add MSBuild.
  • 3. Add toolchain detection and New Class.

Done when

  • New Class + Build works from the editor on both OSes; tests pass; 0 warnings; tidy 0.

Claude can help with

  • Parsing build output into the log panel.

Learn

  • How MSBuild and CMake report errors, and how to show them as links.
## Why Game code has to be built from the editor on both OSes, without Visual Studio being installed. ## Decided - A build service with two implementations: MSBuild (Windows) and CMake + Ninja (Linux, and Windows later). No Visual Studio COM automation. - Project templates have a CMake project next to the MSVC one. - The editor detects the toolchain (MSVC Build Tools; clang or GCC + CMake + Ninja) and says what's missing. - New Class writes a behavior, actor, part or game script from a template and adds it to the build file. ## Read first - [Editor](https://forgejo.unflavoredmeson.com/UnflavoredMeson/Primal_Plus_Plus/wiki/Editor), section 5.7. ## Steps - [ ] 1. Write the build service interface and the CMake implementation with a test project. - [ ] 2. Add MSBuild. - [ ] 3. Add toolchain detection and New Class. ## Done when - [ ] New Class + Build works from the editor on both OSes; tests pass; 0 warnings; tidy 0. ## Claude can help with - Parsing build output into the log panel. ## Learn - How MSBuild and CMake report errors, and how to show them as links.
Sign in to join this conversation.
No assignees
No project
No milestone
Blocks
#58 Run the game and IDE integration
UnflavoredMeson/Primal_Plus_Plus
#59 Game code tests
UnflavoredMeson/Primal_Plus_Plus
Depends on
#56 Loading the game library in the editor
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#57
No description provided.