[vtk]: Convert dependencies into default features #40279
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Moves multiple previously mandatory dependencies to be default features instead. This was inspired by, and builds upon, @bansan85's work on #39511 to have
vtk[core]
pull in much less dependencies.Everything is added as a default feature because the dependencies are required for things in the "Standalone" or "Rendering" VTK groups which the portfile has enabled (ie:
VTK_GROUP_ENABLE_StandAlone=YES
). So I take that as the "expected functionality".This could be taken further but I was focused on value-for-effort and seacas was my main target for making non-strictly-required.
I've tested many configurations (if only on Windows) but if anything has problems it'll probably be from paraview or rtabmap; which I was not able to test properly because... they're huge.
Before (vtk[cgns,libharu,libtheora,netcdf,proj,seacas,sql]) -- 48 packages -- 3.67GB
After (vtk[core]) -- 32 packages -- 3.30GB
./vcpkg x-add-version --all
and committing the result.