libdrm packaged for the zig build system
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Pablo Alessandro Santos Hugen 35489e1431
update
Signed-off-by: Pablo Alessandro Santos Hugen <phugen@redhat.com>
2026-03-04 11:49:11 -03:00
.github/workflows update 2026-03-04 11:49:11 -03:00
tools update 2026-03-04 11:49:11 -03:00
.gitignore First commit 2026-02-28 12:28:04 -03:00
build.zig update 2026-03-04 11:49:11 -03:00
build.zig.zon update 2026-03-04 11:49:11 -03:00
LICENSE First commit 2026-02-28 12:28:04 -03:00
README.md First commit 2026-02-28 12:28:04 -03:00

libdrm zig

libdrm, packaged for the Zig build system.

Core library only (no GPU-specific sub-libraries).

Using

First, update your build.zig.zon:

zig fetch --save git+https://github.com/allyourcodebase/libdrm.git

Then in your build.zig:

const libdrm = b.dependency("libdrm", .{ .target = target, .optimize = optimize });
exe.linkLibrary(libdrm.artifact("drm"));