Skip to content

examples(nav_demos): reconcile headless demos into cvcGL examples (+ cvcgl-examples package), plan state/ layout refactor - #574

Merged
transfix merged 3 commits into
masterfrom
reconcile-nav-examples
Oct 7, 2026
Merged

transfix merged 3 commits into
masterfrom
reconcile-nav-examples

Conversation

@transfix

@transfix transfix commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

What

Three related pieces:

  1. Examples reconciliation — the three headless navigation demos
    (nav_material_demo, nav_swarm_demo, nav_train_demo) were orphaned in a
    top-level examples/ tree that only the dead CVC_BUILD_NAV_EXAMPLE option in
    src/cvc/CMakeLists.txt could build. They now live in src/cvcGL/examples/
    alongside the GL examples:

    • registered in src/cvcGL/examples/CMakeLists.txt (native-only block, CUDA
      define for nav_train_demo) and added to the install list under
      if(NOT EMSCRIPTEN)
    • CVC_BUILD_NAV_EXAMPLE block removed from src/cvc/CMakeLists.txt
    • build-instruction comments updated in the demos, NAV_DEMOS.md,
      docs/NAV_MATERIAL.md and docs/NAV_TRAINING.md
  2. cvcgl-examples recipe — the three CLIs now ship in the native
    cvcgl-examples package: cvcpkg/recipes/cvcgl-examples/recipe.yaml declares
    them in package.files with platforms: [linux, windows] scoping (they are
    native-only targets — the wasm column has no CLIs in the gallery, and bare
    strings would fail cvcpkg's strict-glob declaration check when packing the
    wasm-mt bundle) and bumps cvc_revision 18 → 19.

  3. State/ layout refactor plan — docs/roadmap/STATE_DIR_LAYOUT_REFACTOR.md
    plans moving all state-related code out of core/ into {src,inc}/cvc/state/,
    mirroring the ariadne directory layout (explicit CMake source lists, no
    globs): full file inventory (48 .cpp / 57 headers), CMake list edits, the
    ~246-file mechanical include rename (ariadne, cvcGL, cvc-cli, SWIG/pycvc),
    install-path analysis, an optional 1-release forwarding-header shim, and
    phased PRs with risks. Plan only — no code moves in this PR.

Verification

  • All three demos + nav_abi_smoke build and run headless (Release, native-only
    flags); full examples component builds and cmake --install --component cvcgl-examples stages all 13 bins.
  • Recipe change verified by simulating cvcpkg's builder.check_declared_files()
    (strict-glob declaration check) against a full native install tree:
    linux, windows and wasm-mt all pass with no unmatched entries, and the
    three CLI entries are correctly skipped for wasm-mt.
  • No ABI impact: the demo move touches no public headers, and the state plan is
    documentation-only.

Notes

  • The wasm column is unchanged: the headless CLIs are deliberately native-only
    (browser gallery is for rendered scenes, not CLIs).

… tree

nav_material_demo, nav_swarm_demo and nav_train_demo were orphaned in a
top-level examples/ tree, built only by the dead CVC_BUILD_NAV_EXAMPLE
option in src/cvc/CMakeLists.txt. They now live in src/cvcGL/examples/
alongside the GL examples:

- registered in src/cvcGL/examples/CMakeLists.txt (native-only block,
  CUDA define for nav_train_demo) and added to the install list under
  if(NOT EMSCRIPTEN)
- removed the CVC_BUILD_NAV_EXAMPLE block from src/cvc/CMakeLists.txt
- updated build-instruction comments in the demos, NAV_DEMOS.md,
  docs/NAV_MATERIAL.md and docs/NAV_TRAINING.md

Verified: all three demos + nav_abi_smoke build and run headless.
No ABI impact (no public headers moved).
…adne

Plans moving all state-related code out of core/ into {src,inc}/cvc/state/,
mirroring the ariadne directory layout (explicit CMake source lists, no
globs): full file inventory (48 .cpp / 57 headers), CMake list edits,
the ~246-file mechanical include rename (ariadne, cvcGL, cvc-cli,
SWIG/pycvc), install-path analysis, an optional 1-release
forwarding-header shim, and phased PRs with risks. Plan only — no code
moves in this PR.
nav_swarm_demo / nav_train_demo / nav_material_demo now build in the
cvcgl-examples component (native-only, if(NOT EMSCRIPTEN)), so declare
them in package.files with platforms: [linux, windows] scoping — the
wasm column never builds them, and bare strings would fail the
strict-glob declaration check when packing the wasm-mt bundle.

Bumped cvc_revision 18 -> 19.

Verified: simulated cvcpkg builder.check_declared_files() against a
full native install tree (cmake --install --component cvcgl-examples):
linux/windows/wasm-mt all pass with no unmatched entries, and the
three CLI entries are correctly skipped for wasm-mt.
@transfix transfix changed the title examples(nav_demos): reconcile headless demos into cvcGL examples + plan state/ layout refactor examples(nav_demos): reconcile headless demos into cvcGL examples (+ cvcgl-examples package), plan state/ layout refactor Oct 7, 2026
@transfix
transfix merged commit bbfe000 into master Oct 7, 2026
14 checks passed
@transfix
transfix deleted the reconcile-nav-examples branch October 29, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant