wayland ported to the zig build system
  • Zig 96.4%
  • C 3.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-13 19:42:28 +01:00
.github/workflows CI: test cross-compilation to OpenBSD instead of NetBSD 2026-10-14 22:29:43 +02:00
.gitattributes initial commit 2024-12-18 20:06:40 +01:00
.gitignore update to Zig 0.16.0 2026-04-17 01:12:04 +02:00
build.zig keep wayland version in sync with build.zig.zon 2026-11-13 19:42:28 +01:00
build.zig.zon Update to Zig 0.17.0 2026-10-04 22:35:07 +02:00
embed.zig update to Zig 0.16.0 2026-04-17 01:12:04 +02:00
epoll_shim_export.h implement (cross compilation) support for FreeBSD 2026-03-03 17:03:45 +01:00
LICENSE initial commit 2024-12-18 20:06:40 +01:00
README.md release 1.26.0 2026-10-14 22:30:09 +02:00

CI

Wayland

This is Wayland, packaged for Zig.

Installation

First, update your build.zig.zon:

# Initialize a `zig build` project if you haven't already
zig init
zig fetch --save git+https://github.com/allyourcodebase/wayland.git#1.26.0

You can then import wayland in your build.zig with:

const wayland = b.dependency("wayland", .{
    .target = target,
    .optimize = optimize,
});
const wayland_server = wayland.artifact("wayland-server");
const wayland_client = wayland.artifact("wayland-client");
const wayland_egl = wayland.artifact("wayland-egl");
const wayland_cursor = wayland.artifact("wayland-cursor");

// Makes sure we get `wayland-scanner` for the host platform even when cross-compiling
const wayland_host = b.dependency("wayland", .{
    .target = b.graph.host,
    .optimize = std.builtin.OptimizeMode.Debug,
});
const wayland_scanner = wayland_host.artifact("wayland-scanner");