View on GitHub

OdbDesign ODB++ Parser

REST API and C++ library for parsing ODB++ Design archives

Add Linux FASTBuild generator presets + local tooling

Context

OdbDesign/CMakePresets.json currently defines only Ninja-based Linux presets. The user wants additional presets using CMake’s FASTBuild generator (generates fbuild.bff; builds run through fbuild via the normal cmake --build flow).

Requirements confirmed by research:

Step 1 — Install tooling

  1. FASTBuild v1.20:
    • curl -Lo /tmp/FASTBuild-Linux-x64-v1.20.zip https://fastbuild.org/downloads/v1.20/FASTBuild-Linux-x64-v1.20.zip
    • Unzip, copy fbuild (and fbuildworker) into ~/.local/bin/, chmod +x.
    • Verify: fbuild -version → 1.20.
  2. CMake ≥ 4.2:
    • pipx install cmake (fallback: pip install --user cmake) → ~/.local/bin/cmake 4.4.3.
    • Verify cmake --version resolves to 4.4.3 (i.e. ~/.local/bin precedes /usr/bin on PATH). Apt’s 3.31.6 stays installed as fallback at /usr/bin/cmake.
    • Note: this changes the default cmake for local builds to 4.4.3 — fine for this project (cmakeMinimumRequired 3.21, vcpkg compatible).

Step 2 — Edit CMakePresets.json

File: /home/nam20485/src/github/nam20485/OdbDesign/CMakePresets.json

configurePresets (insert after linux-dynamic-release, line ~153)

Display names follow existing style (“Linux FASTBuild Debug”, etc.).

buildPresets (insert after linux-dynamic-release, line ~306)

Four matching presets, each "inherits": "linux-base" (the hidden Linux build base), configurePreset pointing at the same-named configure preset, cleanFirst: false, configuration, and a description — mirroring the existing linux-dynamic-* entries.

testPresets (insert after linux-dynamic-release, line ~416)

Four matching presets, each "inherits": "linux-base" (hidden Linux test base) + configurePreset, mirroring existing entries.

No changes to cmakeMinimumRequired, version, Windows/macOS presets, or CI (new presets are opt-in; workflows name presets explicitly).

Risks / known caveats

Verification

  1. cmake --list-presets shows the 4 new configure presets.
  2. cmake --preset linux-fastbuild-dynamic-debug → configures, out/build/linux-fastbuild-dynamic-debug/fbuild.bff exists.
  3. cmake --build --preset linux-fastbuild-dynamic-debug → build proceeds via fbuild (full success not guaranteed — see caveats; capture outcome).
  4. ctest --preset linux-fastbuild-dynamic-debug -R BasicAssertions if the build completes.
  5. Confirm no diff noise elsewhere in CMakePresets.json (JSON stays valid; python3 -m json.tool check).