Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allyourcodebase/wayland
wayland ported to the zig build system
https://github.com/allyourcodebase/wayland
zig zig-package
Last synced: about 1 month ago
JSON representation
wayland ported to the zig build system
- Host: GitHub
- URL: https://github.com/allyourcodebase/wayland
- Owner: allyourcodebase
- License: mit
- Created: 2024-12-18T19:07:19.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2024-12-23T18:15:58.000Z (about 1 month ago)
- Last Synced: 2024-12-31T11:42:33.636Z (about 1 month ago)
- Topics: zig, zig-package
- Language: Zig
- Homepage:
- Size: 7.81 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![CI](https://github.com/allyourcodebase/wayland/actions/workflows/ci.yaml/badge.svg)](https://github.com/allyourcodebase/wayland/actions)
# Wayland
This is [Wayland](https://gitlab.freedesktop.org/wayland/wayland), packaged for [Zig](https://ziglang.org/).
## 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
```You can then import `wayland` in your `build.zig` with:
```zig
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.host,
.optimize = std.builtin.OptimizeMode.Debug,
});
const wayland_scanner = wayland_host.artifact("wayland-scanner");
```