Skip to content

libevdev ported to the zig build system

License

Notifications You must be signed in to change notification settings

krish-r/libevdev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libevdev

This is libevdev, packaged for Zig.

NOTE: This repository includes only basic build functionality (still a WIP, not thoroughly tested yet).

Dependencies

  • Python3

Usage

  • Update your build.zig.zon:
zig fetch --save git+https://github.com/krish-r/libevdev.git
  • Add the following snippet to your 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.

Credits

About

libevdev ported to the zig build system

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages