krish-r/libevdev
libevdev ported to the zig build system
This is libevdev, packaged for Zig.
NOTE: This repository includes only basic build functionality (still a WIP, not thoroughly tested yet).
build.zig.zon
:zig fetch --save git+https://github.com/krish-r/libevdev.git
build.zig
script: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
.