core: get wayland to compile
This commit is contained in:
parent
8eb2da1044
commit
88d14b5c04
4 changed files with 191 additions and 126 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue