This is libevdev, packaged for Zig.
NOTE: This repository includes only basic build functionality (still a WIP, not thoroughly tested yet).
- Python3
- Update your
build.zig.zon:
zig fetch --save git+https://github.com/krish-r/libevdev.git
- Add the following snippet to your
build.zigscript:
const dep_optimize = b.option(std.builtin.OptimizeMode, "dep-optimize", "optimization mode") orelse .ReleaseFast;
const libevdev = b.dependency("libevdev", .{
.target = target,
.optimize = dep_optimize,
});
your_compilation.linkLibrary(libevdev.artifact("evdev"));This will provide libevdev as a shared library to your_compilation.