Package libvmz as a Zig dependency #39

Open
rc wants to merge 1 commit from codex-package-libvmz into main
Owner

Summary:

  • Add build.zig.zon so vmz can be consumed as a Zig package.
  • Register a named vmz module and attach the Swift bridge, C include path, framework links, and Swift runtime links to it.
  • Install C bridge artifacts as zig-out/lib/libvmz.a and zig-out/include/libvmz.h.
  • Document dependency usage in the README.

Verification:

  • nix develop --command zig fmt build.zig
  • nix develop --command zig build
  • Built a temporary external Zig project using b.dependency("vmz", ...) and vmz_dep.module("vmz").
Summary: - Add `build.zig.zon` so vmz can be consumed as a Zig package. - Register a named `vmz` module and attach the Swift bridge, C include path, framework links, and Swift runtime links to it. - Install C bridge artifacts as `zig-out/lib/libvmz.a` and `zig-out/include/libvmz.h`. - Document dependency usage in the README. Verification: - `nix develop --command zig fmt build.zig` - `nix develop --command zig build` - Built a temporary external Zig project using `b.dependency("vmz", ...)` and `vmz_dep.module("vmz")`.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin codex-package-libvmz:codex-package-libvmz
git switch codex-package-libvmz

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff codex-package-libvmz
git switch codex-package-libvmz
git rebase main
git switch main
git merge --ff-only codex-package-libvmz
git switch codex-package-libvmz
git rebase main
git switch main
git merge --no-ff codex-package-libvmz
git switch main
git merge --squash codex-package-libvmz
git switch main
git merge --ff-only codex-package-libvmz
git switch main
git merge codex-package-libvmz
git push origin main
Sign in to join this conversation.
No reviewers
No labels
highprio
lowprio
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rc/vmz!39
No description provided.