core: get wayland to compile

This commit is contained in:
Joshua Holmes 2024-09-12 22:51:13 -07:00 committed by Stephen Gutekanst
parent 8eb2da1044
commit 88d14b5c04
4 changed files with 191 additions and 126 deletions

View file

@ -102,6 +102,14 @@ pub fn build(b: *std.Build) !void {
if (want_examples) try buildExamples(b, optimize, target, module);
}
if (want_core) {
if (Platform.fromTarget(target.result) == .linux) {
if (b.lazyDependency("wayland_headers", .{
.target = target,
.optimize = optimize,
})) |dep| {
module.linkLibrary(dep.artifact("wayland-headers"));
}
}
if (target.result.isDarwin()) {
if (b.lazyDependency("mach_objc", .{
.target = target,