Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 442 Bytes

File metadata and controls

20 lines (13 loc) · 442 Bytes

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"));