-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zig package #4
Zig package #4
Conversation
@kassane sorry, can you tl;dr what's your ask w.r.t. libbpf and its support for zig's build system? |
Wow, that's amazing, I'm pleasure to use zig's builtin package manage if libbpf supports it. |
Yes! Would you accept to add to the zig-build project? (Avoiding libbpf parallel version). |
Ah, sorry for misleading you. I assumed you'd like use to adjust libbpf's Makefile (or something about layout, etc) to make it easier to build libbpf with Zig-related infrastructure. Adding and maintaining parallel Zig build script for libbpf is not something I'd like to do, sorry. Hopefully it won't be too much trouble to maintain this on the side. |
Ok. The main purpose of this PR is to avoid static dependencies. |
Hi @kassane As 0.1.0 is released, zbpf embraces Zig's package manager for the external dependencies. FYI. |
@tw4452852, awesome. I will test it and give feedback. |
The fork is the initial support base for zig developers, in addition to trying zig-pkg (MVP) v0.11.x-dev.
Later it will be able to be linked into any zig project without depending on external tools (maybe porting to zig-build libelf-dev too)
Note: Theoretically it works similar to
go mod
orfetchContent (cmake)
.cc: @anakryiko - If the original project can support the zig build-system, then just replace (
kassane/libbpf
->libbpf/libbpf
) the url + hash in the zon file of this binding. See: libbpf/libbpf@master...kassane:libbpf:zig-pkgMore info about zig-pkg