From f7e5ca8320f4944b3f3e8304b02316f0102e7e29 Mon Sep 17 00:00:00 2001 From: Joshua Holmes Date: Mon, 16 Sep 2024 10:53:20 -0700 Subject: [PATCH] core: add x11 headers --- build.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.zig b/build.zig index d88c1116c3..2a7955f890 100644 --- a/build.zig +++ b/build.zig @@ -121,6 +121,12 @@ pub fn build(b: *std.Build) !void { lib.linkLibrary(dep.artifact("wayland-headers")); module.linkLibrary(dep.artifact("wayland-headers")); } + if (b.lazyDependency("x11_headers", .{ + .target = target, + .optimize = optimize, + })) |dep| { + module.linkLibrary(dep.artifact("x11-headers")); + } } if (target.result.isDarwin()) { if (b.lazyDependency("mach_objc", .{