pkg/wuffs: use proper apple include paths on darwin targets

This commit is contained in:
Mitchell Hashimoto
2024-09-02 20:59:40 -07:00
parent 781a721fc7
commit 5f1c9dd0df
2 changed files with 7 additions and 2 deletions

View File

@ -13,6 +13,11 @@ pub fn build(b: *std.Build) !void {
.link_libc = true, .link_libc = true,
}); });
if (target.result.isDarwin()) {
const apple_sdk = @import("apple_sdk");
try apple_sdk.addPaths(b, module);
}
var flags = std.ArrayList([]const u8).init(b.allocator); var flags = std.ArrayList([]const u8).init(b.allocator);
defer flags.deinit(); defer flags.deinit();
try flags.append("-DWUFFS_IMPLEMENTATION"); try flags.append("-DWUFFS_IMPLEMENTATION");

View File

@ -1,14 +1,14 @@
.{ .{
.name = "wuffs", .name = "wuffs",
.version = "0.0.0", .version = "0.0.0",
.dependencies = .{ .dependencies = .{
.wuffs = .{ .wuffs = .{
.url = "https://github.com/google/wuffs/archive/refs/tags/v0.4.0-alpha.8.tar.gz", .url = "https://github.com/google/wuffs/archive/refs/tags/v0.4.0-alpha.8.tar.gz",
.hash = "12200984439edc817fbcbbaff564020e5104a0d04a2d0f53080700827052de700462", .hash = "12200984439edc817fbcbbaff564020e5104a0d04a2d0f53080700827052de700462",
}, },
},
.apple_sdk = .{ .path = "../apple-sdk" },
},
.paths = .{ .paths = .{
"build.zig", "build.zig",
"build.zig.zon", "build.zig.zon",