Keyboard and rotation!

This commit is contained in:
2026-03-07 14:29:17 +01:00
parent 001015aaf8
commit 1a647eced2
5 changed files with 245 additions and 53 deletions
+3
View File
@@ -8,6 +8,7 @@ pub fn build(b: *std.Build) void {
// of this build script using `b.option()`. All defined flags (including
// target and optimize options) will be listed when running `zig build --help`
// in this directory.
const llvm = b.option(bool, "llvm", "Build with llvm");
const mod = b.addModule("puzzle", .{
.root_source_file = b.path("src/root.zig"),
@@ -16,6 +17,7 @@ pub fn build(b: *std.Build) void {
const exe = b.addExecutable(.{
.name = "wl-main",
.use_llvm = llvm,
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
@@ -27,6 +29,7 @@ pub fn build(b: *std.Build) void {
});
exe.root_module.link_libc = true;
exe.root_module.linkSystemLibrary("wayland-client", .{});
exe.root_module.linkSystemLibrary("xkbcommon", .{});
exe.root_module.addIncludePath(b.path("src"));
exe.root_module.addCSourceFiles(.{