Skip to content

refactor: modernize meson build to use dependency() and override_dependency()#6

Open
mtao wants to merge 1 commit intomainfrom
refactor/meson-modernize
Open

refactor: modernize meson build to use dependency() and override_dependency()#6
mtao wants to merge 1 commit intomainfrom
refactor/meson-modernize

Conversation

@mtao
Copy link
Copy Markdown
Owner

@mtao mtao commented Mar 28, 2026

Summary

  • Add meson.override_dependency() calls for balsaCore, balsaGeometry, and balsaVisualization so downstream projects can consume balsa via dependency('balsaCore') etc.
  • Switch zipper and quiver consumption from subproject().get_variable() to dependency() with [provide] sections in wrap files
  • Fix colormap_shaders.wrap to use variable-based [provide] (colormap_shaders = colormap_shaders_dep) instead of dependency_names which requires meson.override_dependency()
  • Guard quiver_dep in visualization/meson.build with if get_option('quiver') to fix a bug where it was added unconditionally
  • Remove dead options (eltopo, pngpp, igl) from meson_options.txt that were never referenced in any meson.build

Part of the cross-project meson modernization effort (zipper PR #12, cpp-template PR #1, quiver PR #7).

Testing

All 8 tests pass. Build produces 215 targets successfully.

…ndency()

Switch zipper and quiver consumption from subproject().get_variable() to
dependency() with [provide] sections in wrap files. Add
meson.override_dependency() calls for balsaCore, balsaGeometry, and
balsaVisualization so downstream projects can consume them via
dependency(). Fix colormap_shaders.wrap to use variable-based provide
instead of dependency_names. Guard quiver_dep in visualization with
get_option('quiver') check. Remove dead options (eltopo, pngpp, igl).
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