Skip to content

feat(cvcpkg): add in-tree libcvc recipe (recipe-first, deprecates cvc-requirements) - #116

Merged
transfix merged 1 commit into
masterfrom
feat/cvcpkg-libcvc-recipe
Jul 20, 2026
Merged

transfix merged 1 commit into
masterfrom
feat/cvcpkg-libcvc-recipe

Conversation

@transfix

Copy link
Copy Markdown
Owner

What

Adds recipes/libcvc/ — libcvc's own cvcpkg recipe, carried in-tree per the cvcpkg roadmap Phase 15/20 recipe-first workflow (which deprecates cvc-requirements.yaml). A developer can build the working tree and publish it to the cvcpkg server:

cvcpkg build libcvc --recipes-dir recipes --prefix /tmp/libcvc

Details

  • recipe.yaml declares libcvc's full third-party closure as runtime deps. It lists the ImageMagick delegates (libjpeg-turbo, libpng, libwebp, freetype) and libxml2 explicitly, because the imagemagick recipe under-declares them (only zlib+tiff). Without this the installed prefix is incomplete and only loads where a matching system library happens to exist — which is why macOS CI has failed to load @rpath/libjpeg.62.dylib / libxml2.
  • build.sh / build.ps1 drive libcvc's CMake build through cvcpkg's shared _common helper, overriding to C++20 and shipping the library only (tests + CUDA off; CGAL mesher + SDF on).
  • Validated with cvcpkg validate (schema + dependency graph).

Dependency

libxml2 had no recipe in the catalog; added in transfix/libcvc-deps (companion PR). This PR's depends is complete once that lands.

Follow-ups (not in this PR)

  • Rewire CI to build/verify libcvc via this recipe instead of the cvc-requirements.yaml + apt path.
  • Remove cvc-requirements.yaml once the recipe path is the sole source.

Per the cvcpkg roadmap (Phase 15/20), cvc-requirements.yaml is being
deprecated in favor of the recipe-first workflow, where a project carries its
own cvcpkg recipe in its source tree. This adds recipes/libcvc/ so developers
can build libcvc from the working tree and publish it to the cvcpkg server:

    cvcpkg build libcvc --recipes-dir recipes --prefix /tmp/libcvc

- recipe.yaml declares libcvc's full third-party closure as runtime deps,
  including the ImageMagick delegates (jpeg/png/webp/freetype) and libxml2
  that the imagemagick recipe under-declares — so the installed prefix is
  self-contained on every platform (no reliance on apt/system libs).
- build.sh / build.ps1 drive libcvc's CMake build via the shared _common
  helper, overriding to C++20 and shipping the library only (tests + CUDA
  off; CGAL mesher + SDF on).

Validated with `cvcpkg validate`. NOTE: libxml2 has no recipe yet in the
cvcpkg catalog; it is added in a companion libcvc-deps change.
@transfix
transfix merged commit 4afd61e into master Jul 20, 2026
4 of 8 checks passed
@transfix
transfix deleted the feat/cvcpkg-libcvc-recipe branch July 20, 2026 22:12
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